Files
wii-ipl/src/homebutton/HBMAnmController.cpp
2026-03-15 13:32:23 +00:00

33 lines
799 B
C++

#include "homebutton/HBMAnmController.h"
#include <nw4r/lyt.h>
#include <nw4r/ut.h>
namespace homebutton {
GroupAnmController::GroupAnmController() : mpGroup(), mpAnimGroup() {
}
GroupAnmController::~GroupAnmController() {
}
void GroupAnmController::do_calc() {
bool enable;
if (mState == ANIM_STATE_PLAY) {
calc();
enable = true;
mpAnimGroup->SetFrame(mFrame);
} else {
enable = false;
}
nw4r::lyt::PaneLinkList& rPaneList = mpGroup->GetPaneList();
for (nw4r::lyt::PaneLinkList::Iterator it = rPaneList.GetBeginIter(); it != rPaneList.GetEndIter(); ++it) {
it->mTarget->SetAnimationEnable(mpAnimGroup, enable, false);
}
}
} // namespace homebutton