MCPcopy Create free account
hub / github.com/doldecomp/mkdd / calc

Method calc

src/Osako/MenuTitleLine.cpp:84–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84void MenuTitleLine::calc()
85{
86 mTransform->setFrame(mTransFrame);
87 mTexSRTKey->setFrame(mKeyFrame);
88
89 switch (mAnmType)
90 {
91 case mcAnimDrop:
92 if (++mTransFrame >= 11)
93 {
94 mAnmType = mcAnim2;
95 mTransFrame = 10;
96 }
97 break;
98 case mcAnimLift:
99 if (--mTransFrame < 0)
100 {
101 mAnmType = mcAnim0;
102 mTransFrame = 0;
103 }
104 break;
105 }
106
107 if (++mKeyFrame >= 540)
108 mKeyFrame = 0;
109
110 mScreen.animation();
111}

Callers

nothing calls this directly

Calls 2

setFrameMethod · 0.45
animationMethod · 0.45

Tested by

no test coverage detected