1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-29 09:44:52 +01:00
Commit Graph

400 Commits

Author SHA1 Message Date
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
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
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
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
duncanspumpkin
68d0d05d49 Remove extra non rotated PaintAddImageAsChild 2022-03-11 21:45:12 +00:00
Ted John
90718ca81c Refactor patrol area class to new file 2022-03-11 18:39:04 +00:00
ζeh Matt
d9bdc1441f Rename IsPassedSurface to PassedSurface and cleanup values 2022-02-25 01:21:36 +02:00
ζeh Matt
b5d6abdd22 Refactor out DidPassSurface and rename Unk141E9DB to Flags 2022-02-25 00:34:24 +02:00
ζeh Matt
6af14a1e69 Remove SPRITE_INDEX_NULL 2022-02-17 18:44:50 +02:00
ζeh Matt
d7f5003943 Introduce EntityId and refactor everything 2022-02-16 18:56:39 +02:00
Michael Steenbeek
29506a3748 Fix #16623: Large Scenery supports don’t render correctly 2022-02-12 12:26:39 +01:00
ζeh Matt
269673e3aa Profiler update (#16463)
* Add more functions to be profiled

* Add isEnabled method to Profiler scripting interface

* Bump up scripting version

* Apply review suggestions
2022-01-29 15:29:08 +02:00
Gymnasiast
202999a8b4 Pass CoordsXY into PaintTileElementBase 2022-01-23 14:53:03 +01:00
Gymnasiast
573a28f835 Rename sub_68B3FB to PaintTileElementBase 2022-01-23 14:50:16 +01:00
GalBr
85a1e96f94 Change glyphOffset type to uint32_t (#16481)
This variable used to be uint32_t before a refactor, but was changed to
auto, which means it's uint8_t. The offset calculation in this function
can cause an overflow with uint8_t, which causes the wrong character to
be printed on the sign.
2022-01-22 17:36:28 +01:00
frutiemax
adb692b74e Forward declare Formatter 2021-12-30 12:17:51 -05:00
Michael Steenbeek
25cb49f8ce Pass paint_session as reference 2021-12-19 14:48:00 +00:00
Gymnasiast
449da0d6bd Convert ride_get_station_object() to method 2021-12-18 18:48:52 +01:00
Ted John
e165de7482 Refactor paint structs to use ImageId and extend size of image list (#16258)
* Move to image ID for paint struct

* Move image list to be past the end of legacy limit

* Extend image list size

* Introduce constants for image list size

* Use std::array to store internal paint struct
2021-12-18 07:40:10 +00:00
Ted John
5cc776c622 Fix #16206: Wooden supports for scenery are not drawn 2021-12-14 14:25:41 +01:00
Ted John
04dac023cb Fix crash during underground mode
Also includes crash during track design preview.
2021-12-13 22:16:24 +00:00
Ted John
6d7e2446db Fix #16204: Invisible entrance/exits render as tiny land sprites 2021-12-13 22:11:55 +00:00
Michał Janiszewski
7b0e6ad0b6 Reformat with clang-format-12 from updated CI image 2021-12-12 17:48:52 +01:00
Michael Steenbeek
b4f256be87 Merge pull request #16151 from IntelOrca/refactor/imageid-painting
Refactor most map paint routines to use ImageId
2021-12-12 11:43:31 +01:00
Michael Steenbeek
27cbb6c6ae Merge pull request #16190 from Gymnasiast/refactor/normalised-tile-element-type-3
Part of #15485: normalise all OpenRCT2 tile element types
2021-12-12 09:53:09 +01:00
Ted John
7ad1e257d3 Update formatting of files 2021-12-11 23:07:56 +00:00
Ted John
4288589f11 Refactor large scenery to use ImageId 2021-12-11 23:07:56 +00:00
Ted John
d62736634f Refactor paint banner to use ImageId 2021-12-11 23:07:56 +00:00
Ted John
3fa2af3f6b Refactor paint small scenery to use ImageId 2021-12-11 23:07:56 +00:00
Ted John
f8431d2b2e Refactor Entrance painting to use ImageId 2021-12-11 23:07:55 +00:00
Ted John
b270688635 Refactor paint footpath to use ImageId 2021-12-11 23:07:55 +00:00
Ted John
5f1c85fbfd Refactor paint large scenery to use ImageId 2021-12-11 23:07:55 +00:00
Ted John
4aabe02eb0 Refactor surface paint to use ImageId 2021-12-11 23:07:55 +00:00
Ted John
c55fa94af5 Refactor paint wall to use ImageId 2021-12-11 23:06:21 +00:00
Gymnasiast
aa34f0f760 Drop the N postfix 2021-12-11 00:39:39 +01:00
Gymnasiast
fc3ce3294c Move over switches to normalised tile element types 2021-12-11 00:30:59 +01:00
Michael Steenbeek
4caeb797f8 Merge pull request #16127 from Gymnasiast/feature/rct1-image-fallback
Create fallback system for csg1 images
2021-12-10 23:25:04 +01:00
Michael Steenbeek
2d1af0ec42 Replace many GetType() calls with GetTypeN() 2021-12-10 22:43:17 +01:00
Gymnasiast
fcd704ed47 Create fallback system for csg1 images 2021-12-08 16:18:33 +01:00
Hielke Morsink
53d9bfa8b4 Update implicit zoom conversions 2021-12-01 00:08:35 +01:00
ζeh Matt
c4ad5fcd15 Adjust includes 2021-11-26 21:01:44 +02:00
ζeh Matt
9f23449ffb Move Staff/Guest/Peep to entity 2021-11-26 18:26:19 +02:00
Duncan
275d565e52 Start splitting up ride.h (#16011)
* Start splitting up ride.h

* Use cstdint instead of common.h
2021-11-26 15:03:14 +00:00
ζeh Matt
03fb9b390f Rename Sprite to EntityRegistry 2021-11-24 17:04:12 +02:00
ζeh Matt
7c726e2a0c Fix includes 2021-11-24 16:48:33 +02:00
Gymnasiast
921ae21ad5 Remove obsolete TODOs 2021-11-21 22:43:22 +01:00
IntelOrca
34128dc262 Add new .park save format
Co-authored-by: Gymnasiast <Gymnasiast@users.noreply.github.com>
Co-authored-by: duncanspumpkin <duncanspumpkin@users.noreply.github.com>
Co-authored-by: ZehMatt <Zehmatt@users.noreply.github.com>
Co-authored-by: Broxzier <Broxzier@users.noreply.github.com>
2021-11-21 22:43:22 +01:00