mirror of
https://github.com/MonsterDruide1/OdysseyDecomp
synced 2026-04-26 18:44:33 +00:00
22 lines
509 B
C++
22 lines
509 B
C++
#include "Library/Screen/ScreenCoverCtrl.h"
|
|
|
|
namespace al {
|
|
ScreenCoverCtrl::ScreenCoverCtrl() = default;
|
|
|
|
void ScreenCoverCtrl::requestCaptureScreenCover(s32 coverFrames) {
|
|
if (mCoverFrames < coverFrames) {
|
|
if (mCoverFrames <= 0)
|
|
mIsRequestCapture = true;
|
|
mCoverFrames = coverFrames;
|
|
}
|
|
}
|
|
|
|
void ScreenCoverCtrl::update() {
|
|
if (mCoverFrames >= 1) {
|
|
mCoverFrames--;
|
|
if (mCoverFrames == 0)
|
|
mIsRequestCapture = false;
|
|
}
|
|
}
|
|
} // namespace al
|