Vinicius Sa
80718f1774
Use helper function GetPeepAnimation
...
It's intended to retrieve a rct_peep_animation_entry from the global
array g_peep_animation_entries, given PeepSpriteType and
PeepActionSpriteType as parameters.
2020-10-07 17:34:25 -03:00
Vinicius Sa
4d28901cb0
Refactor PeepSpriteType to use strong enum
...
Issue: 12396
2020-10-07 17:34:21 -03:00
Duncan
eb3f3edc1b
Use RemoveViewport helper function ( #13104 )
2020-10-06 10:27:56 +01:00
Duncan
2063aea5ef
Remove common format formatter where possible ( #13034 )
...
* Remove common format formatter where possible
Eventually should have it limited to tooltips, window titles and widget args
* Remove remaining paint functions using common
* Remove misuse of gCommonFormatArgs
2020-09-30 22:42:04 +01:00
Aaron van Geffen
d27e14f45b
Compact, statically initialized syntax for event lists ( #12973 )
2020-09-28 20:36:15 +02:00
Michael Steenbeek
4a79e9305f
Replace gfx_draw_string_right() with DrawTextBasic ( #12966 )
2020-09-18 21:39:00 -03:00
frutiemax
af591c834b
Part of #12097 : Use ScreenRect on gfx_fill_rect_inset (1) ( #12938 )
...
* Part of #12097 : Use ScreenRect on gfx_fill_rect_inset (1)
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2020-09-16 00:02:22 -03:00
Gymnasiast
b788a099b5
Replace gfx_draw_string_clipped() calls with DrawTextEllipsised
2020-09-10 18:13:13 +02:00
Gymnasiast
6e22eade67
Create Objective struct and use it for global objective
2020-09-09 15:38:03 +02:00
Tulio Leao
731a93dc39
Create WindowColour enum for widget definition calls ( #12722 )
...
* Make MakeWidget* functions take enum colour
* Make windows A-D use WindowColour enum
* Make windows E-G use WindowColour enum
* Make windows I-M use WindowColour enum
* Make windows N-P use WindowColour enum
* Make windows R-S use WindowColour enum
* Make windows T use WindowColour enum
* Make windows V-W use WindowColour enum
2020-08-28 23:31:31 -03:00
Aaron van Geffen
6b9211c8b8
Refactor Park, Player, Research, Ride* to use MakeTab
2020-08-17 20:59:42 +02:00
Matt Thomson
a8f8f06e2d
Fix #12402 : Refactor MEASUREMENT_FORMAT to use strong enum ( #12642 )
...
* Fix #12402 : Refactor MEASUREMENT_FORMAT to use strong enum
* Remove redundant default branches
Co-authored-by: Matt Thomson <matt-thomson@users.noreply.github.com>
2020-08-13 21:51:28 +01:00
Michael Steenbeek
33d9fc2b75
Fix #10549 : 'Build the best ride you can' objective missing ride name
...
This is implemented in a way that is compatible with RCT2 (as long as the ride type was not split).
2020-08-13 00:23:08 +02:00
Aaron van Geffen
c1cff7fab0
Refactor Park
2020-07-30 22:25:18 +02:00
Aaron van Geffen
7b5087f057
Update copyright year to 2020
2020-07-21 15:04:34 +02:00
Aaron van Geffen
2e153a7e95
Introduce widget::midX and widget::midY helper functions
2020-06-25 10:31:15 +02:00
Aaron van Geffen
681b8d7938
Introduce widget::width and widget::height helper functions ( #12053 )
2020-06-24 22:44:00 -03:00
TomasZilinek
cd6076b5bc
FIx #12017 - Create gfx_draw_sprite overload ( #12049 )
...
Second and final part. replaces the rest of the calls and removes the old function.
2020-06-24 12:48:17 -03:00
TomasZilinek
c1546059ad
Close #11571 - Remove <x,y> gfx_draw_string_left overload ( #12010 )
...
Third and final part. replaces the rest of the calls to x,y overload
2020-06-20 16:09:45 -03:00
Tulio Leao
613cec3f7a
Part of #11564 : gfx_draw_string_centred_clipped with ScreenCoordsXY
2020-06-14 12:26:53 -03:00
Tulio Leao
ce171164c9
Merge pull request #11932 from tupaschoal/draw_string_right-11569
...
Use ScreenCoordsXY for gfx_draw_string_right
2020-06-14 12:11:10 -03:00
Tulio Leao
d6baec3f66
Reduce scope of ScreenCoordsXY variables
2020-06-11 18:26:16 -03:00
Tulio Leao
03ba7e5301
Merge pull request #11933 from AaronVanGeffen/unused-vars
...
Patch unused variables
2020-06-11 12:12:06 -03:00
Aaron van Geffen
3090e2af79
Fix compilation failure due to unused vars.
...
Compilation fails due to warnings-turned-errors.
2020-06-11 15:22:06 +02:00
Tulio Leao
183ee1e595
Part of #11569 : Use ScreenCoordsXY instead of <x,y>
2020-06-11 10:11:33 -03:00
Tulio Leao
fab0ea131f
Part of #11569 : Use gfx_draw_string_right with ScreenCoordsXY
2020-06-11 10:11:20 -03:00
Gymnasiast
02338ffc5c
Migrate 50 more calls to set_format_arg()
2020-06-03 14:49:04 +02:00
Gymnasiast
f640446d58
Migrate 40 calls to set_format_arg()
2020-06-03 14:49:04 +02:00
Sohil Adwani
d2565af867
Part of #11562 : gfx_draw_string_left_wrapped() overload ( #11784 )
2020-05-19 21:57:11 -03:00
Michael Steenbeek
620fb5e5c4
Migrate many set_format_arg calls to Formatter ( #11744 )
2020-05-13 21:29:39 -03:00
Michael Steenbeek
a261b4ce33
Remove commented out code ( #11721 )
2020-05-11 13:54:15 +02:00
Gymnasiast
f8aeb70398
Apply review requests
2020-05-09 18:07:16 +02:00
Gymnasiast
43556d2dec
Remove ifdefs for LEFT_CLOSEBOX - for now
2020-05-09 18:07:16 +02:00
Gymnasiast
9e4c664944
Replace defines with constexpr
2020-05-09 18:07:16 +02:00
Gymnasiast
96fe3d3b3c
Make WINDOW_SKELETON take a title, height and width
2020-05-09 18:07:16 +02:00
tassaron2
559ede5d14
Add compile option to move close box to the left
2020-05-09 18:07:16 +02:00
Tulio Leao
d0704baab2
Make window_dropdown_show_text() use ScreenCoordsXY
2020-05-01 15:58:36 -03:00
Tulio Leao
2b68610473
Fix #11331 : Create constant for failure on ScenarioCompletedCompanyValue ( #11332 )
2020-04-18 13:46:18 +02:00
Tulio Leao
935cfe90fc
Use named casts on openrct2-ui/windows ( #11136 )
2020-04-18 13:32:48 +02:00
Aaron van Geffen
340f6522dd
Increase the height of various price/loan/duration spinner widgets.
2020-03-16 23:46:33 +01:00
Aaron van Geffen
dfe1c8dea8
Use COMMA32 instead of UINT16 for future-proofing; amend changelog.
2020-03-11 19:25:32 +01:00
Aaron van Geffen
64e2edd285
Add y-axis labels and guides to park guests chart.
2020-03-11 19:24:37 +01:00
Aaron van Geffen
7be46934ea
Add y-axis labels and guides to park rating chart.
2020-03-11 19:24:36 +01:00
Aaron van Geffen
9c5f1248d5
Resize park rating and guests' tabs to accomodate y axis labels.
2020-03-11 19:24:36 +01:00
Tulio Leao
724a6d4dcf
Make rct_window use ScreenCoordsXY
2020-03-02 20:51:01 -03:00
Tulio Leao
87f724d038
Use Coords objects for viewport_create()
2020-03-02 20:49:59 -03:00
Matt
cc6321048f
Refactor window_invalidate to use rct_window::Invalidate
2019-08-11 17:22:00 +02:00
Matt
2053ecb688
Refactor window_scroll_to_viewport to use rct_window::ScrollToViewport
2019-08-11 17:22:00 +02:00
Aaron van Geffen
5066ebebf9
Fix #9574 : Text overflow in scenario objective window.
2019-07-29 15:16:36 +02:00
Ted John
7a2a5a7924
Fix #9626 : Crash when navigating to price tab on park window ( #9634 )
...
The park name argument was being overwritten by the price argument in the argument buffer. Draw price text in paint event instead.
2019-07-23 21:47:53 +02:00