diff options
author | truebrain <truebrain@openttd.org> | 2012-01-03 20:38:41 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2012-01-03 20:38:41 +0000 |
commit | ecb725b34b1b2772c67270a07d7b416c0752e7ce (patch) | |
tree | c00126c4ff53ee84339c54ff66ccaa8ef4c1c961 /src/script/api/script_window.hpp | |
parent | a32154eaa00e7beb5e6b52cfc1c21ba1d72607a1 (diff) | |
download | openttd-ecb725b34b1b2772c67270a07d7b416c0752e7ce.tar.xz |
(svn r23738) -Fix (r23731): forgot to sync the new window with the script API
Diffstat (limited to 'src/script/api/script_window.hpp')
-rw-r--r-- | src/script/api/script_window.hpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/script/api/script_window.hpp b/src/script/api/script_window.hpp index e2e1ae319..342a243d1 100644 --- a/src/script/api/script_window.hpp +++ b/src/script/api/script_window.hpp @@ -194,6 +194,14 @@ public: */ WC_CONFIRM_POPUP_QUERY = ::WC_CONFIRM_POPUP_QUERY, + /** + * Popup with a set of buttons, designed to ask the user a question + * from a GameScript. %Window numbers: + * - uniqueid = #GoalQuestionWidgets + */ + WC_GOAL_QUESTION, + + /** * Saveload window; Window numbers: @@ -1268,6 +1276,15 @@ public: WID_GL_SCROLLBAR = ::WID_GL_SCROLLBAR, ///< Scrollbar of the panel. }; + /** Widgets of the #GoalQuestionWindow class. */ + enum GoalQuestionWidgets { + WID_GQ_QUESTION = ::WID_GQ_QUESTION, ///< Question text. + WID_GQ_BUTTONS = ::WID_GQ_BUTTONS, ///< Buttons selection (between 1, 2 or 3). + WID_GQ_BUTTON_1 = ::WID_GQ_BUTTON_1, ///< First button. + WID_GQ_BUTTON_2 = ::WID_GQ_BUTTON_2, ///< Second button. + WID_GQ_BUTTON_3 = ::WID_GQ_BUTTON_3, ///< Third button. + }; + /** Widgets of the #GraphLegendWindow class. */ enum GraphLegendWidgets { WID_GL_BACKGROUND = ::WID_GL_BACKGROUND, ///< Background of the window. |