Gymnasiast
b788a099b5
Replace gfx_draw_string_clipped() calls with DrawTextEllipsised
2020-09-10 18:13:13 +02:00
Tulio Leao
731a93dc39
Create WindowColour enum for widget definition calls ( #12722 )
...
* Make MakeWidget* functions take enum colour
* Make windows A-D use WindowColour enum
* Make windows E-G use WindowColour enum
* Make windows I-M use WindowColour enum
* Make windows N-P use WindowColour enum
* Make windows R-S use WindowColour enum
* Make windows T use WindowColour enum
* Make windows V-W use WindowColour enum
2020-08-28 23:31:31 -03:00
Aaron van Geffen
b34b573ad9
Refactor more widget definitions ( #12354 )
...
* Refactor Dropdown
* Refactor EditorMain
* Refactor EditorScenarioOptions
* Refactor InstallTrack
Increased window height to 460 (was 448); one line of text was overflowing.
* Refactor Guest
* Refactor LandRights
* Refactor LoadSave
* Refactor Main
* Refactor Map
* Add extra constants to EditorScenarioOptions
2020-07-27 19:54:22 -03:00
Aaron van Geffen
7b5087f057
Update copyright year to 2020
2020-07-21 15:04:34 +02:00
Michael Steenbeek
1cf89362f0
Merge pull request #12184 from IntelOrca/sea
...
Add support for reading .sea (RCT classic) files
2020-07-13 17:23:16 +02:00
frutiemax
508344a088
Close #12174 : Remove Formatter additions with uintptr_t
2020-07-11 18:56:12 +02:00
Ted John
8c81cacc6f
Add sea decryption
2020-07-11 11:40:34 +01:00
frutiemax
0e96674a46
Part of #12096 : ScreenRect w/ gfx_fill_rect in libopenrct2ui ( #12188 )
2020-07-10 13:59:08 -03:00
Aaron van Geffen
681b8d7938
Introduce widget::width and widget::height helper functions ( #12053 )
2020-06-24 22:44:00 -03:00
TomasZilinek
2264c5f7f1
Part of #11571 - Use gfx_draw_string_left with ScreenCoordsXY ( #12008 )
2020-06-20 11:56:36 -03:00
Gymnasiast
02338ffc5c
Migrate 50 more calls to set_format_arg()
2020-06-03 14:49:04 +02:00
Gymnasiast
f640446d58
Migrate 40 calls to set_format_arg()
2020-06-03 14:49:04 +02:00
TomasZilinek
a687a13185
Fix #11563 - gfx_draw_string_right_clipped() overload ( #11782 )
...
created the overload, changed all calls from the old function to the new one and deleted the old function
2020-05-19 13:54:07 -03:00
TusharSariya
2cf95adc4b
Fix #11565 : gfx_draw_string_left_clipped to use ScreenCoordsXY ( #11765 )
...
* Issue #11565 , created overload for gfx_draw_string_left_clipped
Co-authored-by: Tushar <tushar.97@hotmail.com>
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2020-05-17 19:30:58 -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
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
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
Tulio Leao
935cfe90fc
Use named casts on openrct2-ui/windows ( #11136 )
2020-04-18 13:32:48 +02:00
Aaron van Geffen
503fbefbeb
Harmonise date and time gaps / anchors.
...
Introduces the DATE_TIME_GAP constant.
2020-03-30 22:44:08 +02:00
Aaron van Geffen
56216fd026
Add an additional check for locales that do not use leading zeros for dates.
2020-03-30 22:42:58 +02:00
Aaron van Geffen
484956e006
Fix #10928 : File browser's date column is too narrow.
2020-03-30 22:42:58 +02:00
Aaron van Geffen
8c0186d9a4
Make file window button captions fit in more languages.
...
The window is made 10px wider to accommodate button captions in languages like Japanese.
2020-03-16 22:56:04 +01:00
Tulio Leao
724a6d4dcf
Make rct_window use ScreenCoordsXY
2020-03-02 20:51:01 -03:00
Tulio Leao
9bcd20e0e6
Prefer const ref to send ScreenCoordsXY over
2020-02-29 08:25:48 -03:00
Tulio Leao
c4a865384e
Move Mac-only str handling functions to Platform ( #10264 )
2020-01-04 12:44:40 +01:00
Tulio Leao
fe3d6f6faf
Use ScreenCoordsXY for scroll_mouse* functions
2019-11-14 08:40:40 -03:00
Tulio Leao
d1cec43065
Use constexpr on openrct2-ui/*
2019-10-29 18:48:04 -03:00
Matt
cc6321048f
Refactor window_invalidate to use rct_window::Invalidate
2019-08-11 17:22:00 +02:00
duncanspumpkin
54d6722bf2
Link everything together
2019-08-09 20:40:35 +01:00
duncanspumpkin
e3c63b762e
Create new TrackDesign format
2019-08-09 20:39:53 +01:00
Ted John
5733d666b3
Do not store park name as a user string
2019-07-21 11:33:15 +02:00
Michael Steenbeek
abc13422ed
Fix #9132 : System file browser cannot open SV4 files
2019-05-14 22:12:23 +02:00
hokasha2016
dc90b2873a
Sort files in logical rather than dictionary order ( #9012 )
2019-04-03 00:16:47 +02:00
hokasha2016
70ae847a72
Fix #8219 : Faulty folder recreation in "save" folder
2019-03-28 20:20:01 +01:00
Aaron van Geffen
2af13904c5
Update copyright notices for 2019. ( #8903 )
2019-03-17 07:16:15 +00:00
Ted John
08b02943d3
Use std::string for scenario name, details etc.
2018-12-16 19:01:14 +00:00
Hielke Morsink
354d973a48
Use std::size instead of Util::CountOf
2018-11-23 21:59:08 +01:00
Aaron van Geffen
f8c765f798
Fix #7912 : 'New folder' and 'New file' buttons are missing ( #7926 )
2018-08-22 00:00:44 +02:00
Hielke Morsink
e7af3290c0
Fix system file browser not populating properly ( #7916 )
2018-08-21 23:19:32 +02:00
Hielke Morsink
3e2f8148c5
Fix #7911 : Unable to save new scenarios ( #7914 )
...
The problem was that the filters have changed so they included the '*' character. This got appended to the path, which caused the check for valid filenames to fail.
This commit reverts the offending strings and code lines to how it was before.
2018-08-19 19:49:49 +02:00
Aaron van Geffen
c4f93e24b5
Rename heightmap load/save type; add heightmap dir.
2018-08-18 13:28:27 +02:00
Aaron van Geffen
4b4510b347
Refactor common code to their own functions.
2018-08-18 13:28:27 +02:00
Aaron van Geffen
25170fda45
Implement #7658 : Add option to always use system file browsing window.
2018-08-18 13:28:27 +02:00
Michael Steenbeek
9f891bfdcc
Allow opening SV7 files
2018-08-16 16:16:56 +02:00