|
OpenTTD
|
GUI for stories. More...
#include "stdafx.h"#include "window_gui.h"#include "strings_func.h"#include "date_func.h"#include "gui.h"#include "story_base.h"#include "core/geometry_func.hpp"#include "company_func.h"#include "command_func.h"#include "widgets/dropdown_type.h"#include "widgets/dropdown_func.h"#include "sortlist_type.h"#include "goal_base.h"#include "viewport_func.h"#include "window_func.h"#include "company_base.h"#include "widgets/story_widget.h"#include "table/strings.h"#include "table/sprites.h"#include "safeguards.h"Go to the source code of this file.
Data Structures | |
| struct | StoryBookWindow |
Typedefs | |
|
typedef GUIList< const StoryPage * > | GUIStoryPageList |
|
typedef GUIList< const StoryPageElement * > | GUIStoryPageElementList |
Functions | |
| void | ShowStoryBook (CompanyID company, uint16 page_id) |
| Raise or create the story book window for company, at page page_id. | |
Variables | |
| static const NWidgetPart | _nested_story_book_widgets [] |
| static WindowDesc | _story_book_desc (WDP_CENTER,"view_story", 400, 300, WC_STORY_BOOK, WC_NONE, 0, _nested_story_book_widgets, lengthof(_nested_story_book_widgets)) |
GUI for stories.
Definition in file story_gui.cpp.
| void ShowStoryBook | ( | CompanyID | company, |
| uint16 | page_id | ||
| ) |
Raise or create the story book window for company, at page page_id.
| company | 'Owner' of the story book, may be INVALID_COMPANY. |
| page_id | Page to open, may be INVALID_STORY_PAGE. |
Definition at line 766 of file story_gui.cpp.
References INVALID_COMPANY, INVALID_STORY_PAGE, Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem<&_company_pool >::IsValidID(), and StoryBookWindow::SetSelectedPage().
Referenced by CmdShowStoryPage(), GoalListWindow::HandleClick(), MenuClickStory(), and MainToolbarWindow::OnHotkey().
|
static |
Definition at line 729 of file story_gui.cpp.
1.8.1.2