summaryrefslogtreecommitdiff
path: root/include/d/d_fader.h
diff options
context:
space:
mode:
authorrobojumper <robojumper@gmail.com>2025-03-06 20:50:32 +0100
committerrobojumper <robojumper@gmail.com>2025-03-06 20:50:32 +0100
commit82aef3b1831f20dc1c1096a48df8d2409a179d85 (patch)
tree069f5da0e8dc177958e7af7b1f2c229c256a8886 /include/d/d_fader.h
parent3461afd2b89de4db997726ce99c9c188677e03c4 (diff)
dScTitle_c OK, dScGame_c about halfway
Diffstat (limited to 'include/d/d_fader.h')
-rw-r--r--include/d/d_fader.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/d/d_fader.h b/include/d/d_fader.h
index 300ea576..24e2cd39 100644
--- a/include/d/d_fader.h
+++ b/include/d/d_fader.h
@@ -33,11 +33,28 @@ public:
mFadeOutType = fadeOutType;
}
+ void setFadeInType(s32 fadeInType) {
+ mFadeInType = fadeInType;
+ }
+
+ void setFadeOutType(s32 fadeOutType) {
+ mFadeOutType = fadeOutType;
+ }
+
void resetFrames() {
mFadeInFrame = 30;
mFadeOutFrame = 30;
}
+ void setFrames(u16 fadeIn, u16 fadeOut) {
+ mFadeInFrame = fadeIn;
+ mFadeOutFrame = fadeOut;
+ }
+
+ u16 getFadeOutFrame() const {
+ return mFadeOutFrame;
+ }
+
void setFadeInFrame(u16 frame) {
mFadeInFrame = frame;
}