Commit Graph

23188 Commits

Author SHA1 Message Date
Silent 771637f24c
Refactor filename_valid_characters into Platform::IsFilenameValid 2022-03-16 21:56:54 +01:00
Silent 28b0a39a73
Refactor CmdlineSprite.cpp and remove path_end_with_separator 2022-03-16 21:56:54 +01:00
OpenRCT2 git bot b41c2f76cc Merge Localisation/master into OpenRCT2/develop 2022-03-16 04:09:44 +00:00
Charles Machalow bb5d53d9f2
Fix crash where peeps enter through extra ride entrances (#16727)
Fix #16170, #16177
2022-03-15 06:39:13 +00:00
OpenRCT2 git bot 09fc49a9d7 Merge Localisation/master into OpenRCT2/develop 2022-03-15 04:10:46 +00: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 fea101289c Save invisible flags to config 2022-03-14 21:57:05 +00:00
Ted John 52e5d48501 Update shortcuts and toolbar menu 2022-03-14 21:57:05 +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 9794be6a09 Hide trees using colourify function 2022-03-14 21:55:15 +00:00
Ted John 8aafab2a70 Split paint item into element and entity 2022-03-14 21:55:15 +00:00
Ted John 79989a5e84 Fix transparency issues 2022-03-14 21:55:15 +00:00
Ted John ba2fea88fd Fix build failure 2022-03-14 21:55:07 +00:00
Kane b83e21a953 Improve code readability (added parentheses) 2022-03-14 21:43:12 +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 ffb5affee2 Fix code formatting 2022-03-14 21:43:12 +00:00
Kane 5d7f7485aa Update for rebase, add window theme, fix bugs
- Along with rebasing the code it became nessecary to update various
  calls to `scenery_small_entry_has_flag` and `EntityBase`.

- Added a new window theme with default colours.

- Fixed bug with see-through supports not working.

- Removed incomplete "ride exclusions" tab

- Removed unused text string (Ride Exclusions)
2022-03-14 21:43:09 +00:00
Kane 26d558c4d0 Resolve merge conflict. Fix tree hiding. 2022-03-14 21:41:51 +00:00
Kane 3d3271a5ec Misc. clean ups
Define see-through paint colours in Paint.h for global use
Color staff sprite button
Change ride->is_visible bool to ignore_invisible_flag bool
Add shortcut to open transparency options (CTRL+T)
2022-03-14 21:41:49 +00:00
Kane 9bf003c018 Add new sprites 2022-03-14 21:40:30 +00:00
Kane 564dee2671 Remove unused variables 2022-03-14 21:40:30 +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 503a351422 Start to implement ride selection list 2022-03-14 21:39:45 +00:00
Kane 1c306e0a1a Fix supports changing when trees were invisible 2022-03-14 21:38:49 +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
Charles Machalow 99db07cfe0
Fix #16759: No music when unmuting the game in title screen 2022-03-14 21:16:16 +01:00
Ted John 9ef7a4c13b
Merge pull request #16731 from IntelOrca/plugin/patrol-areas
Implement #13620: [Plugin] Add support for patrol areas to Staff
2022-03-13 19:52:05 +00:00
Ted John dff1d730da Implement #13620: [Plugin] Add support for patrol areas to Staff 2022-03-13 19:30:50 +00:00
Ted John 27ed19002a
Merge pull request #16740 from IntelOrca/precise-patrol-areas
Allow patrol areas to be single tiles.
2022-03-13 15:20:33 +00:00
Ted John 5334b8f5c8 Do not re-create window when switching staff 2022-03-13 14:26:17 +00:00
Michael Steenbeek 37c0fffb99
Merge pull request #16777 from duncanspumpkin/paintReorg2
Apply regex on PaintAddImageAsChildRotated
2022-03-13 14:44:55 +01:00
Ted John f8224150d5 Validate patrol area location 2022-03-12 10:43:41 +00:00
duncanspumpkin 2874b1b49d Update replays 2022-03-12 10:43:41 +00:00
Ted John 38d36acef3 Add patrol area tool window 2022-03-12 10:43:41 +00:00
duncanspumpkin 7a36e34782 Apply review comments 2022-03-12 07:26:34 +00:00
duncanspumpkin 68d0d05d49 Remove extra non rotated PaintAddImageAsChild 2022-03-11 21:45:12 +00:00
duncanspumpkin 763aae70f7 Fix regex fail 2022-03-11 21:45:12 +00:00
duncanspumpkin 39c8fda4e6 Apply regex to PaintAddImageAsChildRotated 2022-03-11 21:45:12 +00:00
Michael Steenbeek 1c781a84c8
Merge pull request #16776 from duncanspumpkin/paintReorg
Apply regex on PaintAddImageAsParentRotated2
2022-03-11 21:37:10 +01:00
Gymnasiast dfa58470cf
Apply simplification 2022-03-11 21:10:10 +01:00
Ted John 97dfe3cb73 Refactor std::lower_bound to binary_find 2022-03-11 18:39:05 +00:00
Ted John 0aa6ceb2aa Refactor similar loop in s4 and s6 import 2022-03-11 18:39:04 +00:00
Ted John 90718ca81c Refactor patrol area class to new file 2022-03-11 18:39:04 +00:00
Ted John 566bc4d311 Allow patrol areas to be single tiles
Change the patrol areas to be stored as a sorted list of points grouped in fixed cells for each staff entity. The complexity will be a mixed O(1) and O(log n) search.
2022-03-11 18:39:04 +00:00
duncanspumpkin b7aa5ebd2e Correct failures 2022-03-11 13:55:01 +00:00