1#ifndef WHEEL_ITEM_BASE_H
2#define WHEEL_ITEM_BASE_H
4#include "Etterna/Actor/Base/ActorFrame.h"
5#include "Etterna/Actor/Base/BitmapText.h"
6#include "Etterna/Models/Misc/GameConstantsAndTypes.h"
7#include "Etterna/Models/Misc/ThemeMetric.h"
15 WheelItemDataType_Generic,
16 WheelItemDataType_Section,
17 WheelItemDataType_Song,
18 WheelItemDataType_Roulette,
19 WheelItemDataType_Random,
20 WheelItemDataType_Portal,
21 WheelItemDataType_Course,
22 WheelItemDataType_Sort,
23 WheelItemDataType_Custom,
24 NUM_WheelItemDataType,
25 WheelItemDataType_Invalid
27LuaDeclareType(WheelItemDataType);
33 const std::string& sText,
36 WheelItemDataType m_Type;
53 void DrawGrayBar(
Actor& bar);
54 void SetExpanded(
bool bExpanded) { m_bExpanded = bExpanded; }
63 auto GetText() ->
const std::string
65 assert(m_pData !=
nullptr);
66 return m_pData->m_sText;
70 assert(m_pData !=
nullptr);
71 return m_pData->m_color;
73 auto GetType() -> WheelItemDataType
75 assert(m_pData !=
nullptr);
76 return m_pData->m_Type;
78 auto IsLoaded() ->
bool {
return m_pData !=
nullptr; }
81 void PushSelf(lua_State* L)
override;
84 void SetGrayBar(
Actor* pBar) { m_pGrayBar = pBar; }
A container for other Actors.
Definition ActorFrame.h:8
Base class for all objects that appear on the screen.
Definition Actor.h:77
An item on the wheel.
Definition WheelItemBase.h:42
void DrawPrimitives() override
Draw the primitives of the Actor.
Definition WheelItemBase.cpp:80
Definition RageTypes.h:332
Definition WheelItemBase.h:30