Tulio Leao
4bb17e643b
Make whole ShopItems array use _GBP
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
Rik Smeets
4e8ea47e1b
Guests with umbrellas no longer always avoid Maze when it rains ( #16859 )
...
Co-authored-by: Tulio Leao <tupaschoal@gmail.com >
2022-03-28 23:26:56 -03:00
spacek531
047a7f8090
Do not turn off chain when building downhill if chain cheat is on
2022-03-28 20:34:37 +00:00
Gymnasiast
bd7ac0bace
Revert "Reduce duplication of gx readers ( #16882 )"
...
This reverts commit 2b371db8e3 .
2022-03-28 21:49:26 +02:00
X123M3-256
f5507c42e0
Add RIDE_TYPE_FLAG_UP_INCLINE_REQUIRES_LIFT
2022-03-28 21:32:42 +02:00
tupaschoal
ab86d19510
Apply review requests
2022-03-28 20:40:53 +02:00
lawrence
4c14d38325
Fix #16308 : Use void* on Android and Any on other platforms
2022-03-28 20:38:33 +02:00
lawrence
5f417987bc
Fix #16308 : Crash when trying to place down a ride on Android
2022-03-28 20:38:08 +02:00
Michael Steenbeek
07f66f2322
Merge pull request #16872 from IntelOrca/plugin/image-apis
...
[Plugin] Add support for custom images
2022-03-28 20:27:10 +02:00
Duncan
2b371db8e3
Reduce duplication of gx readers ( #16882 )
...
* Reduce duplication of gx readers
* Readd nographics return
2022-03-28 09:32:33 +01:00
Ted John
d6d61ddd44
Merge pull request #16842 from IntelOrca/fix/large-scenery-colours
...
Fix custom large scenery appearing black.
2022-03-25 22:15:15 +00:00
Duncan
36e1a10431
Revert some of #16477 and fix scenery costs ( #16877 )
...
Split up supports and clearance costs
Add notes
2022-03-25 21:47:19 +00:00
spacek531
896ce5b68c
Remove unused function WritePackedObjects
2022-03-25 08:46:38 +01:00
Ted John
886a2ff218
Fix include line
2022-03-24 23:50:39 +00:00
Ted John
372606ab9a
Increment plugin API version
2022-03-24 23:18:55 +00:00
Ted John
818dcacb31
Add draw to image API
2022-03-24 22:37:22 +00:00
Ted John
e3a1733cdd
Implement plugin ownership of images
2022-03-24 22:37:22 +00:00
Ted John
8f30ed910f
Start working on custom image APIs
2022-03-24 22:37:21 +00:00
Tulio Leao
0e607ed0a3
Fix #13857 : Removal price underflowing ( #16858 )
2022-03-23 21:14:03 +00:00
Duncan
472f7f55c5
Remove hard cap of 0x80 scenery items in a group ( #16853 )
...
Co-authored-by: Tulio Leao <tupaschoal@gmail.com >
2022-03-22 21:38:54 -03:00
Duncan
c5b5b95bcd
Show better errors when loading scenery groups ( #16854 )
2022-03-22 21:01:52 -03:00
Ted John
a2f7ffcb71
Merge pull request #16707 from IntelOrca/plugin/intransient-2
...
Add initial functionality for intransient plugins. Intransient plugins are a new type of plugin that will start when OpenRCT2 launches, and remain loaded until shutdown. This provides plugins with the ability to hook map change and provide functionality on other screens such as the title menu.
**Example:**
```js
registerPlugin({
type: 'intransient',
...
});
```
The [title sequence editor](https://github.com/OpenRCT2/title-sequence-editor ) will be an intransient plugin so that it can be used from the title screen like the built in one.
Three new APIs have been introduced alongside this.
* `context.mode`
* `context.subscribe('map.change', callback)`
* `context.subscribe('map.changed', callback)`
* `ui.registerToolboxMenuItem(text, callback)`
2022-03-22 21:48:26 +00:00
Duncan
ba8690d970
Move *10 on removal/price to the object load function ( #16846 )
...
This simplifies the code and ensures that money32/16 is at the same base for all users of these objects
2022-03-22 21:35:44 +00:00
Ted John
a9d2c87d65
Bump plugin API version
2022-03-22 21:11:51 +00:00
alcz
45369e3497
Fix #16565 : Ducks/birds always spawn at the edge of the old map limit ( #16844 )
...
* Fix #16565 : Ducks/birds always spawn at the edge of the old map limits
Fix #16565 : birds/ducks spawning at fixed 255-sized map boundary.
Instead spawn at actual map boundary (MapSizeMaxXY) where applicable
* Update Network Version
Increments network version
2022-03-22 16:49:54 +00:00
Ted John
9f96b0df33
Separate map.change and map.changed events
...
Also fix network plugin logic.
2022-03-21 23:09:40 +00:00
Ted John
e4a10b8eb4
Fix and improve plugin startup / shutdown
2022-03-21 21:43:02 +00:00
Ted John
3864795a08
Improve safety on event handlers from windows
2022-03-21 21:42:30 +00:00
Ted John
13d261d115
Add API for getting the current game mode
2022-03-21 21:42:30 +00:00
Ted John
84fdd44e6a
Add map changed hook
2022-03-21 21:42:30 +00:00
Ted John
1128f76a97
Improve and fix intransient plugin branch
2022-03-21 21:42:30 +00:00
Ted John
dbf83f018c
Implement lifetime logic of transient plugins
2022-03-21 21:42:30 +00:00
Ted John
6fea0b5025
Start work on intransient plugins
2022-03-21 21:42:30 +00:00
Ted John
91ceecc6fc
Change ternary to tertiary for plugins ( #16833 )
2022-03-21 21:42:10 +00:00
Michael Steenbeek
18be90f8b6
Split TRACK_SLOPE_STEEP into flags for up and down
2022-03-21 21:05:59 +01:00
Ted John
313d46489e
Fix custom large scenery appearing black
2022-03-21 19:03:08 +00:00
Ted John
fc2ed95641
Merge pull request #16831 from IntelOrca/feature/ternary-scenery-colours
...
Implement tertiary colours for small and large scenery objects.
2022-03-20 19:24:47 +00:00
Ted John
793acf67ae
Implement small scenery ternary colours
2022-03-20 18:53:11 +00:00
Michael Steenbeek
e78c29ea5c
Fix most occurrences of ‘ternary’ ( #16832 )
2022-03-20 19:22:05 +01:00
Ted John
e9e377ac09
Implement large scenery ternary colours
2022-03-20 18:12:39 +00: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
Michael Steenbeek
8683122435
Fix #16821 : sprite exportalldat prints illegal backslashes
2022-03-20 17:58:18 +01:00
Noah Kellogg
25f76dc554
Fix #16365 : Broken link referenced in manpages and help output
...
Link to file never existed, changed to a link that's clearly a placeholder so users can avoid broken links. Example park file could also be uploaded to https://openrct2.io/files/SnowyPark.sv6
2022-03-20 17:54:53 +01:00
Charles Machalow
37965560a9
Add ability for plugins to access ride's chain lift speed
...
Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com >
2022-03-20 15:20:28 +00:00
andrewpratt64
5ea89b9b47
Add function to get all entities on a tile to plugin api
...
Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com >
2022-03-20 15:20:08 +01:00
Charles Machalow
e27d5f154b
Add parameters to accept for StaffFireAction ( #16816 )
...
* Add parameters to accept for StaffFireAction
* Bump plugin api version
* Update src/openrct2/actions/StaffFireAction.cpp
Co-authored-by: Ted John <ted@brambles.org >
Co-authored-by: Ted John <ted@brambles.org >
2022-03-20 08:59:57 -03:00
spacek531
a3700c832a
Parkobj loads rct_gx ( #16806 )
...
* allow loading of lgx rct_gx packed images within parkobjs
* add changelog entry
* allow loading of lgx without range
2022-03-19 18:02:02 +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