|
OpenTTD Source 20260206-master-g4d4e37dbf1
|
Struct about stories, current and completed. More...
#include <story_base.h>
Public Member Functions | |
| StoryPage (StoryPageID index) | |
| StoryPage (StoryPageID index, uint32_t sort_value, TimerGameCalendar::Date date, CompanyID company, const EncodedString &title) | |
Data Fields | |
| uint32_t | sort_value = 0 |
| A number that increases for every created story page. Used for sorting. The id of a story page is the pool index. | |
| TimerGameCalendar::Date | date {} |
| Date when the page was created. | |
| CompanyID | company = CompanyID::Invalid() |
| StoryPage is for a specific company; CompanyID::Invalid() if it is global. | |
| EncodedString | title |
| Title of story page. | |
Struct about stories, current and completed.
Definition at line 164 of file story_base.h.
|
inline |
Definition at line 171 of file story_base.h.
|
inline |
Definition at line 172 of file story_base.h.
| CompanyID StoryPage::company = CompanyID::Invalid() |
StoryPage is for a specific company; CompanyID::Invalid() if it is global.
Definition at line 167 of file story_base.h.
Referenced by CmdShowStoryPage(), and CmdStoryPageButton().
| TimerGameCalendar::Date StoryPage::date {} |
Date when the page was created.
Definition at line 166 of file story_base.h.
Referenced by CmdSetStoryPageDate(), and StoryBookWindow::DrawWidget().
| uint32_t StoryPage::sort_value = 0 |
A number that increases for every created story page. Used for sorting. The id of a story page is the pool index.
Definition at line 165 of file story_base.h.
Referenced by STPAChunkHandler::Load(), and StoryBookWindow::PageOrderSorter().
| EncodedString StoryPage::title |
Title of story page.
Definition at line 169 of file story_base.h.
Referenced by CmdSetStoryPageTitle(), StoryBookWindow::DrawWidget(), StoryBookWindow::GetHeadHeight(), StoryBookWindow::GetWidgetString(), StoryBookWindow::RefreshSelectedPage(), and StoryBookWindow::UpdateWidgetSize().