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.cpp | |
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.cpp')
-rw-r--r-- | src/script/api/script_story_page.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/script/api/script_story_page.cpp b/src/script/api/script_story_page.cpp index 8382d43d7..c443d67d4 100644 --- a/src/script/api/script_story_page.cpp +++ b/src/script/api/script_story_page.cpp @@ -105,6 +105,13 @@ return StoryPage::Get(story_page_id)->sort_value; } +/* static */ uint32 ScriptStoryPage::GetPageElementSort(StoryPageElementID story_page_element_id) +{ + EnforcePrecondition(false, IsValidStoryPageElement(story_page_element_id)); + + return StoryPageElement::Get(story_page_element_id)->sort_value; +} + /* static */ bool ScriptStoryPage::SetTitle(StoryPageID story_page_id, Text *title) { CCountedPtr<Text> counter(title); |