Commit Graph

252 Commits

Author SHA1 Message Date
spacek531 b1bb24aefb
Fill out TrackSegment API (#18478)
* add fields to track segment api

* add getTrackSegments to API

* change element to segment for continuity

* improve documentation

* continue tweaking documentation

* implement segment suggestions

* clarify purpose of isSteepUp flag

* add rest of track element flags

* remove extraneous information from comment

* continue tweaking API

* implement basssiiie suggestion

* rename angle to slope

* reorder items in the documentation

* bump plugin api
2023-01-25 22:05:18 +00:00
Basssiiie b15a6e843a
[Plugin] Wrap callback arguments for custom game actions in event arguments object, fix issue with unloading multiplayer plugins (#19091)
* Wrap custom game action arguments in event args object

* Update Typescript declaration, documentation and changelog

* Pass custom game action by value and remove log messages
2023-01-15 20:52:23 +00:00
Stephan Spengler 9c6032bb36
Fix: GameActionResult does not comply to API specification 2023-01-12 22:14:52 +01:00
Stephan Spengler bfcf66a8f7
Rename ParkSetEntranceFee to fit naming pattern 2023-01-06 22:57:18 +01:00
Stephan Spengler f8ab17749d
Rename CheatSetAction to fit naming pattern 2023-01-06 22:57:15 +01:00
Stephan Spengler 32dd535044
Rename MapChangeSizeAction to fit naming pattern 2023-01-06 22:57:11 +01:00
Stephan Spengler 8495dbf6a5
Fix type mistake introduced by #18428 (#19057) 2023-01-06 12:33:36 -03:00
James103 73738bbdc8
Replace 2022 with 2023 in copyright headers
Replace all instances of the year 2022 with 2023 in all copyright headers
2023-01-01 11:58:01 +01:00
Basssiiie 8127a9ff96
Add IconName type to ButtonDesc image property 2022-12-30 20:20:02 +01:00
Matthew d00c71399b
Add guest thoughts to plugin API (#18732)
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2022-12-29 12:56:11 -03:00
Michael Steenbeek 079d99d7b2
Require new plugins to specify a target API version 2022-12-20 16:34:38 +01:00
Michael Steenbeek db41864e22
Close #18744: Add cheat to allow regular path as queue 2022-12-17 18:07:47 +01:00
Stephan Spengler bd6e572dbc
add all game actions and their documentation to plugin API (#18826) 2022-12-16 21:38:45 +00:00
spacek531 44100234c3
Fix #18665, #18559: Add API for getting g2 icons by name
Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com>
2022-12-12 23:03:16 +00:00
Rik Smeets 9688d93e46
Open campaign tab from finished campaign news
When a marketing campaign is finished, it is likely the player wants to renew it.
This change allows the ‘Campaigns’ tab in the 'Finances' window to be opened from the news item of the finished campaign.
2022-11-18 13:26:52 +01:00
73 48ba81371f
Fix #18600: Some copyright years are not updated
this will address issue report #18600
2022-11-16 11:13:32 +01:00
Stephan Spengler 2eacfdda04
[Plugin] Add widget description interfaces to documentation. (#18428) 2022-11-05 10:00:09 +01:00
ZeeMajora e6df43b7c9
Extras tab: add Tycoon park, keep competitions apart 2022-10-05 20:51:37 +00:00
Michael Steenbeek a3b7ac5a90
Create category for DLC and BYO scenarios 2022-09-25 12:59:35 +02:00
Stephan Spengler 6be41893a4
Fix #18059: Width and height of custom window not changeable via script (#18061) 2022-09-24 07:06:26 +02:00
Bas 885be63797 Rename subposition rotations to yaw, pitch, roll 2022-09-03 09:34:16 +02:00
Bas 8c39881353 Implement plugin getter for subposition coordinates 2022-09-02 23:19:15 +02:00
Bas 7b5aeece59 Implement plugin getters for subposition and subposition length 2022-09-02 23:18:29 +02:00
Sadret 1c7c4c14c2
Add tertiary colour for large scenery to plugin API (#17314)
Add tertiaryColour to ScTileElement.
2022-06-09 20:03:32 +01:00
Sadret 29bcd0dee9
Fix #17335: plugin docs now show correct type for PixelData 'data' attribute 2022-06-05 21:05:51 +02:00
spacek531 673ec0fa10
Frames rotation count part 1 (#17106)
Refactor vehicle sprite groups

rename rotationType to spriteGroup

remove numframes getters from scobject

add sprite groups getters

add documentation to plugin

Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2022-06-03 23:03:02 +01:00
Ted John 31764f62c6 Change track segment API to use null 2022-05-17 19:33:04 +01:00
Ted John 7af322f8eb Fix build due to unused field 2022-05-17 19:27:39 +01:00
Ted John 71a6e2bf74 Add angle and banking to track segment 2022-05-17 19:27:39 +01:00
Ted John bf1e3412a5 Add extra fields to TrackSegment 2022-05-17 19:27:39 +01:00
Ted John 8c593709fa Add more properties to track segment 2022-05-17 19:27:39 +01:00
Ted John b39f7643f0 Fix iterator issues 2022-05-17 19:27:39 +01:00
Ted John 4eef86dc50 Implement track iterator 2022-05-17 19:27:39 +01:00
Ted John 76601ef6fc Add API for getting track segments 2022-05-17 19:27:39 +01:00
Ted John 818dcacb31 Add draw to image API 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
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 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 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
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
Ted John dff1d730da Implement #13620: [Plugin] Add support for patrol areas to Staff 2022-03-13 19:30:50 +00:00
Ted John b7b8816db7
Add plugin hook for map save 2022-03-07 21:40:48 +01:00
Ted John ed8b7cb6ee Change API for interacting with park storage 2022-02-24 23:55:23 +00:00