1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 19:13:07 +01:00
Commit Graph

20921 Commits

Author SHA1 Message Date
Gymnasiast
3e536e2711 Change gfx_draw_string_*_wrapped() to DrawTextWrapped() 2021-02-28 00:23:01 +01:00
Gymnasiast
e2ebc9d43b Replace gfx_draw_string_left() with DrawTextBasic() 2021-02-28 00:23:00 +01:00
Gymnasiast
d5f79b7972 Replace gfx_draw_string_centred() with DrawTextBasic() 2021-02-28 00:23:00 +01:00
Gymnasiast
a4747b9c8c Fix initial value of SpriteBase 2021-02-28 00:23:00 +01:00
Gymnasiast
4d9c278ebc Unify calls to DrawTextBasic 2021-02-28 00:23:00 +01:00
Gymnasiast
13e7ec6e8e Allow passing TextPaint to DrawTextBasic() 2021-02-28 00:23:00 +01:00
Gymnasiast
ac1e9abb56 Create constructors for TextPaint 2021-02-28 00:23:00 +01:00
Gymnasiast
c296c35f39 Use colour_t for colours enum 2021-02-28 00:23:00 +01:00
Gymnasiast
2477933c51 Turn font sprite base into a strong enum 2021-02-28 00:23:00 +01:00
Gymnasiast
582037bbf3 Create enum class for text underline 2021-02-28 00:23:00 +01:00
Ted John
314faa69ca Save user shortcuts after removing a binding 2021-02-27 15:51:26 +00:00
Ted John
1ee72ffd21 Fix #14184: Right and down arrow swapped
Incorrect order of legacy shortcut IDs.
2021-02-27 15:51:05 +00:00
Ted John
ce11d1eb2f Add missing property trackLocation to openrct2.d.ts 2021-02-27 02:44:00 +00:00
Ted John
31a30c0307 Fix lint errors in openrct2.d.ts 2021-02-27 02:20:47 +00:00
Ted John
49b677780f Merge pull request #14171 from IntelOrca/plugin/custom-widget
* Add API for getting network traffic statistics.
* Add API for creating custom widgets.
* Add API for drawing graphics for custom widgets.
* Add click event to spinners and allow them to be held down.
2021-02-27 01:31:00 +00:00
Michael Steenbeek
08f07e6135 Reduce usage of gCurrentFontSpriteBase (#14178) 2021-02-26 15:39:20 +01:00
Michael Steenbeek
9397feaa44 Merge pull request #14134 from duncanspumpkin/reorg_entityexport
Rework how entity export works to allow for easier changes in future
2021-02-26 13:08:56 +01:00
Michael Steenbeek
28c680f97f Merge pull request #14163 from Gymnasiast/refactor/get-rtd
Use GetRideTypeDescriptor() in more places
2021-02-26 10:46:38 +01:00
Gymnasiast
48f513f73f Apply review request; fix Testpaint 2021-02-26 10:19:03 +01:00
Gymnasiast
44d0e77afb Make all access to RTD table use the bounds checking function 2021-02-26 10:01:00 +01:00
Gymnasiast
62f8796677 Replace more flag checking 2021-02-26 09:51:17 +01:00
Gymnasiast
f118b2ede4 Replace ride_type_has_flag() with retrieving RTD 2021-02-26 09:49:09 +01:00
OpenRCT2 git bot
03d6771cce Merge Localisation/master into OpenRCT2/develop 2021-02-26 04:05:52 +00:00
Ted John
e000f06442 Remove holdable flag from spinner widget 2021-02-25 22:30:35 +00:00
Gymnasiast
b1ab20ec27 Replace loose flag checking with helper function 2021-02-25 23:04:40 +01:00
Ted John
f7650fdfbc Fix CI failure 2021-02-25 18:47:54 +00:00
Michał Janiszewski
6340b1248c Merge pull request #14146 from janisozaur/reduce-includes
Reduce inclusion of Vehicle.h
2021-02-25 16:51:43 +01:00
Michał Janiszewski
ac6e4fc0d6 Move SPRITE_INDEX_NULL, MAX_SPRITES to their new homes 2021-02-25 10:56:27 +01:00
Michał Janiszewski
67b61478cf Reduce inclusion of EntityList.h 2021-02-25 10:56:27 +01:00
Michał Janiszewski
6baff43f52 Reduce inclusion of Sprite.h 2021-02-25 10:56:27 +01:00
Michał Janiszewski
24f0407740 Add missing include in Windows. cpp 2021-02-25 10:56:27 +01:00
Michał Janiszewski
003e5a0136 Change include guards 2021-02-25 10:56:27 +01:00
Michał Janiszewski
8ee49ab615 Reduce inclusion of world/Sprite.h 2021-02-25 10:56:27 +01:00
Michał Janiszewski
bfdf6874ac Reduce inclusion of Vehicle.h 2021-02-25 10:56:27 +01:00
OpenRCT2 git bot
2733447387 Merge Localisation/master into OpenRCT2/develop 2021-02-25 04:05:56 +00:00
Ted John
c7d9eba9db Increment plugin API version 2021-02-24 22:56:29 +00:00
Ted John
a98d9aaf41 Update changelog 2021-02-24 22:56:17 +00:00
Ted John
d64bd60278 Fix CI errors 2021-02-24 22:54:53 +00:00
Ted John
c2183989a5 Allow spinners to be clicked and held 2021-02-24 22:37:31 +00:00
Ted John
c1b0df5de6 Improve graphics plugin API 2021-02-24 22:37:31 +00:00
Ted John
081c1895ce Add box and well APIs 2021-02-24 22:37:31 +00:00
Ted John
93f17f1175 Add custom widget logic and network stats API 2021-02-24 22:37:31 +00:00
Ted John
82b1a5eb6d Convert CustomWindow into a class 2021-02-24 22:37:31 +00:00
Ted John
faf7f5706f Merge pull request #14158 from IntelOrca/fix/14149-shortcuts-save
Fix #14149: Numpad shortcut keys are not loaded correctly
Fix #14160: Game crashs when registering shortcuts
Fix #14161: ShortcutDesc.bindings does not work
2021-02-24 22:19:30 +00:00
Ted John
668ea01548 Update src/openrct2-ui/windows/ShortcutKeys.cpp
Co-authored-by: Aaron van Geffen <aaron@aaronweb.net>
2021-02-24 16:57:19 +00:00
Gymnasiast
d63e3b1d9f Replace RideTypeDescriptors[ride->type] with GetRideTypeDescriptor() 2021-02-24 14:10:30 +01:00
Gymnasiast
56399e7188 Use the RTD instead of ride_type_has_flag() 2021-02-24 14:10:30 +01:00
Gymnasiast
429f6fb845 Always return an RTD 2021-02-24 14:10:22 +01:00
duncanspumpkin
d2fdf0917b Remove static casts and use union 2021-02-24 08:08:59 +00:00
duncanspumpkin
11da10971f Reorg again to reduce casts 2021-02-24 08:00:38 +00:00