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

111 Commits

Author SHA1 Message Date
kyphii
39790779bb Extend color selection dropdown with more colors (#19446)
* Setup for extended palette

* Define order for color picker cells

* Init G2 Palettes in ColoursInitMaps

* Add Glass Palettes

* Use special sprite for Invisible color

* Set up new cheat for special colors

* Add glass palettes to palette_to_g1_offset

* Add entries for new colors in TranslucentWindowPalettes

* Finish implementation of special colors cheat

* Some cleanup

* New colors almost work

* Correct g2 palette loading indices

* Invisible color sprite displays properly

* Repaint works with large scenery and walls

* Prevent random shop items from overflowing to junk palettes

* More cleanup

* Fix glass palettes

* Add mapping of new colors to original colors for UI themes

* Fix junk palettes for random shop items

* Fix missing highlight color in software renderer

* Convert small scenery support flag to allow use of new colors

* Progress on displaying new colors in software renderer

* Fix invisible color scheme sprite

* Formatting cleanup

* Resolve comparison of integer expressions of different signedness

* Index g2 palette maps to fix visible chain lift

* Progress on fixing new colors in software renderer

* Fix station and support colors

* Fix dropdown selected index

* Get invisible color (mostly) working in software renderer

* Use forceBmp for palette resources

* Remove test function definition left in by mistake

* Remove some obsolete range checks for original color values

* Add changelog entry

* Reorder color dropdown based on NE user feedback

* Some cleanup

* Further cleanup

* Formatting

* Add include for GetPaletteMapIndexForColour

* Fix a couple things I broke

* Fix function placement

* Revert "Add include for GetPaletteMapIndexForColour"

This reverts commit 0af9611e6656d792adb7a36efe7dbf3387a4a759.

* Use color constants for color order list

* Make remappable colors contiguous

* turn off clang format for ordered color list

* Appease clang

* Use all colors for random shop item animation

* Improvements to palette map resources

* Fix chain lifts again + adjustments to a few colors

* Update changelog and contributors.md

* Revert changes to S4 and S6 importers which are no longer needed

* Bump network, plugin, and minimum park versions

* Revert "Progress on displaying new colors in software renderer"

This reverts commit 337602e4a7.

* Remove unnecessary comment

---------

Co-authored-by: Trevor Finney <8711258+finneyt@users.noreply.github.com>
2023-04-06 08:36:07 +01:00
X123M3-256
3c4e32458a Add large sloped turns to hybrid and single rail (#19547)
* Implement large sloped turns

* Fix formatting

* Add sprites

* Fix large turns button being active on steep slopes

* Remove bad comment

* Increment network,plugin,park version numbers

* Update changelog

* Increment park file version again
2023-04-05 13:47:56 +01:00
Matthias Moninger
7e48b57d6a Fix #18986: Sending remote scripts larger than 63KiB crashing all clients. (#19573)
* Fix #18986: Sending remote scripts larger than 63KiB crashing clients

* Add GetRemotePlugins in ScriptEngine

* Bump up network version

* Update changelog.txt
2023-03-06 13:50:05 +01:00
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
f8ab17749d Rename CheatSetAction to fit naming pattern 2023-01-06 22:57:15 +01: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
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
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
Michał Janiszewski
e0bff8ef82 Update plugin API version for duktape version change (#18556)
Duktape got upgraded 2.6.0 -> 2.7.0 in #18485
2022-11-12 07:10:35 +01:00
Stephan Spengler
2aa46a7dca Change type of listviews from 'scroll_view' to 'listview'. (#18449) 2022-10-26 18:51:16 +01:00
Stephan Spengler
9e1937d144 [Plugin] Widget tooltips can now be read and changed 2022-10-03 20:50:19 +02:00
73
b9e677945d Replace 20XX with 2022 (#18158)
* Replace 2020 with 2022

Replace all 2020 headers with 2022

* replace other years with 2022

add missing years
2022-10-01 08:42:14 +01: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
Gymnasiast
8c40223af3 Bump network and plugin API versions 2022-09-21 20:45:17 +02:00
Bas
885be63797 Rename subposition rotations to yaw, pitch, roll 2022-09-03 09:34:16 +02:00
Henry Cheng
5f24099f39 Close #17868: Allow scripting to change active tab 2022-08-31 23:13:02 +02:00
Hielke Morsink
2b52df87ce Move scripting command names to command classes
This way, new commands are required to have this field, or a compiler error will occur.
2022-06-28 21:57:27 +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
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
2db373bb62 Increment plugin API version 2022-05-26 18:37:14 +01:00
Ted John
71a6e2bf74 Add angle and banking to track segment 2022-05-17 19:27:39 +01:00
Hielke Morsink
a67e805e60 Log messages with new LogPluginInfo function 2022-05-09 21:17:55 +02:00
Hielke Morsink
c404e31e9a Increment plug-in API version 2022-05-08 20:10:01 +02:00
germanaizek
958bfbc08a Using std::move(), correct clear strings, better use '= default;', modernize make_* and replace heavy strlen 2022-05-07 16:05:39 +02:00
Ted John
372606ab9a Increment plugin API version 2022-03-24 23:18:55 +00:00
Ted John
a9d2c87d65 Bump plugin API version 2022-03-22 21:11:51 +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
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
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
Ted John
b7b8816db7 Add plugin hook for map save 2022-03-07 21:40:48 +01:00
Ted John
1182ff5f19 Add Plugin API for storing data in .park files 2022-02-24 23:55:23 +00:00
ζeh Matt
02b816e38a Bump up scripting API version 2022-02-16 19:42:09 +02:00
Ted John
83c347218b Allow plugins to call change map size game action 2022-02-14 23:15:59 +00:00
ζeh Matt
269673e3aa Profiler update (#16463)
* Add more functions to be profiled

* Add isEnabled method to Profiler scripting interface

* Bump up scripting version

* Apply review suggestions
2022-01-29 15:29:08 +02:00
ζeh Matt
186d3efb59 Merge pull request #16092 from ZehMatt/refactor/timing
Refactor update/time related things
2021-12-17 10:08:42 -08:00
Sadret
8282579b63 Close #16251: Improve null handling in plugin API 2021-12-16 21:41:02 +01:00
ζeh Matt
94e20ba7fe Rename some Update functions to Tick 2021-12-13 19:04:48 +02:00
Ted John
a324bfab63 Add image manager plugin API (#16144) 2021-12-07 20:55:27 +00:00
Sadret
03d2ddf265 Implement #16029: Add rideType to plugin API (#16030) 2021-12-01 13:39:03 +00:00
Ted John
c2d892bdce Increment plugin API version
This should have been done for NSF, allows plugins to easily determine NSF feature availability.
2021-11-24 22:55:19 +00:00
ζeh Matt
83b911b193 #15634: Refactor passing GameActions::Result by copy (#15951)
* Refactor to result GameActions::Result as copy instead of unique_ptr

* Remove alias GameActions::Result::Ptr

* Remove MakeResult wrapper

* Remove type forwarder in TileInspector
2021-11-24 07:35:08 +00:00