| 1 | #include "Scene/HintPhotoLayoutHolder.h" |
|---|---|
| 2 | |
| 3 | #include "Library/Layout/LayoutActor.h" |
| 4 | #include "Library/Layout/LayoutInitInfo.h" |
| 5 | |
| 6 | #include "Layout/DecideIconLayout.h" |
| 7 | |
| 8 | HintPhotoLayoutHolder::HintPhotoLayoutHolder() = default; |
| 9 | |
| 10 | bool HintPhotoLayoutHolder::isInit() const { |
| 11 | return mLayoutActor != nullptr; |
| 12 | } |
| 13 | |
| 14 | const al::LayoutActor* HintPhotoLayoutHolder::getPhotoLayout() const { |
| 15 | return mLayoutActor; |
| 16 | } |
| 17 | |
| 18 | DecideIconLayout* HintPhotoLayoutHolder::getDecideIcon() const { |
| 19 | return mDecideIconLayout; |
| 20 | } |
| 21 | |
| 22 | void HintPhotoLayoutHolder::init(const al::LayoutInitInfo& initInfo) { |
| 23 | if (mLayoutActor == nullptr) { |
| 24 | mLayoutActor = new al::LayoutActor("ヒント写真"); |
| 25 | al::initLayoutActor(mLayoutActor, initInfo, "HintPhoto", nullptr); |
| 26 | mDecideIconLayout = new DecideIconLayout("決定アイコン", initInfo); |
| 27 | } |
| 28 | } |
| 29 |