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

1071 Commits

Author SHA1 Message Date
Duncan
5d896c65b5 Refactor Guest Window to Class 2022-07-03 22:00:37 +02: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
Ted John
c68359662d Refactor visibility control 2022-03-14 21:57:05 +00:00
Ted John
8aafab2a70 Split paint item into element and entity 2022-03-14 21:55:15 +00:00
Kane
20cd8465f5 Code cleanup, remove ignore_invisible_flag.
Known issues:
- Some flat-rides have transparency issues
2022-03-14 21:43:12 +00:00
Kane
2e93e42a71 More finishing touches
- Changes all references of `VIEWPORT_FLAG_INVISIBLE_PEEPS` to `VIEWPORT_FLAG_INVISIBLE_GUESTS` and `VIEWPORT_FLAG_INVISIBLE_STAFF`
- Updates Invisible People menu item and shortcut.
- Added new viewport flags into the `viewport_set_visibility` function
- Invisible options only work if see-through is activated as well
- Added see-through supports

- Regression: Exclude ride from invisible no longer works (ride is still see-through)
2022-03-14 21:40:27 +00:00
Kane
e134be9538 Implement more options
- Invisible guests
- Invisible staff
- See-through trees
- Invisible trees
- Strings/Ids
2022-03-14 21:38:46 +00:00
Kane
204f8ceac1 Add new Transparency options window.
Remove added options from Top Toolbar.
Move invisible ride code into ride paint functions.
Move invisible vehicle code into sprite paint function.
2022-03-14 21:37:41 +00:00
Kane
4856c3adaf Implement invisible rides, paths & scenery 2022-03-14 21:37:18 +00:00
Kane
9f78c6f0ce Add option to see-through vehicles 2022-03-14 21:36:47 +00:00
Ted John
38d36acef3 Add patrol area tool window 2022-03-12 10:43:41 +00:00
Ted John
90718ca81c Refactor patrol area class to new file 2022-03-11 18:39:04 +00:00
Michael Steenbeek
c334c7a176 Merge pull request #16724 from Gymnasiast/refactor/remove-path_get_filename
Remove four old path functions
2022-03-02 22:25:08 +01:00
Hielke Morsink
ba85cf4873 Close #15896: Refactor out the ZoomLevel operators 2022-02-26 23:14:59 +01:00
Gymnasiast
49b414a40e Replace calls to path_get_filename() 2022-02-26 17:20:07 +01:00
Michael Steenbeek
5edc561715 Close #11437: Migrate old platform methods 2022-02-18 21:57:00 +01:00
ζeh Matt
d7f5003943 Introduce EntityId and refactor everything 2022-02-16 18:56:39 +02:00
Ted John
44294119c9 More code review changes 2022-02-14 23:20:19 +00:00
Ted John
3d2420c86c More code review changes 2022-02-14 23:15:59 +00:00
Ted John
454bfb0a8f Refactor map size to allow for rectangle maps 2022-02-14 23:15:59 +00:00
Ted John
b775832d01 Refactor window flags to be read with the helper methods 2022-02-13 23:09:42 +00:00
Ted John
da89a4e413 Remove rct_window::enabled_widgets (#16643)
`enabled_widgets` was used to enable input for widgets. However I do not recall anywhere this being used to specifically disable a widget which doesn't use the dedicated `disabled_widgets` flag. I don't think there is any purpose in keeping this, so I have removed all uses of it.
2022-02-13 23:06:19 +00:00