-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scene: Implement
HintPhotoLayoutHolder
(#225)
- Loading branch information
Showing
4 changed files
with
83 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#pragma once | ||
|
||
#include "Library/Nerve/NerveExecutor.h" | ||
|
||
namespace al { | ||
class LayoutInitInfo; | ||
} | ||
|
||
class DecideIconLayout : public al::NerveExecutor { | ||
public: | ||
DecideIconLayout(const char*, const al::LayoutInitInfo*); | ||
void appear(); | ||
void exeAppear(); | ||
void exeWait(); | ||
void exeDecide(); | ||
bool isDecide() const; | ||
bool isWait() const; | ||
bool isEnd() const; | ||
char filler[0x140]; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#include "Scene/HintPhotoLayoutHolder.h" | ||
|
||
#include "Library/Layout/LayoutActor.h" | ||
#include "Library/Layout/LayoutInitInfo.h" | ||
|
||
#include "Layout/DecideIconLayout.h" | ||
|
||
HintPhotoLayoutHolder::HintPhotoLayoutHolder() = default; | ||
|
||
bool HintPhotoLayoutHolder::isInit() const { | ||
return mLayoutActor != nullptr; | ||
} | ||
|
||
const al::LayoutActor* HintPhotoLayoutHolder::getPhotoLayout() const { | ||
return mLayoutActor; | ||
} | ||
|
||
DecideIconLayout* HintPhotoLayoutHolder::getDecideIcon() const { | ||
return mDecideIconLayout; | ||
} | ||
|
||
const char* HintPhotoLayoutHolder::getSceneObjName() const { | ||
return "ヒント写真レイアウト保持"; | ||
} | ||
|
||
void HintPhotoLayoutHolder::init(const al::LayoutInitInfo& info) { | ||
if (mLayoutActor == nullptr) { | ||
mLayoutActor = new al::LayoutActor("ヒント写真"); | ||
al::initLayoutActor(mLayoutActor, info, "HintPhoto", nullptr); | ||
mDecideIconLayout = new DecideIconLayout("決定アイコン", &info); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#pragma once | ||
|
||
#include "Library/Scene/ISceneObj.h" | ||
|
||
namespace al { | ||
class LayoutActor; | ||
class LayoutInitInfo; | ||
} // namespace al | ||
class DecideIconLayout; | ||
|
||
class HintPhotoLayoutHolder : public al::ISceneObj { | ||
public: | ||
HintPhotoLayoutHolder(); | ||
void init(const al::LayoutInitInfo& info); | ||
bool isInit() const; | ||
const al::LayoutActor* getPhotoLayout() const; | ||
DecideIconLayout* getDecideIcon() const; | ||
const char* getSceneObjName() const; | ||
|
||
private: | ||
al::LayoutActor* mLayoutActor = nullptr; | ||
DecideIconLayout* mDecideIconLayout = nullptr; | ||
}; |