summaryrefslogtreecommitdiff
path: root/src/script/api/script_window.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/api/script_window.hpp')
-rw-r--r--src/script/api/script_window.hpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/script/api/script_window.hpp b/src/script/api/script_window.hpp
index 1fae2bfae..e9e10e3ed 100644
--- a/src/script/api/script_window.hpp
+++ b/src/script/api/script_window.hpp
@@ -69,6 +69,7 @@
#include "../../widgets/viewport_widget.h"
#include "../../widgets/waypoint_widget.h"
#include "../../widgets/link_graph_legend_widget.h"
+#include "../../widgets/story_widget.h"
/**
* Class that handles window interaction. A Window in OpenTTD has two imporant
@@ -366,6 +367,11 @@ public:
*/
WC_GOALS_LIST = ::WC_GOALS_LIST,
+ /**
+ * Story book; %Window numbers:
+ * - CompanyID = #StoryBookWidgets
+ */
+ WC_STORY_BOOK = ::WC_STORY_BOOK,
/**
* Station list; %Window numbers:
@@ -2241,6 +2247,17 @@ public:
WID_S_RIGHT = ::WID_S_RIGHT, ///< Right part; bank balance.
};
+ /* automatically generated from ../../widgets/story_widget.h */
+ /** Widgets of the #GoalListWindow class. */
+ enum StoryBookWidgets {
+ WID_SB_CAPTION = ::WID_SB_CAPTION, ///< Caption of the window.
+ WID_SB_SEL_PAGE = ::WID_SB_SEL_PAGE, ///< Page selector.
+ WID_SB_PAGE_PANEL = ::WID_SB_PAGE_PANEL, ///< Page body.
+ WID_SB_SCROLLBAR = ::WID_SB_SCROLLBAR, ///< Scrollbar of the goal list.
+ WID_SB_PREV_PAGE = ::WID_SB_PREV_PAGE, ///< Prev button.
+ WID_SB_NEXT_PAGE = ::WID_SB_NEXT_PAGE, ///< Next button.
+ };
+
/* automatically generated from ../../widgets/subsidy_widget.h */
/** Widgets of the #SubsidyListWindow class. */
enum SubsidyListWidgets {