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

23062 Commits

Author SHA1 Message Date
Ted John
a977bbaebe Implement loading .png and refactor 2022-03-24 22:37:22 +00:00
Ted John
e74396b464 Refactor and implement RLE custom 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
OpenRCT2 git bot
b90814369d Merge Localisation/master into OpenRCT2/develop 2022-03-22 04:01: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
b579d15119 Update scripting readme 2022-03-21 21:43:02 +00:00
Ted John
cfc1b622c2 Update changelog 2022-03-21 21:43:00 +00:00
Ted John
3864795a08 Improve safety on event handlers from windows 2022-03-21 21:42:30 +00:00
Ted John
8f34029e89 Re-create windows if loading park on title screen 2022-03-21 21:42:30 +00:00
Ted John
af340cbf34 Add API for toolbox menu items 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
Krutonium
4cdd9bd813 Update the README to look a little more pleasing 2022-03-20 19:40:01 +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
Adam
ea435f9361 chore: update macOS dependencies, remove workaround (#16826) 2022-03-20 09:02:46 -03:00
Michał Janiszewski
37a0a0cb18 Use std::stol over C strtol on ClearScenery.cpp (#15549)
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2022-03-20 09:01:09 -03: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
Michael Steenbeek
c84da5512c Merge pull request #16415 from Gymnasiast/android-fs
Enable std::filesystem for Android
2022-03-19 14:24:00 +01:00
OpenRCT2 git bot
f9c0cb1cd2 Merge Localisation/master into OpenRCT2/develop 2022-03-19 04:01:55 +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
Gymnasiast
1a5bb7483d Enable std::filesystem for Android
NDK r22 introduced support for std::filesystem, so re-enable it: https://android.googlesource.com/platform/ndk/+/master/docs/Roadmap.md#ndk-r22
2022-03-18 23:14:51 +01:00
Michael Steenbeek
9ded60a798 Merge pull request #16768 from Gymnasiast/android-backport-2
Update Android build environment
2022-03-18 22:55:19 +01:00
Gymnasiast
7ee515bd41 Revert to older SDK 2022-03-18 22:01:24 +01:00
Gymnasiast
93cce0bbc4 Re-add armeabi-v7a 2022-03-18 22:01:24 +01:00
Michał Janiszewski
a80025f87d Only assemble release for Android in CI 2022-03-18 22:01:24 +01:00
Michał Janiszewski
dccc610f17 Upload new build artifact for Android 2022-03-18 22:01:24 +01:00
Michał Janiszewski
b89ad36c94 Change Gradle target used in CI 2022-03-18 22:01:24 +01:00