1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 15:52:55 +01:00
Commit Graph

151 Commits

Author SHA1 Message Date
Ted John
2fdf91874c Implement centred labels 2021-01-29 17:50:32 +00:00
Ted John
c2eb6d4153 Improve plugin API and type definitions 2021-01-28 20:52:17 +00:00
Ted John
2fcaed8165 Allow more fields to be optional 2021-01-27 00:28:59 +00:00
Ted John
c0d8786af8 Add text box widget 2021-01-27 00:28:59 +00:00
Ted John
be350f7e2e Add widget visible flag 2021-01-26 00:25:59 +00:00
Mathias Gibbens
b1e5a11bf3 Several more spelling fixes (#13752)
Signed-off-by: Mathias Gibbens <mathias@calenhad.com>

Co-authored-by: Mathias Gibbens <mathias@calenhad.com>
2021-01-10 18:23:35 +00:00
Sadret
d22c2edee5 Implement #13384: Expose all TileElement data to plugin API 2021-01-03 18:42:21 +01:00
Ted John
6fb7921dbd [Plugin] Add context.setInterval and context.setTimeout 2021-01-03 16:08:35 +01:00
Matt
cb719a6e10 Add missing case statements for entity scripting 2021-01-02 15:31:26 +02:00
Bas
7848a39e6c Rename car 'move' method to 'travelBy' 2020-12-29 15:41:27 +01:00
Bas
833c8a2e1f Fix whitespace in openrct2.d.ts 2020-12-29 15:41:26 +01:00
Bas
e44c17957b Replace track position setter with new move method 2020-12-29 15:41:26 +01:00
Bas
614a27cfb1 Add track progress to openrct2.d.ts 2020-12-29 15:41:25 +01:00
Ted John
95c3a7f5dd Fix #13512: [Plugin] Add item separators to list view 2020-12-05 18:32:24 +00:00
Ted John
be8736ffaa Fix: #13509 [Plugin] Add ability to format strings 2020-12-05 18:26:35 +00:00
Ted John
030713e126 Fix #13078: [Plugin] Add colour picker widget 2020-12-05 18:26:35 +00:00
Ted John
acaa72cce8 Add more park attributes to plugin API 2020-12-05 18:26:34 +00:00
Ted John
b1403db509 Fix #13495: Add properties for park value, guests and company value 2020-12-05 18:26:34 +00:00
maksimdrachov
1815a094bb Fix #13426: Typo in "repay loan" 2020-11-19 19:45:40 +01:00
Sadret
4ff412dfe1 Close #13359: Make GameAction flags optional in plugin API. (#13381) 2020-11-06 09:40:15 +00:00
Sadret
2f4b1b9e3f Close #13376: Open custom window at specified tab 2020-11-05 17:43:23 +01:00
Sadret
c2d309af38 Close #13346: Change FootpathScenery to FootpathAddition (#13350) 2020-11-03 08:17:29 +00:00
Sadret
68543def83 Fix #13342: Rename tabChange to onTabChange in WindowDesc interface 2020-11-01 23:08:51 +01:00
Ted John
e79d4be5a5 Add quadrant and occupiedQuadrants to plugin API 2020-09-13 17:02:12 +01:00
Ted John
146a754001 Add plugin API for scenario and objective 2020-09-13 17:02:12 +01:00
Ted John
e5107141e9 Add plugin API for park flags 2020-09-13 15:00:09 +01:00
Tom Parsons
9a30100a81 Make all GameAction types accessible to plugins (#12708)
* add ActionType

* Make all game actions available to plugins

Includes list of game actions in the .d.ts

* Add an overload for internal game actions

This allows things like Visual Studio Code to autocomplete

* action can be a string (custom gameactions)

* Increment OPENRCT2_PLUGIN_API_VERSION

* Add #12708 to changelog and tombomp to contributors.
2020-09-10 12:30:56 +01:00
Ted John
0bddf5a5db Rename SocketServer to Listener 2020-09-03 22:38:42 +01:00
Ted John
7dfb748500 Add listening property 2020-09-03 22:38:42 +01:00
Ted John
dce547af99 Start implementing TCP API 2020-09-03 22:38:35 +01:00
Nils Caspar
bc33ef3d43 Add Park.entranceFee to the plugin API (#12840) 2020-09-03 17:07:19 -03:00
Cory Sanin
8d366ebaea Add Ride.totalProfit to the plugin API (#12795)
Add Ride.totalProfit to the plugin API
2020-08-28 22:52:54 +01:00
Sadret
2fb083f72c Fix #12776: Mistake in API documentation
Elapsed months after one year was mistakenly said to be 16.
Now it states the correct value at the beginning of the game and the increase every month and year.
2020-08-26 11:55:10 +02:00
Taylor Stieff
f7f5124c07 Make tile element direction accessible for scripts (#12057)
* Make tile element direction accessible for scripts

Add the direction field from the tile element
class to the ScTileElement class passed to
the script engine.

Co-authored-by: Taylor Stieff <taylor.stieff@heavenhr.de>
2020-08-01 00:46:59 -03:00
Tulio Leao
6a8d9007e2 Close #11614: Require plugins to specify their license 2020-06-19 16:14:33 +02:00
Olivier Wervers
66c3d8d828 Expose park name to plugins (#11970) 2020-06-17 17:33:38 +02:00
Duncan
50d22ededd Create a hookable location checking function for actions (#11860)
* Create a hookable location checking function for actions

* Add location valid to a number of game actions

Actually pass the coordinates to the script

Use LocationValid on further game actions

Add further actions to the LocationValid. Update api

Update remaining actions to use LocationValid

* Fix bug with peep pickup

Adjust api
2020-06-16 20:57:11 +01:00
Ted John
a3aed8dce1 Update vehicle powered fields 2020-06-11 17:54:41 +01:00
Ted John
c5b2b2017a Add vehicle API for plugins 2020-06-11 17:54:36 +01:00
Ted John
0ca42f453c Add plugin API for setting button isPressed (#11851) 2020-06-01 23:05:24 -03:00
Ted John
da8f21fb70 Add ride age and improve documentation 2020-05-23 15:28:03 +01:00
Ted John
f4fb456c50 Add ride value to ScRide 2020-05-23 15:28:03 +01:00
Ted John
a0f76ddc1b Add running cost and inspection 2020-05-23 15:28:03 +01:00
Ted John
bfa96d6205 Fix price in ScRide 2020-05-23 15:28:03 +01:00
Ted John
f6fbd272ec Add built_date to ScRide and add GetAge() 2020-05-23 15:28:03 +01:00
Ted John
819208f3cb Add more ride fields to plugin API 2020-05-23 15:28:03 +01:00
Michael Steenbeek
7e7b15812d Merge pull request #11747 from IntelOrca/plugin/small-additions
[Plugin] Add language and split peep into guest and staff
2020-05-20 10:24:24 +02:00
Ted John
03b1974912 Add plugin API for editing park messages (#11755) 2020-05-18 22:59:35 -03:00
Ted John
f5f8f5bd8e Use named flags for Peep instead of number 2020-05-15 00:24:24 +01:00
Ted John
b710e417df Split peep into guest and staff and add more fields 2020-05-14 18:35:21 +01:00