Michael Steenbeek
f0bd05cf6d
Part of #11158 : Remove more C-style casts ( #11743 )
2020-05-13 21:22:50 -03:00
Ted John
0d0349fc09
Allow plugins to update dropdown items ( #11735 )
2020-05-12 21:10:07 -03:00
Michael Steenbeek
1b242d825c
Fix Text Input window colours ( #11736 )
...
Text Input uses one colour, specifically the body colour of the calling window. This was previously handles by a modified window shim, but https://github.com/OpenRCT2/OpenRCT2/pull/11653 changed this and this window now uses the standard window shim. This is why it now needs to change the colour assignment.
2020-05-13 00:31:24 +02:00
Ted John
b3c4dd4844
Fix invalidation of list view widget
2020-05-12 21:03:21 +01:00
Ted John
86fa2f3714
Fix #11730 : invalid write in CustomListView::SortItems
2020-05-12 20:57:26 +01:00
Ted John
c4502df947
Fix #11731 : invalid read in ScWindow::x_get
2020-05-12 18:53:37 +01:00
stalefishies
9c26c9776b
Fix plugin dropdown widget items not appearing ( #11729 )
...
Commit e182791
(mistakenly?) removed the code to populate the custom
dropdown widget's items from the list of strings passed in from the
plugin. This replaces that code.
2020-05-12 08:21:43 -03:00
Michael Steenbeek
451af76fb6
Remove nonfunctional "guest is lost" notification ( #11722 )
2020-05-11 21:31:02 +02:00
Gymnasiast
15b5d97795
Refactor shop items
2020-05-11 19:16:23 +02:00
Michael Steenbeek
d7637cd70f
Replace many C-style casts ( #11720 )
2020-05-11 14:32:56 +02:00
Michael Steenbeek
a261b4ce33
Remove commented out code ( #11721 )
2020-05-11 13:54:15 +02:00
stalefishies
8aaf8d0156
Fix error on windows due to upkeep narrowing ( #11711 )
...
Running msbuild openrct2.proj /t:build /p:platform=x64 gave warning
C4309, which is to do with narrowing on a type conversion. This replaces
static_cast<money16>(0xFFFF) with MONEY16_UNDEFINED (which is
static_cast<money16>(static_cast<uint16_t>(0xFFFF)) ).
2020-05-10 19:58:01 -03:00
Ted John
e182791a6b
Merge pull request #11685 from IntelOrca/plugin/listview-widget
...
[Plugin] Implement the list view widget
2020-05-10 22:36:44 +01:00
Tulio Leao
ed84c2dab0
Fix #11705 : Drawing tooltips out of box ( #11707 )
2020-05-10 15:22:47 -03:00
Ted John
ec06a9ca4b
Add plugin API for showing an error message ( #11706 )
2020-05-10 14:06:31 -03:00
Tom Lankhorst
2d0e7bdfd8
openrct2-ui Audio clean-up and style/usage fixes ( #10115 )
...
* openrct2-ui Audio clean-up and style/usage fixes
Co-authored-by: Gymnasiast <m.o.steenbeek@gmail.com>
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2020-05-10 10:05:26 -03:00
TomasZilinek
9fde6a74c3
Close #11561 : Use ScreenCoordsXY in gfx_draw_string()
...
* Fix #11572 create gfx_draw_string() overload
created the overload and changed all calls of the old function to the new (using const ScreenCoordsXY&)
...
2020-05-10 09:49:15 -03:00
Michael Steenbeek
d5f2168b22
Merge pull request #11653 from Gymnasiast/refactor/window-skeleton
...
Introduce WINDOW_SHIM define
2020-05-10 11:34:21 +02:00
frutiemax
c447cde63c
Close #11561 : Use ScreenCoordsXY in gfx_draw_string_centred_wrapped()
...
* Add gfx_draw_string_centred_wrapped overload using ScreenCoordsXY
* Update calls to gfx_draw_string_centred_wrapped
* Remove old signature of gfx_draw_string_centred_wrapped
* Meaningful coordinate variable names and constructor calls
2020-05-10 01:00:26 -03:00
Gymnasiast
b942d24bcf
Fix WW and WH for some windows
2020-05-09 19:08:00 +02:00
Ted John
cc759e0bce
Improve selected highlight on list view
2020-05-09 17:24:16 +01:00
Ted John
f492827c8a
Implement horizontal scrollbars and fix resizing
2020-05-09 17:24:16 +01:00
Ted John
41950d75f0
Implement scrollbars field on list view
2020-05-09 17:24:16 +01:00
Ted John
c4f6dbe1ca
Allow items and columns get / set
2020-05-09 17:24:15 +01:00
Ted John
12fb6411b1
Fix 32-bit errors
2020-05-09 17:24:15 +01:00
Ted John
0941620991
Add a few more properties
2020-05-09 17:24:15 +01:00
Ted John
e63fcd010f
Add name get / set to widget
2020-05-09 17:24:15 +01:00
Ted John
4701dd3b9b
Add get / set highlighted cell / selected cell
2020-05-09 17:24:15 +01:00
Ted John
5e427413a6
Refactor list view so we can access it from ScWidget
2020-05-09 17:24:15 +01:00
Ted John
faf59598e5
Start working on exposing ListViewWidget
2020-05-09 17:24:15 +01:00
Ted John
45a1184b0e
Implement selection
2020-05-09 17:24:15 +01:00
Ted John
928bba9795
Implement sorting
2020-05-09 17:24:15 +01:00
Ted John
096de3ccc8
Implement list view
2020-05-09 17:24:15 +01:00
Gymnasiast
6fd83fd006
Make WW and WH static
2020-05-09 18:07:16 +02:00
Gymnasiast
f8aeb70398
Apply review requests
2020-05-09 18:07:16 +02:00
Gymnasiast
00461aedf3
Fix formatting and errors
2020-05-09 18:07:16 +02:00
Gymnasiast
43556d2dec
Remove ifdefs for LEFT_CLOSEBOX - for now
2020-05-09 18:07:16 +02:00
Gymnasiast
9e4c664944
Replace defines with constexpr
2020-05-09 18:07:16 +02:00
Gymnasiast
96fe3d3b3c
Make WINDOW_SKELETON take a title, height and width
2020-05-09 18:07:16 +02:00
tassaron2
559ede5d14
Add compile option to move close box to the left
2020-05-09 18:07:16 +02:00
Ted John
1e2cf9f77b
Fix first widget being pressed on tabless plugin windows
2020-05-09 16:07:04 +01:00
Ted John
6db16ffcad
Implement showTextInput plugin API ( #11678 )
2020-05-09 14:18:50 +01:00
Michael Steenbeek
3d3dbde642
Merge pull request #11668 from IntelOrca/plugin/peep-stats
...
[Plugin] Add more stats to Peep interface
2020-05-09 13:53:36 +02:00
Ted John
7b8ffdb865
Refactor peep.intensity into new strict struct
2020-05-09 12:37:51 +01:00
Tulio Leao
373776f3db
Address review comments on #11598
2020-05-09 12:35:36 +02:00
Michael Steenbeek
8660bbe9d7
Fix #1013 : negative length in Ride window ( #11651 )
2020-05-06 11:32:10 +02:00
Michael Steenbeek
d10f9ebf2a
Use named flags in calls to sub_6C683D() ( #11650 )
2020-05-05 23:11:38 -03:00
Michael Steenbeek
362ea7bbc0
Fix #11455 : Object Selection window cuts off scenery names ( #11639 )
2020-05-05 18:19:30 +02:00
Michael Steenbeek
5832b43228
Fix illegal access in window_scenery_tab_entries ( #11643 )
2020-05-05 18:19:01 +02:00
Michael Steenbeek
80933dc0cc
Fix #11002 : Rides list shows both red and green light activated ( #11622 )
2020-05-04 19:38:48 -03:00