1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 04:53:12 +01:00
Commit Graph

1357 Commits

Author SHA1 Message Date
Aaron van Geffen
2e1fa5e644 Move a few more strings to UiStringIds.h (#22257)
* Replace more StringIds.h includes with StringIdType.h

* Move a few more strings to UiStringIds.h

* Tweak: TextComposition.cpp does not need InteractiveConsole.h
2024-07-12 14:59:00 +02:00
Aaron van Geffen
658529464b Ignore partially hidden sprites for viewport interaction (#22217) 2024-07-02 23:18:38 +02:00
Stephan Spengler
e96c999c43 Fix typo in Viewport.cpp (#22215) 2024-07-02 22:33:20 +10:00
Harry Hopkinson
3c04e67ece Refactor constant notation in Limits.h 2024-05-26 17:54:31 +02:00
Gymnasiast
8a181b5513 Split colours and colour flags 2024-05-26 12:35:40 +02:00
Aaron van Geffen
e6fac7f870 Introduce progress/loader window 2024-05-19 22:05:05 +02:00
Gymnasiast
7d3ac7ea9d Add moveTo() to Widget 2024-05-19 20:20:29 +02:00
Gymnasiast
ae88b7b0fc Create progress bar widget 2024-05-19 20:20:29 +02:00
Aaron van Geffen
4ffe00aaba Keep options window centred after a resize (#22026) 2024-05-12 21:07:32 +00:00
Aaron van Geffen
96ce7f706f Move widget constants from Windows.h to Widget.h 2024-05-10 22:14:10 +02:00
Aaron van Geffen
a63d86c488 Introduce Config namespace and struct 2024-05-10 12:10:21 +02:00
Aaron van Geffen
347ce53f26 Re-introduce message on successful screenshot (#21983)
* Re-introduce message on successful screenshot

* Automatically close previous screenshot notices before new ones
2024-05-10 15:04:12 +02:00
Harry Hopkinson
98ac3a1bbc Replace GfxDrawString() with DrawText() 2024-05-10 09:56:03 +00:00
Claudio Tiecher
10a5d790c6 Part of #21421: replace define with constexpr (#21760)
* Part of #21421: refactor TUNNEL_MAX_COUNT

* Part of #21421: deleted unused OBJECT_SELECTION_NOT_...

* Part of #21421: refactor MAX_SERVER_DESCRIPTION_LENGTH

* Part of #21421: refactor EXPENDITURE_TABLE_MONTH_COUNT

* Part of #21421: refactor FINANCE_GRAPH_SIZE

* Part of #21421: refactor NETWORK_STREAM_VERSION and _ID

* Part of #21421: MONEY_STRING_MAXLENGTH

* Part of #21421: deleted MAX_USER_STRINGS

* Part of #21421: refactor USER_STRING_MAX_LENGTH

* Part of #21421: deleted USER_STRING_END

* Part of #21421: refactor REAL_NAME_START

* Part of #21421: refactor REAL_NAME_END

* Part of #21421: deleted FONT(X) and FONT_OPENRCT2_SPRITE

* Part of #21421: refactor CURRENCY_SYMBOL_MAX_SIZE

* Part of #21421: refactor CURRENCY_RATE_MAX_NUM_DIGITS

* Part of #21421: refactor SCROLLABLE_ROW_HEIGHT

* Part of #21421: refactor ADD_CLAMP_BODY

* Part of #21421: applied clang-format to Util.cpp

* Part of #21421: incorporate feedback from #21760

* Part of #21421: revert to nbsp in Currency.cpp

* Part of #21421: fix merge conflict

* Part of #21421: fix more merge conflict

* Part of #21421: apply clang format

* Part of #21421: using std::numerics for finding bounds

* Part of #21421: fix reference to kAddClampBody

* Part of #21421: improved on comments about AddClamp func

* Part of #21421: apply correct network stream version number

* Part of #21421: apply clang-format
2024-05-09 08:59:03 -03:00
Aaron van Geffen
ca6f142a97 Remove Config.h include from many places 2024-05-08 22:29:32 +02:00
Michał Janiszewski
7b12667ddb Reduce <algorithm> include (#21947) 2024-05-01 13:47:27 +02:00
Michał Janiszewski
ad79699b21 Reduce transient inclusion of <future> (#21944) 2024-05-01 12:27:51 +02:00
duncanspumpkin
f6c34ddd59 Simplify map flashing flags and move into map 2024-04-29 14:10:53 +02:00
Aaron van Geffen
56cbc0eb8a Refactor intro into IntroScene 2024-04-26 20:35:16 +02:00
Harry-Hopkinson
8ce6ba7606 Rename WINDOW_LIMIT_RESERVED to kWindowLimitReserved 2024-04-26 17:55:23 +01:00
Harry-Hopkinson
9e2b45fab3 Rename WINDOW_LIMIT_MAX to kWindowLimitMax 2024-04-26 17:55:23 +01:00
Harry-Hopkinson
343b10c172 Rename WINDOW_LIMIT_MIN to kWindowLimitMin 2024-04-26 17:55:23 +01:00
duncanspumpkin
3448926251 Move text input widget code from game lib to ui lib 2024-04-26 18:25:44 +02:00
Gustav Burkhardt
5837a33a60 Part of #21421: rename MAX_VIEWPORT_COUNT to kMaxViewportCount 2024-04-26 09:11:19 +02:00
Gymnasiast
4db5d62476 Add methods to move a widget 2024-04-25 14:10:07 +02:00
Michael Steenbeek
c4c706c59c Merge pull request #21796 from Harry-Hopkinson/refactor-constants-Window.h
Replace constant notation in Window.h
2024-04-21 01:18:40 +02:00
Karsten Van Fossan
137099a429 Close #18305: Move Translate3DTo2DWithZ() from Map.h into Viewport.h
Translate3DTo2DWithZ move to Viewport.h as suggested by ducanspumpkin and update references. Remove redundant function Translate3Dto2D.
2024-04-21 01:18:11 +02:00
Harry-Hopkinson
47939567c4 Rename CHAT_MAX_WINDOW_WIDTH - kChatMaxWindowWidth 2024-04-17 13:20:37 +00:00
Harry-Hopkinson
337f9ca549 Rename CHAT_MAX_MESSAGE_LENGTH to kChatMaxMessageLength 2024-04-15 15:35:00 +00:00
Harry-Hopkinson
140e17029d Rename CHAT_INPUT_SIZE to kChatInputSize 2024-04-15 15:30:37 +00:00
Harry-Hopkinson
c264ec1077 Rename CHAT_HISTORY_SIZE to kChatHistorySize 2024-04-15 15:28:51 +00:00
Harry-Hopkinson
cd9ca1debb Rename TOP_TOOLBAR_HEIGHT to kTopToolbarHeight 2024-04-14 18:12:58 +00:00
Harry-Hopkinson
f357dd6cab Rename TEXT_INPUT_SIZE to kTextInputSize 2024-04-14 17:35:28 +00:00
Harry-Hopkinson
b294d97f03 Rename DROPDOWN_HEIGHT to kDropdownHeight 2024-04-14 17:27:32 +00:00
Harry-Hopkinson
9fa917ae57 Rename SPINNER_HEIGHT to kSpinnerHeight 2024-04-14 16:56:33 +00:00
Harry-Hopkinson
14cdfc7262 Rename BUTTON_FACE_HEIGHT to kButtonFaceHeight 2024-04-14 16:44:39 +00:00
Harry-Hopkinson
2ccb77320b Rename TABLE_CELL_HEIGHT to kTableCellHeight 2024-04-14 16:41:01 +00:00
Harry-Hopkinson
f242bbf095 Rename LIST_ROW_HEIGHT to kListRowHeight 2024-04-14 16:37:01 +00:00
Harry-Hopkinson
c5cfc65317 Rename SCROLLABLE_ROW_HEIGHT to kScrollableRowHeight 2024-04-14 16:31:53 +00:00
Michael Steenbeek
271a22d00e Merge pull request #21681 from AaronVanGeffen/obj-list-refactor
Move various object list properties out of ObjectTypes header
2024-04-12 11:54:13 +02:00
Gymnasiast
c158854a7f Move Park into namespace, add other park-related things to struct 2024-04-04 18:14:27 +02:00
Gymnasiast
28451027b1 Move Park to GameState_t 2024-04-04 18:12:08 +02:00
Michał Janiszewski
dfcb527ada Ensure TTF system is torn down in correct order (#21707)
`TTFDispose` uses `gCurrentTTFFontSet` to deallocate internal resources.
Having the function called after global variable got changed meant it
tried to deallocate incorrect font and would subsequently call
`FT_Done_Face` on a struct having internal data set to nullptr.

Reproduction is fairly easy:
1. launch the game in Korean (I made sure to have all the indexes primed
   for this language beforehand - i.e. launch it twice),
2. switch to Japanese,
3. switch back to Korean

Fixes #21664
2024-04-02 00:52:40 +02:00
Claudio Tiecher
a94e6c54d8 Part of #21421: replace define with constexpr (#21679) 2024-04-01 07:00:32 -03:00
Aaron van Geffen
cec251bb63 Take kAllObjectTypes internal as well 2024-03-27 21:26:07 +01:00
Aaron van Geffen
e898e9211d Move kObjectEntryGroupCounts to ObjectList.cpp 2024-03-27 20:13:10 +01:00
Andrew
a972d231d7 Add shortcut key for sorting tile elements (#21636) 2024-03-22 15:24:10 +01:00
Duncan
5a70fd97fb Move vehicle sounds update into Ui library (#21577)
* Move vehicle sounds update into Ui library

* Add missing statics

* Apply review comments

* Sprinkle some const

* Clang format accumulate
2024-03-20 11:14:52 +00:00
Matt
6950a74b37 Fix #21565: Giant screenshots not working correctly 2024-03-10 21:24:40 +01:00
Michael Steenbeek
24f5675cab Remove WindowBase::IsLegacy() function (#21572) 2024-03-10 18:48:06 +01:00