From d69657846c4cb8667baa296292dd21f15957bed2 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Fri, 21 Jan 2022 23:53:03 +0000 Subject: [PATCH] Add Action 5 remappable type for misc GUI sprites --- docs/newgrf-additions-nml.html | 6 ++++++ docs/newgrf-additions.html | 3 +++ src/newgrf_extension.cpp | 2 ++ 3 files changed, 11 insertions(+) diff --git a/docs/newgrf-additions-nml.html b/docs/newgrf-additions-nml.html index 49e6939ea6..cf04671f1a 100644 --- a/docs/newgrf-additions-nml.html +++ b/docs/newgrf-additions-nml.html @@ -186,6 +186,12 @@ + MISC_GUI1 + + Miscellaneous GUI graphics +

There is currently one misc GUI sprite.

+ +

Signal graphics using switches

diff --git a/docs/newgrf-additions.html b/docs/newgrf-additions.html index 1c3ca13509..9e526e282c 100644 --- a/docs/newgrf-additions.html +++ b/docs/newgrf-additions.html @@ -478,5 +478,8 @@

This is indicated by the feature name: action5_no_entry_signals, version 1

+

Miscellaneous GUI graphics (mappable type: misc_gui)

+

There is currently one misc GUI sprite.

+

This is indicated by the feature name: action5_misc_gui, version 1

diff --git a/src/newgrf_extension.cpp b/src/newgrf_extension.cpp index 9fe94b966f..81175256ad 100644 --- a/src/newgrf_extension.cpp +++ b/src/newgrf_extension.cpp @@ -28,6 +28,7 @@ extern const GRFFeatureInfo _grf_feature_list[] = { GRFFeatureInfo("action0_bridge_availability_flags", 1), GRFFeatureInfo("action5_programmable_signals", 1), GRFFeatureInfo("action5_no_entry_signals", 1), + GRFFeatureInfo("action5_misc_gui", 1), GRFFeatureInfo("action0_railtype_programmable_signals", 1), GRFFeatureInfo("action0_railtype_no_entry_signals", 1), GRFFeatureInfo("action0_railtype_restricted_signals", 1), @@ -79,5 +80,6 @@ extern const GRFPropertyMapDefinition _grf_action0_remappable_properties[] = { extern const Action5TypeRemapDefinition _grf_action5_remappable_types[] = { Action5TypeRemapDefinition("programmable_signals", A5BLOCK_ALLOW_OFFSET, SPR_PROGSIGNAL_BASE, 1, 32, "Programmable pre-signal graphics"), Action5TypeRemapDefinition("no_entry_signals", A5BLOCK_ALLOW_OFFSET, SPR_EXTRASIGNAL_BASE, 1, 16, "No-entry signal graphics"), + Action5TypeRemapDefinition("misc_gui", A5BLOCK_ALLOW_OFFSET, SPR_MISC_GUI_BASE, 1, 1, "Miscellaneous GUI graphics"), Action5TypeRemapDefinition(), };