Path: blob/master/SonicMania/Objects/Menu/UICarousel.h
338 views
#ifndef OBJ_UICAROUSEL_H1#define OBJ_UICAROUSEL_H23#include "Game.h"45#if MANIA_USE_PLUS6// Object Class7struct ObjectUICarousel {8RSDK_OBJECT9uint16 aniFrames; // both of these aren't used, and are thus prolly editor-only10Animator animator; // both of these aren't used, and are thus prolly editor-only11};1213// Entity Class14struct EntityUICarousel {15RSDK_ENTITY16Vector2 shift;17Vector2 clipSize;18Vector2 clipOffset;19int32 unused1;20int32 unused2;21int32 unused3;22Entity *unused4;23int32 unused5;24int32 scrollOffset;25int32 virtualIndex;26int32 unused6;27Vector2 startPos;28int32 buttonID;29int32 minOffset;30int32 maxOffset;31Vector2 offset;32EntityUIControl *parent;33};3435// Object Struct36extern ObjectUICarousel *UICarousel;3738// Standard Entity Events39void UICarousel_Update(void);40void UICarousel_LateUpdate(void);41void UICarousel_StaticUpdate(void);42void UICarousel_Draw(void);43void UICarousel_Create(void *data);44void UICarousel_StageLoad(void);45#if GAME_INCLUDE_EDITOR46void UICarousel_EditorDraw(void);47void UICarousel_EditorLoad(void);48#endif49void UICarousel_Serialize(void);5051// Extra Entity Functions52void UICarousel_HandleScrolling(void);53void UICarousel_HandleButtonPositions(void);5455#endif5657#endif //! OBJ_UICAROUSEL_H585960