diff options
author | zuu <zuu@openttd.org> | 2014-02-06 19:50:34 +0000 |
---|---|---|
committer | zuu <zuu@openttd.org> | 2014-02-06 19:50:34 +0000 |
commit | 96030141026ded3f892510ff9e3643319f27ebd8 (patch) | |
tree | e6e7475076685c561a7d1ff9e1161dbdc56d5f8b /src/script/api/script_story_page.hpp | |
parent | 1dbd59e6ab9a917214d98c53a8ab8ca5b0d47223 (diff) | |
download | openttd-96030141026ded3f892510ff9e3643319f27ebd8.tar.xz |
(svn r26307) -Add: [nogo] Allow GS to hide story page date
Diffstat (limited to 'src/script/api/script_story_page.hpp')
-rw-r--r-- | src/script/api/script_story_page.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/script/api/script_story_page.hpp b/src/script/api/script_story_page.hpp index 49d4a639a..c22d4c198 100644 --- a/src/script/api/script_story_page.hpp +++ b/src/script/api/script_story_page.hpp @@ -13,6 +13,7 @@ #define SCRIPT_STORY_HPP #include "script_company.hpp" +#include "script_date.hpp" #include "../../story_type.h" #include "../../story_base.h" @@ -154,17 +155,17 @@ public: * @return The date * @pre IsValidStoryPage(story_page_id). */ - static int32 GetDate(StoryPageID story_page_id); + static ScriptDate::Date GetDate(StoryPageID story_page_id); /** * Update date of a story page. The date is shown in the top left of the page * @param story_page_id The story page to set the date for. - * @param date Page date (@see ScriptDate) + * @param date Date to display at the top of story page or ScriptDate::DATE_INVALID to disable showing date on this page. (also, @see ScriptDate) * @return True if the action succeeded. * @pre No ScriptCompanyMode may be in scope. * @pre IsValidStoryPage(story_page_id). */ - static bool SetDate(StoryPageID story_page_id, int32 date); + static bool SetDate(StoryPageID story_page_id, ScriptDate::Date date); /** * Update title of a story page. The title is shown in the page selector drop down. |