[demo] Add congratulatory message for completing the demo. Version updated to 1.3. Release Build 11561.
This commit is contained in:
parent
fb66fcb04d
commit
8283147efe
@ -55,7 +55,11 @@ void State_GameHub::OnStateChange(GameState*prevState){
|
||||
if(Menu::IsMenuOpen()){
|
||||
Menu::CloseAllMenus();
|
||||
}
|
||||
|
||||
|
||||
if(Unlock::IsUnlocked("STORY_1_3")&&!Tutorial::TaskIsComplete(TutorialTaskName::CLEAR_DEMO)){
|
||||
Tutorial::SetNextTask(TutorialTaskName::CLEAR_DEMO);
|
||||
}
|
||||
else
|
||||
if(Unlock::IsUnlocked("STORY_1_2")&&!Tutorial::TaskIsComplete(TutorialTaskName::BLACKSMITH)){
|
||||
Tutorial::SetNextTask(TutorialTaskName::BLACKSMITH);
|
||||
}
|
||||
|
@ -48,6 +48,7 @@ All rights reserved.
|
||||
#include "State_OverworldMap.h"
|
||||
#include "SaveFile.h"
|
||||
#include "Audio.h"
|
||||
#include "Tutorial.h"
|
||||
|
||||
INCLUDE_MONSTER_LIST
|
||||
INCLUDE_game
|
||||
|
@ -52,6 +52,7 @@ void Tutorial::Initialize(){
|
||||
CREATETASK(TutorialTaskName::BLACKSMITH,BlacksmithTask);
|
||||
CREATETASK(TutorialTaskName::EQUIP_GEAR,EquipGearTask);
|
||||
CREATETASK(TutorialTaskName::ARTIFICER_INTRO,ArtificerIntroductionTask);
|
||||
CREATETASK(TutorialTaskName::CLEAR_DEMO,ClearDemoTask);
|
||||
currentTaskState=TutorialTaskName::SET_LOADOUT_ITEM;
|
||||
ResetTasks();
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
};
|
@ -37,9 +37,9 @@ All rights reserved.
|
||||
#pragma endregion
|
||||
#pragma once
|
||||
#define VERSION_MAJOR 1
|
||||
#define VERSION_MINOR 2
|
||||
#define VERSION_PATCH 5
|
||||
#define VERSION_BUILD 11558
|
||||
#define VERSION_MINOR 3
|
||||
#define VERSION_PATCH 0
|
||||
#define VERSION_BUILD 11561
|
||||
|
||||
#define stringify(a) stringify_(a)
|
||||
#define stringify_(a) #a
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user