Commit Graph
365 Commits
Author SHA1 Message Date
Gymnasiast 2398d91fb2 Rename DrawTextBasic() to DrawText() 2026-03-25 23:15:49 +01:00
Gymnasiast 800e656c4b Merge TTFGetStringWidth and GfxGetStringWidth 2026-03-25 23:14:57 +01:00
Gymnasiast df1564c9cd Namespace Drawing.String.cpp, declare its functions in Drawing.String.h 2026-03-25 23:14:57 +01:00
Michael Steenbeek decc6631d5 Remove Formatter::Common() (#26197) 2026-03-16 13:01:38 +00:00
matheusvb3 512d69fa49 Create OpenStringWithArgs.h (#26155) 2026-03-06 16:46:41 +01:00
Aaron van Geffen 86b2a0011b Resize dropdowns in options window (#26139)
This resizes the dropdowns and spinner widgets in the options window to be 14px high, now fitting CJK glyphs properly.

Even for languages that use the built-in sprite font (e.g. English), the difference is quite nice, imo. Below are screenshots of the display tab, for good measure.
2026-03-05 22:17:37 +01:00
matheusvb3 0271639f6d Rename OpenRCT2String to StringWithArgs (#26112) 2026-03-01 10:46:37 +00:00
Aaron van Geffen 1cc7006127 Reorganise game actions into folders (#25987) 2026-02-10 08:57:40 +01:00
Aaron van Geffen 773ba479cd Create separate unit for GameActionRunner 2026-02-09 16:06:56 +01:00
Gymnasiast e46d2eba9e Move colour map to its own file 2026-01-17 18:46:54 +01:00
Gymnasiast 04a3d02023 Rename members of ColourShadeMap 2026-01-16 19:25:58 +01:00
matheusvb3 bba937a03d Remove more redundant namespace qualifiers (#25828) 2026-01-16 08:38:20 +01:00
matheusvb3 88e33e7afb Use bool literals instead of constants (#25817) 2026-01-14 23:10:13 +01:00
matheusvb3 9166f3e83d Remove redundant static_casts in miscellaneous files (#25772) 2026-01-08 13:34:44 +01:00
Aaron van Geffen b5cd780b3e Rework drawing header includes (#25744)
* Move Csg unit into OpenRCT2 namespace

* Move G1Element into its own header file

* Clean up SpriteCommands.h

* Add trailing namespace comment to Csg.cpp

* Remove Drawing.h dependency from Graph.h

* Add <memory> include to G1Element.h

* Remove Drawing.h include from ImageTable.h (used by all objects!)

* Drop Drawing.h dependency from OpenGLFramebuffer.h

* Drop Drawing.h dependency from TextureCache.h

* Drop Drawing.h include from TitleScene.h

* Drop Drawing.h dependency from Widget.h

* Add <optional> include to SpriteFile.h

* Add Drawing.h to PlayTests, S6ImportExportTests

* Include <cstdint> in TitleScene.h for SIZE_MAX
2026-01-05 19:09:34 +00:00
Aaron van Geffen 40aaf97c07 Update copyright years to 2026 (#25741) 2026-01-05 13:42:59 +00:00
Michael Steenbeek c8445ebbeb Merge pull request #25641 from Gymnasiast/refactor/inspection
Refactor inspection interval and fix bugs
2025-12-31 12:54:19 +01:00
Aaron van Geffen 8a0a655025 Unwrangle Drawing.h and Paint.h (#25706)
* Drop Drawing.h include from Paint.h

* Split off RenderTarget to its own header/unit

* Move FilterPaletteID to its own header
2025-12-26 12:58:33 +01:00
Gymnasiast cb7f720e87 Change inspection interval to use enum class 2025-12-25 12:24:20 +01:00
Gymnasiast 95c22476c9 Moving scrolling text handling into its own namespace, fix usage of colour_t 2025-12-20 11:43:36 +01:00
Michael Steenbeek 5a547fc2bb Fix return value of Widget::height() 2025-12-12 18:26:05 +01:00
Michael Steenbeek 6f24577027 Fix return value of Widget::width() 2025-11-08 10:27:58 +01:00
Gymnasiast 0ec4e3353b Update members of FontStyle 2025-11-03 23:25:30 +01:00
Gymnasiast 8457be26e9 Rename members of CurrencyType 2025-10-07 20:24:44 +02:00
Gymnasiast daa4fe8ac3 Rename field of all config categories 2025-10-07 20:21:32 +02:00
Michael Steenbeek eb38b7227f Change WindowFlag to strong enum 2025-09-20 21:46:42 +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
Aaron van Geffen 4446ff9f6f Pass game state ref as parameter to game actions (#25065) 2025-09-08 16:21:29 +02:00
Michael Steenbeek 414689fb1b Dropdown: remove ‘format’ and ‘args’ altogether (#25053)
* Remove ‘format’ and ‘args’ altogether

* Change text field to a char array

* Small cleanup

* Apply changes to STR_1156/7 to all languages

* Fix width calculation
2025-09-07 00:09:46 +02:00
Gymnasiast 7f2c4261b4 Remove ‘format’ and ‘args’ altogether 2025-09-03 17:57:43 +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 abe58f6439 Move ClearAction, GameAction, ScenarioSetSettingAction into GameActions (#25045) 2025-08-29 06:32:05 -03:00
Gymnasiast 173b6a2032 Create MenuLabel overload for C strings 2025-08-24 11:30:59 +02:00
Gymnasiast 6f1b0bde03 Create ToggleOption and Separator constructors 2025-08-24 11:30:59 +02:00
Gymnasiast bde70ea95f Create MenuLabel constructor 2025-08-24 11:30:59 +02:00
Gymnasiast af50e9b0da Fold tooltips and images into dropdown items 2025-08-24 11:30:59 +02:00
Gymnasiast ff896787ac Replace dropdown disabled/checked functions 2025-08-24 11:30:58 +02:00
Michael Steenbeek 577c3336c6 Create struct for all dropdown-related globals (#25023) 2025-08-23 13:56:13 +02:00
Gymnasiast 8fd9658cd3 Update dropdown item fields and functions to new code style 2025-08-21 21:33:22 +02:00
Michał Janiszewski 763242b14d Add ability to scroll the map with gamepad stick 2025-07-03 22:48:59 +02:00
Michael Steenbeek f9b132e24d Remove sorting by difficulty in the scenario selector
This is barely used, complicates the scenario selector and Options window, and will get in the way when adding RCTC and custom campaign support. Time to remove it.
2025-06-24 10:53:26 +00:00
Michael Steenbeek 7b322d825a Refactor constants in window .cpp files 2025-06-16 23:10:47 +02:00
Michał Janiszewski 0e9982d6ca Drop "Pause game when Steam overlay is open" feature
As shown in https://github.com/OpenRCT2/OpenRCT2/pull/24618, the steam
overlay feature doesn't work well and can cause jarring user experience
in some scenarios. It is only supported in the software renderer and
with code moving steadily to OpenGL, the time has come to remove a
broken feature.
2025-06-16 21:57:56 +02:00
Gymnasiast 81e3181ebb Pass ScreenSize to makeWindowShim() 2025-06-10 23:21:15 +02:00
Gymnasiast bdba89f428 Pass ScreenSize to window creation functions 2025-06-10 23:20:28 +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
Gymnasiast 149468406b Update WindowColour enum for new code style 2025-06-10 19:53:12 +02:00