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

19129 Commits

Author SHA1 Message Date
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
Silent
660b03f00b Fix assertion in InitialiseListItems 2022-03-27 22:33:57 +02: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
Tulio Leao
76c5217d5a Merge pull request #12556 from XplosiveLugnut/no-audio-support
Allow game to run with GUI while without audio.
2022-03-25 08:16:52 -03: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
273fe52e74 Fix formatting 2022-03-24 23:34:57 +00:00
Ted John
6863fb1ecb Return undefined instead of null 2022-03-24 23:33:07 +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
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
Gymnasiast
1c851f022c Show SDL error message if no context was created 2022-03-23 23:44:50 -03:00
Evan Haataja
3127a4dc64 Allow game to run with GUI while without audio. 2022-03-23 23:44:50 -03:00
Tulio Leao
fbeff35aec Split SDLException into source and header 2022-03-23 23:44:49 -03: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
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
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