Commit Graph
312 Commits
Author SHA1 Message Date
Gymnasiast 5ffee91c8a Rename members of GameActions::Status 2025-12-12 11:41:49 +01:00
Michael Steenbeek 355bb5d58d Refactor GAME_COMMAND_FLAG_* to enum+FlagHolder 2025-12-11 00:12:21 +01:00
Michael Steenbeek 66188a108a Close #25530: Allow cancelling wall drag without closing Scenery window (#25564) 2025-11-25 21:52:39 +01:00
mix e0f9e756cb Rename OpenRCT2::MapSelection functions to lowerCamelCase 2025-11-23 00:17:16 +00:00
mix 32b32adffc Prevent large scenery selected tiles invalidating every frame 2025-11-23 00:17:16 +00:00
mix 6631b452ad Encapsulate selected tiles and invalidate when changed 2025-11-23 00:17:15 +00:00
mix f3cedcc1d9 Remove manual map selection invalidation calls 2025-11-23 00:17:15 +00:00
Michael Steenbeek 6a5dd316a1 Allow dragging lines of walls 2025-11-16 17:14:20 +01:00
Michael Steenbeek 6f24577027 Fix return value of Widget::width() 2025-11-08 10:27:58 +01:00
Gymnasiast 124352c922 Update members of TextAlignment 2025-11-03 23:25:29 +01:00
Gymnasiast 7c51ccde1e Rename Rect namespace to Rectangle 2025-10-23 18:44:45 +02:00
Gymnasiast 679064da77 Replace INSET_RECT_FLAG_FILL_MID_LIGHT with Rect::FillBrightness enum 2025-10-23 18:42:07 +02:00
Gymnasiast 93c3d99546 Move rectangle drawing into its own namespace 2025-10-23 18:41:08 +02:00
Gymnasiast 9e9b774266 Move rectangle drawing to Rect.{cpp,h} 2025-10-23 18:40:04 +02:00
Gymnasiast a5d173efda Create border style enum for GfxFillRectInset 2025-10-23 18:40:03 +02:00
Aaron van Geffen 06fc4c8955 Rewrite GetNameAndPrice using templated subfunction 2025-10-18 17:23:15 +02:00
Aaron van Geffen 75c2a01de9 Inline single use of namespace Numerics 2025-10-18 17:32:44 +02:00
Aaron van Geffen 35b6eb0962 Split onToolUpdate function into smaller functions 2025-10-18 17:13:10 +02:00
Aaron van Geffen 5f6ee39a5f Split onToolDown function into smaller functions 2025-10-18 16:56:32 +02:00
Aaron van Geffen e10893f255 Scenery window: remove indirection from tool functions 2025-10-18 16:41:20 +02:00
Gymnasiast daa4fe8ac3 Rename field of all config categories 2025-10-07 20:21:32 +02:00
Gymnasiast 1f8c9af9ce Rename methods of InputManager 2025-10-01 20:35:35 +02:00
Gymnasiast 45912ec9a3 Rename members of SoundId 2025-10-01 20:35:34 +02:00
Gymnasiast a03613df35 Change FilterPaletteID to lowerCamelCase 2025-09-23 21:09:54 +02:00
Michael Steenbeek 77d330a004 Merge pull request #25205 from Gymnasiast/refactor/more-code-style-b
Refactor more UI code style
2025-09-19 16:15:30 +02:00
Aaron van Geffen f5faef7bea Scenery window: increase minimum height
This increases the minimum height of the Scenery window to fit at least 1.5 rows of scenery items, instead of 1 row. This is done to ensure the eyedropper and scatter tools are visible with multiple rows of tabs as well.

Before:
<img width="634" height="224" alt="Imagination Megapark 2025-09-15 22-38-56" src="https://github.com/user-attachments/assets/dcce9fad-a8e1-4001-9552-dd1ff97c082c" />

After:
<img width="634" height="264" alt="Imagination Megapark 2025-09-15 22-38-46" src="https://github.com/user-attachments/assets/8e545aa7-8aef-4642-b78e-858bed2db1e8" />
2025-09-17 21:51:12 +00:00
Gymnasiast aab21c4747 Rename validate_global_widx to VALIDATE_GLOBAL_WIDX 2025-09-17 23:50:28 +02:00
Gymnasiast ea5fc03dd0 Turn WindowDetail into strong enum 2025-09-17 23:35:10 +02:00
Gymnasiast a662c5ef8e Change WindowClass members to use lowerCamelCase 2025-09-17 23:18:52 +02:00
Gymnasiast 3a803e13e2 Change window functions to use lowerCamelCase 2025-09-17 20:10:12 +02:00
Gymnasiast d4a0bca091 Rename Window fields 2025-09-17 20:10:12 +02:00
Gymnasiast b6e09bbc7e Change code style of enums in Viewport.h 2025-09-17 20:10:11 +02:00
Gymnasiast 9db3d609d2 Turn MapSelectType into enum class 2025-09-11 22:06:10 +02:00
Gymnasiast 6f7987e1c7 Turn MapSelectFlags into FlagHolder 2025-09-11 22:06:10 +02:00
Aaron van Geffen 4446ff9f6f Pass game state ref as parameter to game actions (#25065) 2025-09-08 16:21:29 +02:00
Aaron van Geffen 5a4cc7d00d Remove Network function name prefixes given namespace qualifiers 2025-08-31 16:02:43 +02:00
Aaron van Geffen 5b8fedd5b2 Rework Map.h includes (remove transitive header includes) 2025-09-04 22:16:53 +02:00
Aaron van Geffen 013fcb3798 Split off MapSelection.h from Map.h 2025-09-04 21:57:36 +02:00
Aaron van Geffen abe58f6439 Move ClearAction, GameAction, ScenarioSetSettingAction into GameActions (#25045) 2025-08-29 06:32:05 -03:00
Aaron van Geffen 238b397968 Move scenery game actions into GameActions namespace 2025-08-26 15:55:26 +02:00
Aaron van Geffen bcb803df96 Move Footpath game actions into GameActions namespace 2025-08-26 14:48:16 +02:00
Aaron van Geffen e8ef3897df Rework more game actions into GameActions namespace 2025-08-26 14:22:58 +02:00
Aaron van Geffen 134f4ac43e Start moving game actions into GameActions namespace 2025-08-25 22:16:55 +02:00
Gymnasiast 9c810d9e32 Update ParkData fields to new code style 2025-08-21 22:12:41 +02:00
mix 92cf940b86 Fix #24785: Change scenery window filter to use filename instead of full path (#24786) 2025-07-23 07:03:09 -03:00
mix 312225ecc2 Fix scenery and new ride windows non legacy object file name filter 2025-07-14 16:30:54 +01:00
Michael Steenbeek 7b322d825a Refactor constants in window .cpp files 2025-06-16 23:10:47 +02:00
Gymnasiast 81e3181ebb Pass ScreenSize to makeWindowShim() 2025-06-10 23:21:15 +02:00
Gymnasiast bd6ae5848c Rename remaining methods in Widget.h to lowerCamelCase 2025-06-10 23:20:18 +02:00
Gymnasiast 650fa3ae2e Rename WindowWidgetType to WidgetType and change for new code style 2025-06-10 19:55:12 +02:00