Path: blob/master/SonicMania/Objects/Menu/UIChoice.h
338 views
#ifndef OBJ_UICHOICE_H1#define OBJ_UICHOICE_H23#include "Game.h"45// Object Class6struct ObjectUIChoice {7RSDK_OBJECT8uint16 aniFrames;9};1011// Entity Class12struct EntityUIChoice {13MANIA_UI_ITEM_BASE14Vector2 size;15int32 listID;16int32 frameID;17bool32 noText;18bool32 auxIcon;19int32 auxListID;20int32 auxFrameID;21int32 align;22int32 arrowWidth;23bool32 isDisabled;24int32 bgEdgeSize;25int32 textBounceOffset;26int32 buttonBounceOffset;27int32 textBounceVelocity;28int32 buttonBounceVelocity;29bool32 textVisible;30bool32 clearParentState;31int32 touchID;32Animator labelAnimator;33Animator iconAnimator;34Animator leftArrowAnimator;35Animator rightArrowAnimator;36uint16 aniFrames;37};3839// Object Struct40extern ObjectUIChoice *UIChoice;4142// Standard Entity Events43void UIChoice_Update(void);44void UIChoice_LateUpdate(void);45void UIChoice_StaticUpdate(void);46void UIChoice_Draw(void);47void UIChoice_Create(void *data);48void UIChoice_StageLoad(void);49#if GAME_INCLUDE_EDITOR50void UIChoice_EditorDraw(void);51void UIChoice_EditorLoad(void);52#endif53void UIChoice_Serialize(void);5455// Extra Entity Functions56void UIChoice_SetChoiceActive(EntityUIChoice *choice);57void UIChoice_SetChoiceInactive(EntityUIChoice *choice);58void UIChoice_TouchedCB_Left(void);59void UIChoice_TouchedCB_Right(void);60bool32 UIChoice_CheckTouch(void);61void UIChoice_State_HandleButtonLeave(void);62void UIChoice_State_HandleButtonEnter(void);6364#endif //! OBJ_UICHOICE_H656667