- Added TutorialMessage ability

-- Tutorial Messages are an ability like any other, except it can only be displayed once. Subsequent calls are ignored, the ability is removed from the game as soon as it is added
-- This allows to add event triggered messages ingame. Messages are either text, or images (I don't have an image sample, but rules/classic.txt has a few examples that might help)
-- only tested on Windows, although I made sure the PSP version compiles. Hopefully I also made the necessary for it to work in the touch version (touching the screen should be enough to close the tuto message)
-- Room for improvement: possibility to choose a title in text mode, possibility to have some messages depending on others (e.g.: don't show message X until message Y has been shown), improve some of the abilities and triggers to give more flexibility, add events outside of game, to allow tuto messages in deck creator, etc...
This commit is contained in:
wagic.the.homebrew
2011-07-03 08:47:51 +00:00
parent 72c795c24b
commit 52b83a135c
25 changed files with 656 additions and 56 deletions

View File

@@ -80,6 +80,7 @@ LOCAL_SRC_FILES := $(SDL_PATH)/src/main/android/SDL_android_main.cpp \
$(MTG_PATH)/src/GuiPhaseBar.cpp \
$(MTG_PATH)/src/GuiPlay.cpp \
$(MTG_PATH)/src/GuiStatic.cpp \
$(MTG_PATH)/src/IconButton.cpp \
$(MTG_PATH)/src/ManaCost.cpp \
$(MTG_PATH)/src/ManaCostHybrid.cpp \
$(MTG_PATH)/src/MenuItem.cpp \