26 #ifndef CAVESTORY_MOD_API_H_
27 #error "Please include CavestoryModAPI.h before including sub-classes."
33 #include <Mod/SortedBinList.h>
167 DynamicSortedBinList<GuiStyleVariable*, 1, true> m_VarList;
187 const char*
GetStringVar(
const char* pValueName,
const char* pDefaultValue =
"");
195 int GetIntVar(
const char* pValueName,
int iDefaultValue = 0);
GuiStyleVarType
The variable type for a GuiStyleVariable.
Definition: GuiStyles.h:40
@ GSVT_COLOR
Color variable.
Definition: GuiStyles.h:45
@ GSVT_INTEGER
Integer variable.
Definition: GuiStyles.h:51
@ GSVT_POINT
Point variable.
Definition: GuiStyles.h:57
@ GSVT_STRING
String variable.
Definition: GuiStyles.h:48
@ GSVT_UNDEFINED
Undefined.
Definition: GuiStyles.h:42
@ GSVT_RECT
Rect variable.
Definition: GuiStyles.h:54
Definition: GuiStyles.h:162
int LoadStyles(const char *pFileName)
Load the currently loaded mod's GuiStyle.cfg file.
GUI_COLOR GetColorVar(const char *pValueName, GUI_COLOR pDefaultValue=GUI_COLOR(0, 0, 0, 0), bool bForceOpqaue=false)
Get the integer value of a variable.
const char * GetStringVar(const char *pValueName, const char *pDefaultValue="")
Get the string value of a variable.
GuiStyleManager()
Default constructor.
~GuiStyleManager()
Deconstructor.
int GetIntVar(const char *pValueName, int iDefaultValue=0)
Get the integer value of a variable.
GUI_POINT GetPointVar(const char *pValueName, GUI_POINT pDefaultValue=GUI_POINT(0, 0))
Get the point value of a variable.
void Reset()
Reset the manager.
GUI_RECT GetRectVar(const char *pValueName, GUI_RECT pDefaultValue=GUI_RECT(0, 0, 0, 0))
Get the rect value of a variable.
A sortable client class, to be used with SortedBinList.
Definition: GuiStyles.h:95
union GuiStyleVariable::@19 m_Values
The value for this variable.
GuiStyleVariable()
Main constructor.
GuiStyleVarType m_Type
The type of variable this is.
Definition: GuiStyles.h:104
~GuiStyleVariable()
Deconstructor.
GuiStyleVariable(int key)
Constructor.
int m_NameHash
The key.
Definition: GuiStyles.h:100
Manages colors.
Definition: CSMAPI_types.h:497
Manages points.
Definition: CSMAPI_types.h:546
Definition: CSMAPI_types.h:842
GuiStyles' color struct.
Definition: GuiStyles.h:65
GuiStyles' point struct.
Definition: GuiStyles.h:85
GuiStyles' rect struct.
Definition: GuiStyles.h:75