blob: 4669ff8650ef7365ce9fcf22ebc826a28dff857d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#pragma once
#include <heap/seadDisposer.h>
namespace uking::ui {
class FadeProgress {
SEAD_SINGLETON_DISPOSER(FadeProgress)
FadeProgress() = default;
~FadeProgress() = default;
public:
void init();
void reset();
void updateFadeScreen();
void setProgress(float value);
float getGaugeValue() const;
void setIsActive();
private:
bool mActive = false;
float mProgress = 0.0;
float mGaugeValue = 0.0;
float mProgressPerStep = 0.002;
float mSteps = 1.0;
};
} // namespace uking::ui
|