Hielke Morsink
15d3a4a9da
Update more include guards ( #15254 )
2021-08-21 12:55:28 +02:00
Ted John
5f853df1fd
Remove gS6Info
2021-08-02 20:38:02 +02:00
Gymnasiast
93515f4414
Use money64 for land and water tools
...
Should hopefully also fix CI.
2021-08-01 15:14:43 +02:00
Gymnasiast
676ef7205e
Change all calls to DrawTextBasic to use Formatter
2021-08-01 15:14:43 +02:00
Ted John
70d9c1438e
Change most things and formatting to money64
2021-08-01 15:14:42 +02:00
Duncan
e9eb1b8304
Banner Refactor from NSF ( #14788 )
...
* Banner refactor
* Fix mistake in fix_duplicated_banners
* Reduce limit back
* Fix export
* Free banner on delete
* Increment network version
* Fix potential banner pointer crashes
Co-authored-by: Ted John <ted@brambles.org >
2021-07-27 10:25:58 +01:00
ZehMatt
c15f17c49a
Fix potential null dereference
2021-07-22 22:14:12 +03:00
Daniel Karandikar
b017ea4159
Fix [ #12262 ]: Windows can appear off screen in some cases ( #14881 )
...
Fix: [#12262 ] Windows can appear off screen with small screens or high scaling.
2021-07-03 09:38:39 -03:00
ζeh Matt
751c419594
Minor cleanups ( #14954 )
...
* Fix uninitialized variables in InputManager
* Use constexpr for const values
* Add break statements instead of implicit fallthrough
* Default initialize variables in Cheats window
* Default initialize variables in News window
* Default initialize window event pointers
2021-06-26 01:43:05 -03:00
Jamie Quigley
4f6d0a00fd
Refactor RIDE_STATUS to use strong enum ( #14840 )
...
* Refactor RIDE_STATUS to use strong enum
* Change platform-specific code to match RIDE_STATUS refactor
* Re-added check for valid RideStatus value
* Fixed errors in "g2" build target
* Use EnumValue instead of static_cast<uint8_t>
* Revert rct{1,2}.h to use uint8_t.
* Fix formatting
* Reverted from constexpr variable to additional enum variant
* Fix formatting
2021-06-10 07:09:58 +01:00
Duncan
c34079acee
Refactor LargeSceneryEntry and remove rct_scenery_entry ( #14816 )
2021-06-04 12:41:23 +01:00
Duncan
12c5484f44
Refactor SmallSceneryEntry ( #14815 )
2021-06-03 22:14:41 -03:00
Duncan
8f59fe91cb
BannerSceneryEntry Refactor ( #14810 )
...
* Refactor BannerSceneryEntry to enforce type
* Remove old comment
* Fix incorrect renameing
2021-06-03 21:43:30 +01:00
Duncan
6f81248084
Rework and refactor PathBitEntry ( #14809 )
2021-06-03 21:23:00 +01:00
Duncan
425f968a67
Rearrange WallSceneryEntry to enforce types ( #14808 )
...
* Rearrange WallSceneryEntry to enforce types
* Clang format
Correct inverted nullptr check
2021-06-03 13:26:00 +01:00
Duncan
39fcc5d078
Split up Sprite header ( #14764 )
...
* Remove fields from rct_sprite union
* more header fun
* Fix guest include
2021-05-29 06:01:32 +01:00
Silent
94da3cf422
Fix #13445 : Make FileScanner::ScanDirectory return a unique_ptr
...
Also fixes a resource leak in TitleSequence::GetSaves.
2021-05-20 19:22:36 +02:00
ZeeMajora
0123a3d141
Close #14655 : make Changelog window brown in RCT1 theme
2021-05-15 16:53:44 +02:00
Michael Steenbeek
f06bf3681d
Fix #14638 : Make 'About OpenRCT2' themeable; more RCT1 window colours
2021-05-13 18:28:09 +02:00
duncanspumpkin
c345396765
Move duck method into class
2021-05-13 16:09:26 +02:00
Ted John
ea961aed93
Fix #14428 : No text visible in in-game console window ( #14429 )
2021-04-03 00:12:30 +01:00
Michael Steenbeek
7344b7fbfd
Use 16-bit ride_id_t thoughout and raise RIDE_ID_NULL ( #14411 )
...
* Replace RIDE_ENTRY_INDEX_NULL with OBJECT_ENTRY_INDEX_NULL
Ride entries are objects like any other, so there is little point having separate constants.
* Use ride_id_t in many more places
* Change RIDE_ID_NULL to 0xFFFF
* Increment network version
* Update replays
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk >
2021-04-01 16:02:57 +01:00
Tulio Leao
7e78061e16
Use ScreenCoordsXY on InGameConsole
2021-03-29 09:34:11 -03:00
Tulio Leao
bb8c275df6
Remove raw coords gfx_fill_rect_inset overload
2021-03-29 09:34:11 -03:00
Tulio Leao
08e182fba2
Use ScreenCoordsXY on Graph methods
2021-03-29 09:34:11 -03:00
Tulio Leao
eab297f9ff
Use ScreenCoordsXY on Graph::Draw
2021-03-29 09:34:11 -03:00
Geoff B
6c8493cb69
Close #14253 : Replace font size tokens with adjusted DrawText calls
2021-03-27 14:40:17 +01:00
Michael Steenbeek
a5a63f839a
Allow passing ImageId into gfx_draw_sprite()
2021-03-23 11:58:09 +01:00
Duncan
df7a284822
Entity type 2: Remove sprite_identifier ( #14334 )
...
* Start changing the underlying type
* Further work
* Complete refactor
* Further cleanup
* Remove pointless check
* Increment network and plugin versions
* Add defaults
* Further defaults
* Fix test paint
* Update replays
2021-03-17 08:04:41 +00:00
Duncan
6ec379cd0e
Split Entity Lists by Entity type ( #14326 )
...
* Make initial changes to add entity type
* Make further corrections
* Revert header changes
* Fix mistakes
2021-03-16 11:18:06 +00:00
Michael Steenbeek
96524e2b4a
Convert Land window to class
2021-03-15 23:08:00 +01:00
Gymnasiast
a0523339d3
Apply review request
2021-02-28 21:24:17 +01:00
Gymnasiast
7fd049c22e
Remove last remnants of gCurrentFontSpriteBase
2021-02-28 00:26:53 +01:00
Gymnasiast
c40701d997
Make gfx_draw_string() take a TextPaint argument
2021-02-28 00:26:20 +01:00
Gymnasiast
503273793a
Remove gCurrentFontSpriteBase from some functions
2021-02-28 00:26:20 +01:00
Gymnasiast
826f6c7442
Reduce usage of gCurrentFontSpriteBase
2021-02-28 00:25:30 +01:00
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
2477933c51
Turn font sprite base into a strong enum
2021-02-28 00:23:00 +01: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
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
93f17f1175
Add custom widget logic and network stats API
2021-02-24 22:37:31 +00:00
Ted John
762b6ee816
Refactor viewport interaction flags and add plugin API
2021-02-18 18:10:29 +00:00
ζeh Matt
9ff2138f3f
Remove unused variable gCurrentFontFlags
2021-01-30 16:46:22 +01:00
Ted John
2fdf91874c
Implement centred labels
2021-01-29 17:50:32 +00:00
Ted John
be350f7e2e
Add widget visible flag
2021-01-26 00:25:59 +00:00
Duncan
8d25e4ccd9
Split closest peep calculation into Staff and Guest ( #13880 )
2021-01-20 14:21:22 +01:00