1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +01:00
Commit Graph

1091 Commits

Author SHA1 Message Date
Gymnasiast
a088537b65 Rename rct_widgetindex to WidgetIndex 2022-08-21 18:49:23 +02:00
Hielke Morsink
7f29e4e39c Make rct_windowclass strong type WindowClass
This already revealed some places where implicit conversions were done, including some where its use was nonsense (MouseInput.cpp).
The changes to the Intent class were necessary to keep things working, and this splits things up more neatly.
2022-08-21 18:38:25 +02:00
Michael Steenbeek
d9e23e9dfa Use ride_type_t instead of uint8_t in more places (#17803)
Part of preparation for making ride types into objects.
2022-08-13 21:49:19 +02:00
Hielke Morsink
faea1ca494 Make rct_window non-copyable and non-assignable 2022-08-03 21:35:25 +02:00
Hielke Morsink
eec99b6fae Catch window refs by reference instead of copy 2022-08-02 21:55:23 +02:00
Gymnasiast
d3fd31c611 Rename rct_string_id to StringId 2022-07-31 22:30:13 +02:00
Hielke Morsink
5c6db6126d Take const reference in some window functions 2022-07-31 20:34:33 +02:00
Hielke Morsink
274ab7190d Remove unused function definitions 2022-07-31 20:34:32 +02:00
Hielke Morsink
d05d675ed9 Refactor window functions to take references 6 2022-07-31 17:23:17 +02:00
Hielke Morsink
a258008bef Refactor window functions to take references 4 2022-07-31 17:23:16 +02:00
Hielke Morsink
523bb8136e Refactor window functions to take references 3 2022-07-31 17:23:16 +02:00
Hielke Morsink
c8605a8763 Refactor window functions to take references 2 2022-07-31 17:23:15 +02:00
Hielke Morsink
76c1bc8980 Refactor window functions to take references 1 2022-07-31 17:23:15 +02:00
Michael Steenbeek
1a8660d59d Pass window reference to tool_set (#17625) 2022-07-27 22:22:22 -03:00
Raymond Zhao
4f23e5e9ec Refactor struct TrackDesignFileRef
- Refactors track_design_file_ref to TrackDesignFileRef and replaces the utf8* fields of that struct with u8string
- Gets rid of some String::Duplicate() and delete calls
- Uses a bunch of c_str() calls to interface with older functions
2022-07-26 16:12:46 +00:00
Nikolas Parshook
628da77c0e Refactor ride construction window (#17578) 2022-07-26 15:17:25 +01:00
jazzysoggy
c0853b56ad Fix Format_VA. Rename Format to StdFormat.
author jazzysoggy <39224097+jazzysoggy@users.noreply.github.com> 1655955994 -0400
committer jazzysoggy <39224097+jazzysoggy@users.noreply.github.com> 1656516326 -0400

Fixed Format_VA and renamed Format to StdFormat. Both now output to Std::String, while taking the same input as before. Changed functions that use these two to account for this output difference
2022-07-24 19:30:57 +02:00
Michael Steenbeek
11614d7170 Merge pull request #17486 from duncanspumpkin/inventionWnd
Invention List Window Class Refactor
2022-07-12 19:49:03 +02:00
Huu Kim Nguyen
c949edd591 Crop giant screenshot to horizontal view-clip area 2022-07-06 23:11:43 +02:00
Duncan
5d896c65b5 Refactor Guest Window to Class 2022-07-03 22:00:37 +02:00
duncanspumpkin
8492453702 Refactor to conform to style. Move uncommon items out of rct_window 2022-07-02 07:53:46 +01:00
Hielke Morsink
8e509d9669 Remove ObjectType++ operator, ensure ObjectTypes size 2022-06-30 23:13:40 +02:00
Duncan
43562a6899 Window Class Refactor: Invention List Drag (#17415)
* Start working on drag

* Finish moving invention drag into window class

* Refactor drag item into a window variable

* Remove rct2 comment
2022-06-30 10:25:18 +01:00
Duncan
d6e188d289 Park Window to class (#17364)
* Start base of class

* Start moving things into class

* Finish porting over

* Refactor to conform more with style

* Add no discard to imageid

* Fix objective window position

* Fix audio on viewport

* Make further fixes

* Move nodiscard again
2022-06-30 05:37:43 +01:00
Hielke Morsink
6bfba88845 Move title commands to their own source files 2022-06-28 21:57:26 +02:00
Ted John
585ebed600 Fix #17297: Crash when switching language (#17370)
* Refactor all uses of IAudioChannel and the audio mixer.
* Use shared_ptr to avoid dead pointers hanging about.
* Reload particular audio channels where necessary after object reload.
2022-06-27 17:41:53 +01:00
jazzysoggy
f77611dcd2 Fix #17229: Rename G1_FLAG_BMP to G1_FLAG_HAS_TRANSPARENCY (#17441)
* Renamed All Instance of G1_FLAG_BMP

Renamed all instances of G1_FLAG_BMP to GA_FLAG_HAS_TRANSPARENCY

* Fixed comments and labels

Fixed comments and labels to be more in line with new definitions
2022-06-25 07:04:40 +01:00
Hielke Morsink
5b2d1c2527 Use viewport flag constants in window_scroll_to_location (#17427) 2022-06-21 21:49:56 -03:00
duncanspumpkin
249eaa989e Refactor sign internal variables 2022-06-07 22:35:06 +01:00
duncanspumpkin
8fb91c93aa Remove unused news_variables 2022-06-07 22:35:06 +01:00
duncanspumpkin
3dba3984bf Remove map_variables 2022-06-07 22:35:06 +01:00
Ted John
dcab9d4c9c Merge pull request #17217 from IntelOrca/flac-support
Add optional support for streaming FLAC and OGG/vorbis audio.

Galaxy style from OpenMusic is over 40 MiB in wav. FLAC gets it down to about 27 MiB and OGG/vorbis can get it down to just 1.36 MiB. I think vorbis should be our primary format for distributing OpenRCT2 assets due to its low size, but FLAC is available for those who want higher quality assets.
2022-06-07 21:16:39 +01:00
Duncan
a73df7e376 Remove Editor Main (#17348)
* Remove editor main window

* Remove editor main completely

* Update src/openrct2/Editor.cpp

Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com>

Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com>
2022-06-07 08:26:58 +01:00
Ted John
95661f4df2 Refactor audio sources 2022-06-06 23:41:14 +01:00
Hielke Morsink
8d14016c3f Allow maps to be resized to non-rectangular shapes 2022-06-04 11:26:34 +02:00
guljam
03882905c8 fix #17247 Closing scenery window resets transparency settings 2022-05-22 22:58:51 +02:00
germanaizek
958bfbc08a Using std::move(), correct clear strings, better use '= default;', modernize make_* and replace heavy strlen 2022-05-07 16:05:39 +02:00
Ted John
e3ee511a0c Update options UI 2022-04-26 22:18:19 +02:00
Ted John
9f28b66eec Remove title editor 2022-04-26 22:17:38 +02:00
Hielke Morsink
90ab449f78 Fix #16050: Scenery window positioning
This supersedes #16095

The position and size arguments of WindowCreate are now optional - not a window doesn't have to know the size beforehand.
This removes the WF_NO_SCROLLING flag from the call to WindowCreate, but that seems to have no use for the scenery window anyway.

Co-authored-by: Ian-Polito <ipolito@mailfence.com>
2022-04-09 00:49:44 +02:00
Tulio Leao
e63432a416 Add ToGBP function to convert non literals to money32 2022-03-31 17:54:52 -03:00
Tulio Leao
90dbe60a1f Fix Money values magnitude after _GBP change 2022-03-29 07:23:35 -03:00
Geoff Banh
85baa6f7ca Fix #14093: Replace MONEY macro with user defined literal 2022-03-29 07:23:35 -03:00
Ted John
f909be7a43 Merge pull request #16797 from IntelOrca/feature/enhanced-transparency
Introduce more transparency toggles and allow each one to be set to either an invisible or ghost state which is a persisted user setting.

A new window is introduced to control these settings and is inspired by OpenTTD.
2022-03-20 17:56:08 +00:00
Ted John
884ef6b8ac Change transparent trees to all vegetation 2022-03-19 00:07:06 +00:00
Gymnasiast
ffe8b4b45d Undo fspath() workaround for Android 2022-03-18 23:21:23 +01:00
Margen67
09b9bd90d4 Fix #2987, #7417: Use game actions for most set commands (#15032)
Fix #2987
Fix #7417
2022-03-18 07:06:27 -03:00
Ted John
46873dfc7f Fix build failures 2022-03-14 23:43:50 +00:00
Ted John
3b9edbd09b Keep old flag values to avoid breaking plugins 2022-03-14 22:03:37 +00:00
Ted John
61f1e13c0b Refactor viewport flags 2022-03-14 21:57:05 +00:00