Path: blob/master/SonicMania/Objects/Menu/UIBackground.h
338 views
#ifndef OBJ_UIBACKGROUND_H1#define OBJ_UIBACKGROUND_H23#include "Game.h"45typedef enum { UIBACKGROUND_UNUSED } UIBackgroundTypes;67// Object Class8struct ObjectUIBackground {9RSDK_OBJECT10#if MANIA_USE_PLUS11TABLE(color bgColors[21], { 0xF0C800, 0xF08C18, 0x80A0B0, 0x50D8A0, 0xF09018, 0x38B0C8, 0x38B0C8, 0xF07028, 0x50D8A0, 0xC83868, 0x50D8A0,120xF09018, 0xC0C098, 0x38B0C8, 0x88A0B8, 0xA850F0, 0x88C801, 0x1B0F0, 0x50B098, 0x890C8, 0xE8B010 });13#else14TABLE(color bgColors[15], { 0xF0C800, 0xF08C18, 0x80A0B0, 0x50D8A0, 0xF09018, 0x38B0C8, 0x38B0C8, 0xF07028, 0x50D8A0, 0xC83868, 0x50D8A0,150xF09018, 0xC0C098, 0x38B0C8, 0x88A0B8 });16#endif17color *activeColors;18uint16 aniFrames;19};2021// Entity Class22struct EntityUIBackground {23RSDK_ENTITY24StateMachine(stateDraw);25UIBackgroundTypes type;26int32 timer;27Animator animator; // probably editor-only28};2930// Object Struct31extern ObjectUIBackground *UIBackground;3233// Standard Entity Events34void UIBackground_Update(void);35void UIBackground_LateUpdate(void);36void UIBackground_StaticUpdate(void);37void UIBackground_Draw(void);38void UIBackground_Create(void *data);39void UIBackground_StageLoad(void);40#if GAME_INCLUDE_EDITOR41void UIBackground_EditorDraw(void);42void UIBackground_EditorLoad(void);43#endif44void UIBackground_Serialize(void);4546// Extra Entity Functions47void UIBackground_DrawNormal(void);4849#endif //! OBJ_UIBACKGROUND_H505152