Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-1-2-2013-Decompilation
Path: blob/main/RSDKv4/NativeObjects/DialogPanel.hpp
817 views
1
#ifndef NATIVE_DIALOGPANEL_H
2
#define NATIVE_DIALOGPANEL_H
3
4
enum DialogPanelTypes {
5
DLGTYPE_OK = 1,
6
DLGTYPE_YESNO = 2,
7
};
8
9
enum DialogPanelSelections {
10
DLG_YES = 1,
11
DLG_NO,
12
DLG_OK,
13
};
14
15
enum DialogPanelStates {
16
DIALOGPANEL_STATE_SETUP,
17
DIALOGPANEL_STATE_ENTER,
18
DIALOGPANEL_STATE_MAIN,
19
DIALOGPANEL_STATE_ACTION,
20
DIALOGPANEL_STATE_EXIT,
21
DIALOGPANEL_STATE_IDLE
22
};
23
24
struct NativeEntity_DialogPanel : NativeEntityBase {
25
DialogPanelStates state;
26
int buttonCount;
27
float stateTimer;
28
int unused;
29
float buttonScale;
30
MeshInfo *panelMesh;
31
MatrixF buttonMatrix;
32
MatrixF buttonMult;
33
NativeEntity_PushButton *buttons[2];
34
int buttonSelected;
35
int selection;
36
ushort text[128];
37
float textX;
38
float textY;
39
float scale;
40
};
41
42
void DialogPanel_Create(void *objPtr);
43
void DialogPanel_Main(void *objPtr);
44
45
#endif // !NATIVE_DIALOGPANEL_H
46
47