summaryrefslogtreecommitdiff
path: root/src/rail_gui.h
diff options
context:
space:
mode:
authorTyler Trahan <tyler@tylertrahan.com>2021-09-05 14:22:27 -0400
committerGitHub <noreply@github.com>2021-09-05 20:22:27 +0200
commit7469f00c5b8d0dc5cc2034eb9dc91c6e8721ac03 (patch)
tree5a587cb8e7a12af3d15e120001edacfd89807048 /src/rail_gui.h
parentf656b0ae966052327a6341be8dee65cfd2f395b8 (diff)
downloadopenttd-7469f00c5b8d0dc5cc2034eb9dc91c6e8721ac03.tar.xz
Feature: Hide block signals in GUI by default (#8688)
Diffstat (limited to 'src/rail_gui.h')
-rw-r--r--src/rail_gui.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/rail_gui.h b/src/rail_gui.h
index 81fb8f627..582176493 100644
--- a/src/rail_gui.h
+++ b/src/rail_gui.h
@@ -19,4 +19,16 @@ void ResetSignalVariant(int32 = 0);
void InitializeRailGUI();
DropDownList GetRailTypeDropDownList(bool for_replacement = false, bool all_option = false);
+/** Settings for which signals are shown by the signal GUI. */
+enum SignalGUISettings : uint8 {
+ SIGNAL_GUI_PATH = 0, ///< Show path signals only.
+ SIGNAL_GUI_ALL = 1, ///< Show all signals, including block and presignals.
+};
+
+/** Settings for which signals are cycled through by control-clicking on the signal with the signal tool. */
+enum SignalCycleSettings : uint8 {
+ SIGNAL_CYCLE_PATH = 0, ///< Cycle through path signals only.
+ SIGNAL_CYCLE_ALL = 1, ///< Cycle through all signals visible.
+};
+
#endif /* RAIL_GUI_H */