Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-1-2-2013-Decompilation
Path: blob/main/RSDKv4/NativeObjects/InstructionsScreen.hpp
817 views
1
#ifndef NATIVE_INSTRUCTIONSSCREEN_H
2
#define NATIVE_INSTRUCTIONSSCREEN_H
3
4
enum InstructionsScreenStates {
5
INSTRUCTIONSCREEN_STATE_ENTER,
6
INSTRUCTIONSCREEN_STATE_MAIN,
7
INSTRUCTIONSCREEN_STATE_FLIP,
8
INSTRUCTIONSCREEN_STATE_FINISHFLIP,
9
INSTRUCTIONSCREEN_STATE_EXIT
10
};
11
enum InstructionsScreenInputStates {
12
INSTRUCTIONSCREEN_STATEINPUT_CHECKPRESS,
13
INSTRUCTIONSCREEN_STATEINPUT_HANDLEMOVEMENT,
14
INSTRUCTIONSCREEN_STATEINPUT_HANDLESCROLL,
15
INSTRUCTIONSCREEN_STATEINPUT_HANDLESWIPE
16
};
17
18
struct NativeEntity_InstructionsScreen : NativeEntityBase {
19
InstructionsScreenStates state;
20
int pageID;
21
int shownPage;
22
float timer;
23
float rotationY;
24
float scale;
25
NativeEntity_OptionsMenu *optionsMenu;
26
NativeEntity_TextLabel *labelPtr;
27
MeshInfo *meshPanel;
28
MatrixF renderMatrix;
29
MatrixF matrixTemp;
30
byte textureArrows;
31
byte textureHelp;
32
byte textureDPad;
33
byte touchedBack;
34
byte touchedPrev;
35
byte touchedNext;
36
int arrowAlpha;
37
InstructionsScreenInputStates stateInput;
38
float textY;
39
float textHeight;
40
float lastTouchY;
41
float textVelocity;
42
float lastSwipeDistanceV;
43
float swipeDistanceV;
44
float lastTouchX;
45
byte selectionEnabled;
46
byte flipRight;
47
ushort pageIDText[8];
48
};
49
50
void InstructionsScreen_Create(void *objPtr);
51
void InstructionsScreen_Main(void *objPtr);
52
53
#endif // !NATIVE_INSTRUCTIONSSCREEN_H
54
55