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
Harry Hopkinson
78d95fc0bd
Pass DrawPixelInfo by reference ( #21563 )
2024-03-10 12:00:08 -03:00
Duncan
7a60e7f2e0
OpenRCT2::Ui::Windows namespace for OpenRCT2 Ui Windows ( #21559 )
...
* Move all the windows into OpenRCT2::Ui::Windows namespace
* Fix missing symbol
* Clang format
* Call the correct FormatStringID
2024-03-10 13:52:35 +00:00
Duncan
3146d463bd
Move Ui header items to OpenRCT2::Ui ( #21546 )
...
* Move ui definitions to ui project
* Enforce coding style
* Apply clang format
* Add clang tidy ignore
* Increase compiler happiness
2024-03-09 14:15:45 +00:00
Matt
1e8ae8ea11
Merge pull request #21542 from Harry-Hopkinson/gLandPrice-to-GameState
...
Move gLandPrice to GameState_t
2024-03-07 22:54:36 +02:00
Matt
a2fdd600cf
Merge pull request #21424 from ZehMatt/viewport-update
...
Store the rotation in viewports
2024-03-07 22:42:00 +02:00
Harry Hopkinson
81814bd81e
Move gLandPrice to GameState_t
2024-03-07 18:44:21 +00:00
ζeh Matt
2814662ea8
Remove unnecessary reset of entities spatial index, coordinates are 3D
2024-03-07 01:05:47 +02:00
ζeh Matt
d3b8ad471e
Turn the error into a verbose message when there is no viewport
2024-03-07 00:54:09 +02:00
Harry Hopkinson
9ab18e37a2
Cleanup static_cast's
...
Cleanup static_cast's
Cleanup static_casts'
Cleanup static_casts'
Format Code
Address requested changes
Address requested changes
Change uint16_t to size_t
Stop undefined behaviour
Address requested changes.
2024-03-06 10:28:45 +00:00
ζeh Matt
a1304ef147
Fix rebase
2024-03-05 10:34:03 +02:00
ζeh Matt
ae0af55a99
Make GCC happy due to non-enumerated usage
2024-03-05 10:26:00 +02:00
ζeh Matt
425c4cf04e
Allow viewports to have an independent rotation
2024-03-05 10:25:59 +02:00
ζeh Matt
8bf33a6039
Fix viewport not using the correct rotation in some cases
2024-03-05 10:25:59 +02:00
ζeh Matt
f7682f6b13
Apply clang-format
2024-03-05 10:25:59 +02:00
ζeh Matt
bdcfa5af8f
Add a function to invalidate viewports pre-transformed position
2024-03-05 10:25:59 +02:00
ζeh Matt
47d346ee81
Remove unused code
2024-03-05 10:25:57 +02:00
ζeh Matt
462bb33234
Refactor viewport rotation to keep it in sync with the primary viewport
2024-03-05 10:23:31 +02:00
ζeh Matt
d95f14dcda
Fix ViewportPosToMapPos using the wrong rotation
2024-03-05 10:23:30 +02:00
ζeh Matt
7be082cacc
Fix ViewportAdjustForMapHeight not using the correct rotation
2024-03-05 10:23:29 +02:00
ζeh Matt
98acdf3743
Use the rotation from the Viewport where applicable
2024-03-05 10:23:28 +02:00