Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/Menu/UIBackground.h
338 views
1
#ifndef OBJ_UIBACKGROUND_H
2
#define OBJ_UIBACKGROUND_H
3
4
#include "Game.h"
5
6
typedef enum { UIBACKGROUND_UNUSED } UIBackgroundTypes;
7
8
// Object Class
9
struct ObjectUIBackground {
10
RSDK_OBJECT
11
#if MANIA_USE_PLUS
12
TABLE(color bgColors[21], { 0xF0C800, 0xF08C18, 0x80A0B0, 0x50D8A0, 0xF09018, 0x38B0C8, 0x38B0C8, 0xF07028, 0x50D8A0, 0xC83868, 0x50D8A0,
13
0xF09018, 0xC0C098, 0x38B0C8, 0x88A0B8, 0xA850F0, 0x88C801, 0x1B0F0, 0x50B098, 0x890C8, 0xE8B010 });
14
#else
15
TABLE(color bgColors[15], { 0xF0C800, 0xF08C18, 0x80A0B0, 0x50D8A0, 0xF09018, 0x38B0C8, 0x38B0C8, 0xF07028, 0x50D8A0, 0xC83868, 0x50D8A0,
16
0xF09018, 0xC0C098, 0x38B0C8, 0x88A0B8 });
17
#endif
18
color *activeColors;
19
uint16 aniFrames;
20
};
21
22
// Entity Class
23
struct EntityUIBackground {
24
RSDK_ENTITY
25
StateMachine(stateDraw);
26
UIBackgroundTypes type;
27
int32 timer;
28
Animator animator; // probably editor-only
29
};
30
31
// Object Struct
32
extern ObjectUIBackground *UIBackground;
33
34
// Standard Entity Events
35
void UIBackground_Update(void);
36
void UIBackground_LateUpdate(void);
37
void UIBackground_StaticUpdate(void);
38
void UIBackground_Draw(void);
39
void UIBackground_Create(void *data);
40
void UIBackground_StageLoad(void);
41
#if GAME_INCLUDE_EDITOR
42
void UIBackground_EditorDraw(void);
43
void UIBackground_EditorLoad(void);
44
#endif
45
void UIBackground_Serialize(void);
46
47
// Extra Entity Functions
48
void UIBackground_DrawNormal(void);
49
50
#endif //! OBJ_UIBACKGROUND_H
51
52