frutiemax
508344a088
Close #12174 : Remove Formatter additions with uintptr_t
2020-07-11 18:56:12 +02:00
frutiemax
26ae2dbf04
Part of #11437 : Move PlatformFileExists to Platform2.h ( #12077 )
2020-07-02 12:03:31 -03: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
69db54f770
Fix #12018 - gfx_draw_sprite_solid overload ( #12023 )
...
Creates the overload, replaces all calls to the old function and removes the old function.
2020-06-21 11:50:05 -03:00
TomasZilinek
2264c5f7f1
Part of #11571 - Use gfx_draw_string_left with ScreenCoordsXY ( #12008 )
2020-06-20 11:56:36 -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
Gymnasiast
aaece7a435
Remove Twitch from Options window
2020-05-28 09:28:32 +02:00
TusharSariya
2cf95adc4b
Fix #11565 : gfx_draw_string_left_clipped to use ScreenCoordsXY ( #11765 )
...
* Issue #11565 , created overload for gfx_draw_string_left_clipped
Co-authored-by: Tushar <tushar.97@hotmail.com>
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2020-05-17 19:30:58 -03:00
Gymnasiast
6fd83fd006
Make WW and WH static
2020-05-09 18:07:16 +02:00
Gymnasiast
f8aeb70398
Apply review requests
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
4933785b1c
Make window_dropdown_show_text_custom_width() use ScreenCoordsXY
2020-05-01 15:48:20 -03:00
Michael Steenbeek
0ecc64f781
Fix #11407 : Setting an RCT1 path needs better error messages ( #11418 )
2020-04-25 15:36:44 +02:00
Michał Janiszewski
5bfc41f49e
openrct2-ui cast fixes ( #11348 )
2020-04-19 14:08:22 +02:00
Tulio Leao
523e6ca4a0
Fix #11340 : Sound bar only working when maxed out ( #11341 )
...
The changesets replacing c-style casts with named casts mistakenly added some parentheses in the wrong place, changing the evauluation order.
2020-04-18 20:21:30 +02:00
Tulio Leao
935cfe90fc
Use named casts on openrct2-ui/windows ( #11136 )
2020-04-18 13:32:48 +02:00
WantDiscussion
828eef7411
Introduced optional light effects for vehicles at night. ( #10970 )
2020-03-20 11:47:31 +01:00
Tulio Leao
724a6d4dcf
Make rct_window use ScreenCoordsXY
2020-03-02 20:51:01 -03:00
Aaron van Geffen
acc6cffad3
Apply clang-format.
2020-01-22 11:41:34 +01:00
Michael Berk
914c07a711
Added Random Title Sequence
2020-01-22 11:41:34 +01:00
Tulio Leao
c4a865384e
Move Mac-only str handling functions to Platform ( #10264 )
2020-01-04 12:44:40 +01:00
Tulio Leao
d1cec43065
Use constexpr on openrct2-ui/*
2019-10-29 18:48:04 -03:00
Matt
cc6321048f
Refactor window_invalidate to use rct_window::Invalidate
2019-08-11 17:22:00 +02:00
Spongeloaf
5777074a3e
#9285 Add feature to remember scernario tab
2019-06-21 12:54:49 -04:00
Hielke Morsink
5418eb6e34
Add transparency setting to options window
2019-06-09 11:03:01 +02:00
Ted John
fec6d660c6
Remove obsolete configs:
...
- no crashes
- test unfinished track
2019-05-28 16:50:08 +01:00
Matt
37c3809744
Implement partial multicore rendering
2019-03-31 15:50:55 +02:00
Aaron van Geffen
2af13904c5
Update copyright notices for 2019. ( #8903 )
2019-03-17 07:16:15 +00:00
Hielke Morsink
27a64f71c8
Fix #8682 : Autosave settings don't react to user input
...
Regression from #8648 .
2019-02-06 23:18:45 +01:00
Tom Lankhorst
521948139c
Chat toggle button ( #8648 )
...
* Add chat_available()
* Add appropriate strings
* Add new Chat icon
* Implement Chat button
* CS
* Fix chat icon
* Make chat icon a bit smaller and less bright
* Update chat icon
* Update changelog
2019-02-03 23:30:34 +01:00
Lars Toenning
7de115263e
Fix #8377 : Change number of autosaves that are stored ( #8440 )
2019-01-19 14:31:12 +01:00
ζeh Matt
223ae74c6b
Refactor code to obtain resolutions. ( #8215 )
2018-11-06 07:20:57 +01:00
Michał Janiszewski
95175b44e9
Prevent recently closed window from having actions performed on it ( #8143 )
...
Fixes #8121
2018-10-24 20:57:39 +02:00
Aaron van Geffen
25170fda45
Implement #7658 : Add option to always use system file browsing window.
2018-08-18 13:28:27 +02:00
Hielke Morsink
01608baeb6
Draw sound effects and music checkboxes as disabled when appropirate
2018-08-17 22:15:58 +02:00
Hielke Morsink
c99d28116f
Fix muting game sounds instead of master sound
...
Clicking mute from the top toolbar or from with the hotkey will toggle the master volume instead of the game volume now, and invalidates the options window to immediately make the checkbox visible.
2018-08-17 22:14:11 +02:00
Aaron van Geffen
69d76a3263
Pause/unpause audio when disabling channels.
2018-08-17 22:14:11 +02:00
Sijmen Schoon
1b805d94e7
Change window_options_scrollgetsize width to 500px
2018-08-17 22:14:11 +02:00
Sijmen Schoon
a7d17a6b41
Fix widget_index type and scroll_index -> _id
2018-08-17 22:14:11 +02:00
Sijmen Schoon
1a1ad56336
Refactor volume slider initialization
2018-08-17 22:14:11 +02:00
Sijmen Schoon
9583368b7c
clang-format Options.cpp
2018-08-17 22:14:11 +02:00
Sijmen Schoon
0cdd7c8cc8
Add master sound checkbox and master volume slider
...
Also includes some rewriting of rct_scroll code that I did while
debugging the issue with more than two rct_scrolls in one window. I
decided to leave it in.
2018-08-17 22:14:11 +02:00
Michael Steenbeek
0a1b53e1c2
Auto-detect RCT1 files location ( #7882 )
2018-08-13 15:50:45 +02:00
Linus Unnebäck
fd07be587a
Remove Math::Clamp in favour of std::clamp
2018-08-12 16:47:12 +01:00
Gymnasiast
c615d08d78
Remove many unused strings
2018-08-12 15:56:47 +02:00
clang-format
b02dfdbc93
Binpack function arguments together
...
Previously when the arguments of a function wouldn't fit on a single line, clang-format would put each argument on its own line instead. By enabling the binpack parameter setting, it tried to fit as many on one line as possible instead.
Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com>
2018-07-23 16:00:22 +02:00
clang-format
95ce592579
Enforce not breaking before assignments and function names
...
Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com>
2018-07-23 16:00:19 +02:00
clang-format
e558660860
clang-format UI windows
2018-07-23 16:00:14 +02:00
Michael Steenbeek
1b08fb4e69
Replace our own integer types with standard ones
2018-06-20 17:30:40 +02:00
Michael Steenbeek
ec3a1e575e
Replace Math::Min and Max with std variants
2018-06-20 17:11:35 +02:00
Hielke Morsink
0cf256ac9e
Ready copyright notice for clang-format
...
Clang-format sees the text behind `#pragma region` as code and formats it. Instead of stating the copyright and date there, it's now in the comment block right below it. The text "Copyright" is left in the `#pragma region` line, as clang-format sees it as a single identifier.
I took the opportunity to normalize the dates, and add the copyright notice to the source files where it was missing them (except for third-party and the generated resources.h file).
2018-06-15 14:07:34 +02:00
Ted John
5a368ce6d9
Move theme code to libopenrct2ui
2018-06-10 23:34:27 +01:00
Hielke Morsink
36d123b272
Revert renaming of spinners ( #7650 )
2018-06-10 21:31:08 +02:00
Aaron van Geffen
f2b0f7457e
Terminology change: rename spinners to steppers.
2018-06-01 23:25:07 +02:00
Aaron van Geffen
2181e35b95
Replace spinner widgets with horizontal +/- buttons.
...
Limited to Options and Ride windows so far.
2018-06-01 15:20:13 +02:00
Aaron van Geffen
bf44007197
Allow fine-tuning the virtual floor style ( #7577 )
...
The virtual floor by @JeroenDStout, introduced in the v0.1.2 release, has generally been well-received. However, some players find it too intrusive in its current appearance (cf. #7221 ). This PR gives them the option of a toned-down version, rather than having to turn it off completely.
![screenshot_20180528_221350](https://user-images.githubusercontent.com/604665/40628292-6e71358e-62c4-11e8-9293-e166e75d0da6.png )
The clear/transparent style, introduced by this PR, looks like the virtual floor as originally introduced in #6338 :
![](https://user-images.githubusercontent.com/14242454/31050274-e3f0e62e-a645-11e7-9b10-ec26b733d631.gif )
The glassy/translucent style is the virtual floor as we've come to know it since the v0.1.2 release, and remains the default setting.
2018-05-30 13:09:50 +02:00
Park Joon-Kyu
30fa405eb3
Make Twitch integration API URL configurable. ( #7555 )
2018-05-28 22:01:37 +02:00
Michał Janiszewski
a2ef4bd699
Exclude pre-formatted blocks from clang-format ( #7520 )
...
[ci skip]
2018-05-16 20:41:29 +02:00
Ted John
35df72e61f
Remove use of gCurrentLanguage
2018-05-11 20:39:00 +01:00
Aaron van Geffen
afd1dee580
Leftover cleanup of unnecessarily setting widget types.
2018-05-11 19:39:51 +02:00
Aaron van Geffen
56b9f5ff16
Removed unused string from audio options.
2018-05-11 19:39:47 +02:00
Aaron van Geffen
5ecb2d951e
Draw misc options' dropdown captions directly through widgets.
2018-05-11 19:39:47 +02:00
Aaron van Geffen
fe044477c2
Draw interface options' dropdown captions directly through widgets.
2018-05-11 19:39:47 +02:00
Aaron van Geffen
bf817d2312
Draw culture options' dropdown captions directly through widgets.
2018-05-11 19:39:47 +02:00
Aaron van Geffen
13f3fb3448
Draw audio options' dropdown captions directly through widgets.
2018-05-11 19:39:47 +02:00
Aaron van Geffen
adf3e55d9b
Draw display options' dropdown captions directly through widgets.
2018-05-11 19:39:47 +02:00
thyeggman
ccb1b330a5
Option for early scenario completion ( #7187 )
2018-03-20 12:58:59 +01:00
Michał Janiszewski
cd065d4f41
Reduce includes in common header
2018-03-20 00:27:58 +01:00
Marijn van der Werf
4c956def67
Update UI imports
2018-01-18 22:57:55 +01:00
ZehMatt
84f2917f59
Use const and constexpr whenever possible.
2018-01-11 22:29:08 +01:00
Aaron van Geffen
1d7bec8a11
Make the virtual floor optional, on by default.
2018-01-11 10:37:40 +01:00
Michael Steenbeek
6088a084a2
Replace 0x40 with COLOUR_FLAG_INSET
2018-01-09 10:37:09 +01:00
Aaron van Geffen
ecc1cfed2a
Rename WWT_DROPDOWN_BUTTON to WWT_BUTTON.
...
The previous name implied an exclusive association with dropdowns.
While used to display the dropdown triangle button, this is not an
exclusive use.
2018-01-08 00:01:32 +01:00
Aaron van Geffen
8ad1bc9b86
Rename WWT_14 to WWT_LABEL.
...
This is used for left-aligned label text.
2018-01-07 23:54:51 +01:00
Ted John
83d1b6eb8f
Refactor widget.c to C++
2018-01-07 12:39:58 +01:00
Ted John
f18595a1c1
Refactor viewport.c to C++
2018-01-07 12:39:58 +01:00
Michael Steenbeek
755add6c9a
Compile localisation folder as C++
2018-01-06 18:32:25 +01:00
Aaron van Geffen
1e7fe352fb
Adjust Twitch options to make room for CJK glyphs.
2017-12-22 08:03:03 +01:00
Aaron van Geffen
9e686197aa
Audio tab: widen label for 'focus loss' option.
...
The string used in e.g. the German translation is much longer than its
English counterpart, which led to flickering of the label.
2017-12-22 08:03:03 +01:00
Aaron van Geffen
ec37e14f98
More consistent indentation for nested checkboxes.
...
Also fixes the height of the lightning effect checkbox.
2017-12-22 08:03:03 +01:00
Aaron van Geffen
4e57ad55b3
Refactor widgets for 'controls and interface' tab.
2017-12-22 08:03:03 +01:00
Aaron van Geffen
dfffabc08f
Change option window tab icons.
2017-12-22 08:03:03 +01:00
Aaron van Geffen
8fd4f323fd
Reposition widgets in Miscellaneous tab; add strings.
2017-12-22 08:03:03 +01:00
Aaron van Geffen
b76c8b863a
Move 'scenario grouping' to Misc tab.
2017-12-22 08:03:03 +01:00
Aaron van Geffen
f7b92e4d37
Reposition widgets for 'Advanced' tab.
2017-12-22 08:03:03 +01:00
Aaron van Geffen
511a158fdd
Options: introduce new 'Advanced' tab split off from 'Misc'.
2017-12-22 08:03:03 +01:00
Aaron van Geffen
3d7d7bee71
Right-align buttons in Options window.
2017-12-17 17:29:51 +01:00
Aaron van Geffen
39b2a00fd8
Disable resolution dropdown on "Windowed" and "Fullscreen (desktop)".
2017-12-17 17:29:34 +01:00
Marijn van der Werf
1e946fc0fe
Move Dropdown to UI project
2017-12-16 15:47:38 +02:00
LRFLEW
eed00ea363
Add Vsync Toggle to Options
2017-12-14 11:18:28 +01:00
Michael Steenbeek
1a9975d683
Compile util and cheats as C++
2017-12-14 10:03:21 +01:00
Christian F. Coors
0aa515355a
Add cursor scaling
2017-12-12 22:11:40 +01:00
Michael Steenbeek
e3c52360db
Remove most usages of separate flag
...
This removes most usages of the separate flag, instead relying on ride groups to do its job.
Research is more complicated and will follow in another commit.
2017-12-08 10:28:29 +01:00
Aaron van Geffen
db5b72c360
Fix #6782 : Steam overlay checkbox widget not displayed correctly.
2017-12-04 20:10:29 +01:00
Aaron van Geffen
1ef73997b5
Removed interface to window limit setting.
2017-12-04 11:26:53 +01:00
Aaron van Geffen
c000263bbb
Remove construction marker colour option.
2017-12-04 11:26:53 +01:00
Aaron van Geffen
38d45a102b
Remove interface to option for handymen mowing by default.
2017-12-04 11:26:53 +01:00
Aaron van Geffen
837b177d9d
Simplify UI scaling display quality options ( #6764 )
...
Simplify UI scaling display quality options.
This removes three options:
* 'Use NN scaling at integer scales', as NN is decidedly preferable at integer scales.
* Anisotropic scaling, as it produces results very similar (if not equal) to linear scaling.
* NN as a selectable option in the dropdown - NN is forced on integer scales and unavailable for non-integer scales.
2017-12-03 22:35:16 +01:00
Philip Goto
b66df2d6db
Add smooth nearest neighbor scaling
...
This commit implements smooth nearest neighbor scaling, this scaling method looks sharper than linear scaling and not deformed like NN scaling.
2017-11-06 23:05:21 +01:00
Robert Jordan
b715d83bfd
Add missing size_t cast
2017-11-01 22:42:58 +00:00
Robert Jordan
61accf6e02
Fix another missing instance of size_t
2017-11-01 22:42:58 +00:00
Robert Jordan
0698154ba1
Refactor: Title sequences and switch to size_t
2017-11-01 22:42:58 +00:00
Robert Jordan
a3c64bb146
Feature: Preview title sequences in-game
...
Title sequences can now be played back in-game, allowing for much easier
editing.
Improved title sequence playback in general. Clicking play while on a
different title sequence will play the new one. Clicking stop will make
the title screen go back to the config title sequence. And the closing
the title sequence window will also make the game go back to the config
title sequence, and reload the sequence if it was modified.
Changes made to title sequences in-game are now correctly loaded in the
title screen.
Starting a title sequence within the editor will now always reset it
even if it's the current playing sequence. (Not for playing in the
editor though).
Get Location in title sequence command editor now has 100% accuracy
compared to before
where it would usually get some offset value.
Added `get_map_coordinates_from_pos_window` which will allow getting the
viewport coordinates of a specific window even if the input coordinates
are under another window. This has use with getting 2D positions from
the main window without the other windows getting in the way.
Options window will now always specify the config title sequence in the
dropdown and not the current title sequence.
Made a global variable `gLoadKeepWindowsOpen`, in game.h to keep windows
open when loading a park. When loading a title sequence park in-game.
The sequence player will force-close all park-specific windows ahead of
time.
Skipping while testing title sequences no longer needs to reload the
park if the current playback position is already before the target
position and ahead of the load position.
Added changelog entry.
2017-10-30 12:07:01 +01:00
Michał Janiszewski
c4538496c5
Make sure variables are either static or declared externally
2017-10-09 22:59:40 +02:00
Aaron van Geffen
af3fa4b0ff
Options window: fix background colour for some dropdowns
2017-10-05 14:11:37 +02:00
Marijn van der Werf
ac910a5979
Move Error, Campaign and Ride Demolition windows
2017-09-24 22:41:49 +02:00
Michał Janiszewski
00fd18809c
Move extern "C" {} blocks to headers ( #6282 )
2017-09-18 17:05:28 +02:00
Michał Janiszewski
d698ad1100
Convert NULL -> nullptr in C++
2017-08-15 11:51:56 +02:00
Michał Janiszewski
44c8c84b7c
Convert integers acting as bools to bools ( #6177 )
...
Also fixes MSVC2015 according to AppVeyor
2017-08-15 09:03:10 +01:00
Marijn van der Werf
247fdc2f5d
Fix formatting of C includes
2017-08-10 13:42:27 +02:00
Michał Janiszewski
38f4f8be79
Fix missing includes
2017-08-10 13:42:27 +02:00
Marijn van der Werf
4d90940d21
Move windows to UI project
2017-08-10 13:42:27 +02:00