[demo] Add congratulatory message for completing the demo. Version updated to 1.3. Release Build 11561.

demo
sigonasr2 3 months ago
parent 7b5809c5b6
commit 1dfb4d0201
  1. 4
      Adventures in Lestoria/State_GameHub.cpp
  2. 1
      Adventures in Lestoria/State_OverworldMap.cpp
  3. 1
      Adventures in Lestoria/Tutorial.cpp
  4. 19
      Adventures in Lestoria/Tutorial.h
  5. 6
      Adventures in Lestoria/Version.h
  6. BIN
      x64/Release/Adventures in Lestoria.exe

@ -56,6 +56,10 @@ void State_GameHub::OnStateChange(GameState*prevState){
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,
};
@ -379,3 +381,20 @@ private:
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

Loading…
Cancel
Save