diff options
author | alberth <alberth@openttd.org> | 2014-05-24 19:11:20 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2014-05-24 19:11:20 +0000 |
commit | 8755c26793e9ba8f49cef7303e7b7517c69231e9 (patch) | |
tree | 4bf06669668ce8c3e1aff6fb8f422caa193c69c1 /src/script/api/script_window.hpp | |
parent | 8e87ae9120351bb9c9135328b57f5034be028b58 (diff) | |
download | openttd-8755c26793e9ba8f49cef7303e7b7517c69231e9.tar.xz |
(svn r26610) -Feature: Select an editable preset name for saving.
Diffstat (limited to 'src/script/api/script_window.hpp')
-rw-r--r-- | src/script/api/script_window.hpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/script/api/script_window.hpp b/src/script/api/script_window.hpp index 28db09859..21cf28f7a 100644 --- a/src/script/api/script_window.hpp +++ b/src/script/api/script_window.hpp @@ -753,11 +753,17 @@ public: WC_SPRITE_ALIGNER = ::WC_SPRITE_ALIGNER, /** - * Linkgraph legend; Window numbers: + * Linkgraph legend; %Window numbers: * - 0 = #LinkGraphWidgets */ WC_LINKGRAPH_LEGEND = ::WC_LINKGRAPH_LEGEND, + /** + * Save preset; %Window numbers: + * - 0 = #SavePresetWidgets + */ + WC_SAVE_PRESET = ::WC_SAVE_PRESET, + WC_INVALID = ::WC_INVALID, ///< Invalid window. }; @@ -1835,6 +1841,15 @@ public: WID_NS_SHOW_APPLY = ::WID_NS_SHOW_APPLY, ///< Select display of the buttons below the 'details'. }; + /** Widgets of the #SavePresetWindow class. */ + enum SavePresetWidgets { + WID_SVP_PRESET_LIST = ::WID_SVP_PRESET_LIST, ///< List with available preset names. + WID_SVP_SCROLLBAR = ::WID_SVP_SCROLLBAR, ///< Scrollbar for the list available preset names. + WID_SVP_EDITBOX = ::WID_SVP_EDITBOX, ///< Edit box for changing the preset name. + WID_SVP_CANCEL = ::WID_SVP_CANCEL, ///< Button to cancel saving the preset. + WID_SVP_SAVE = ::WID_SVP_SAVE, ///< Button to save the preset. + }; + /** Widgets of the #ScanProgressWindow class. */ enum ScanProgressWidgets { WID_SP_PROGRESS_BAR = ::WID_SP_PROGRESS_BAR, ///< Simple progress bar. |