diff options
author | zuu <zuu@openttd.org> | 2014-02-06 19:41:56 +0000 |
---|---|---|
committer | zuu <zuu@openttd.org> | 2014-02-06 19:41:56 +0000 |
commit | 57a88c9de2c68496c36c5646207541a28a3e31cc (patch) | |
tree | 8054ac7f8cbd5a44cf074d3c3585a747335389af /src/script/api/script_story_page.hpp | |
parent | 14d99c696198c113a7d0516d5524cae1c55ebd82 (diff) | |
download | openttd-57a88c9de2c68496c36c5646207541a28a3e31cc.tar.xz |
(svn r26305) -Add: [nogo] ScriptStoryPageElementList() - a list of all story page elements for a given page
Diffstat (limited to 'src/script/api/script_story_page.hpp')
-rw-r--r-- | src/script/api/script_story_page.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/script/api/script_story_page.hpp b/src/script/api/script_story_page.hpp index 2ce74dcbc..315cb2104 100644 --- a/src/script/api/script_story_page.hpp +++ b/src/script/api/script_story_page.hpp @@ -129,6 +129,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. * @param title Page title (can be either a raw string, a ScriptText object, or null). |