|
|
|
@ -51,6 +51,7 @@ All rights reserved. |
|
|
|
|
using A=Attribute; |
|
|
|
|
|
|
|
|
|
INCLUDE_game |
|
|
|
|
INCLUDE_DEMO_BUILD |
|
|
|
|
|
|
|
|
|
#undef BLACKSMITH |
|
|
|
|
|
|
|
|
@ -64,6 +65,7 @@ enum class TutorialTaskName{ |
|
|
|
|
BLACKSMITH, |
|
|
|
|
EQUIP_GEAR, |
|
|
|
|
ARTIFICER_INTRO, |
|
|
|
|
CLEAR_DEMO, |
|
|
|
|
NONE, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
@ -378,4 +380,21 @@ private: |
|
|
|
|
float textWidth=game->GetTextSizeProp(helpText).x; |
|
|
|
|
game->DrawShadowStringPropDecal({game->ScreenWidth()/2.f-textWidth/2.f,48.f},helpText); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
class ClearDemoTask:public TutorialTask{ |
|
|
|
|
public: |
|
|
|
|
inline ClearDemoTask():TutorialTask(){}; |
|
|
|
|
private: |
|
|
|
|
virtual inline void OnActivate()override final{ |
|
|
|
|
} |
|
|
|
|
virtual inline bool CompleteCondition()override final{ |
|
|
|
|
return !DEMO_BUILD||GameState::STATE==GameState::states.at(States::OVERWORLD_MAP); |
|
|
|
|
} |
|
|
|
|
virtual void OnComplete()override final{} |
|
|
|
|
virtual inline void Draw()const override final{ |
|
|
|
|
std::string helpText="#FFFF00Thank you for playing this demo!\n#00FF00Game Releases on December 20th!"; |
|
|
|
|
float textWidth=game->GetWrappedTextSizeProp(helpText,game->ScreenWidth()-24.f).x; |
|
|
|
|
game->DrawShadowStringPropDecal({game->ScreenWidth()/2.f-textWidth/2.f,48.f},helpText,WHITE,BLACK,{1.f,1.f},{1.f,1.f},game->ScreenWidth()-24.f); |
|
|
|
|
} |
|
|
|
|
}; |