Implemented unlocking of areas via clearing stages. Game fade in/out for state transitions. Asset loading for visual novel assets. Visual Novel command execution code implemented. Visual Novel basic rendering and input handling enabled.
This commit is contained in:
@@ -37,6 +37,8 @@ SUCH DAMAGE.
|
||||
#include "MenuComponent.h"
|
||||
#include "InventoryScrollableWindowComponent.h"
|
||||
#include "PopupMenuLabel.h"
|
||||
#include "Unlock.h"
|
||||
#include "State_OverworldMap.h"
|
||||
|
||||
INCLUDE_game
|
||||
|
||||
@@ -64,10 +66,16 @@ void Menu::InitializeLevelCompleteWindow(){
|
||||
levelCompleteWindow->AddComponent("Stage Loot Outline",stageLootOutline);
|
||||
levelCompleteWindow->AddComponent("Stage Loot Label",stageLootLabel);
|
||||
levelCompleteWindow->AddComponent("Stage Loot Window",stageLootWindow);
|
||||
|
||||
auto nextButtonAction=[](MenuFuncData data){
|
||||
Unlock::UnlockArea(State_OverworldMap::GetCurrentConnectionPoint().map);
|
||||
GameState::ChangeState(States::OVERWORLD_MAP,0.5f);
|
||||
return true;
|
||||
};
|
||||
|
||||
MenuComponent*detailsOutline=NEW MenuComponent(LEVEL_COMPLETE,{{windowSize.size.x-72.f,32},{71,72}},"",DO_NOTHING,ButtonAttr::UNSELECTABLE);
|
||||
MenuLabel*detailsExpGain=NEW MenuLabel(LEVEL_COMPLETE,{{windowSize.size.x-72.f,104},{71,36}},"+ Exp",1,ComponentAttr::SHADOW|ComponentAttr::OUTLINE|ComponentAttr::BACKGROUND);
|
||||
MenuComponent*nextButton=NEW MenuComponent(LEVEL_COMPLETE,{{windowSize.size.x-72.f,144},{71,32}},"Next",DO_NOTHING);
|
||||
MenuComponent*nextButton=NEW MenuComponent(LEVEL_COMPLETE,{{windowSize.size.x-72.f,144},{71,32}},"Next",nextButtonAction);
|
||||
|
||||
levelCompleteWindow->AddComponent("Level Details Outline",detailsOutline);
|
||||
levelCompleteWindow->AddComponent("Level EXP Gain Outline",detailsExpGain);
|
||||
|
||||
Reference in New Issue
Block a user