(svn r26305) -Add: [nogo] ScriptStoryPageElementList() - a list of all story page elements for a given page

This commit is contained in:
zuu
2014-02-06 19:41:56 +00:00
parent 14d99c6961
commit 57a88c9de2
15 changed files with 154 additions and 4 deletions

View File

@@ -128,6 +128,17 @@ public:
*/
static uint32 GetPageSort(StoryPageID story_page_id);
/**
* Get story page element sort value. Each page element has a sort value that is internally
* assigned and used to sort the page elements within a page of the story book. OpenTTD
* maintains this number so that the sort order is perceived. This API exist only so that
* you can sort ScriptStoryPageList the same order as in GUI. You should not use this number
* for anything else.
* @param story_page_element_id The story page element to get the sort value of.
* @return Page element sort value.
*/
static uint32 GetPageElementSort(StoryPageElementID story_page_element_id);
/**
* Update title of a story page. The title is shown in the page selector drop down.
* @param story_page_id The story page to update.