mirror of
https://github.com/MonsterDruide1/OdysseyDecomp
synced 2026-05-06 23:38:32 +00:00
29 lines
828 B
C++
29 lines
828 B
C++
#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;
|
|
}
|
|
|
|
void HintPhotoLayoutHolder::init(const al::LayoutInitInfo& initInfo) {
|
|
if (!mLayoutActor) {
|
|
mLayoutActor = new al::LayoutActor("ヒント写真");
|
|
al::initLayoutActor(mLayoutActor, initInfo, "HintPhoto", nullptr);
|
|
mDecideIconLayout = new DecideIconLayout("決定アイコン", initInfo);
|
|
}
|
|
}
|