Cavestory Mod API
Public Member Functions | List of all members
GuiStyleManager Class Reference

Public Member Functions

 GuiStyleManager ()
 Default constructor.
 
 ~GuiStyleManager ()
 Deconstructor.
 
const char * GetStringVar (const char *pValueName, const char *pDefaultValue="")
 Get the string value of a variable. More...
 
int GetIntVar (const char *pValueName, int iDefaultValue=0)
 Get the integer value of a variable. More...
 
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. More...
 
GUI_RECT GetRectVar (const char *pValueName, GUI_RECT pDefaultValue=GUI_RECT(0, 0, 0, 0))
 Get the rect value of a variable. More...
 
GUI_POINT GetPointVar (const char *pValueName, GUI_POINT pDefaultValue=GUI_POINT(0, 0))
 Get the point value of a variable. More...
 
void Reset ()
 Reset the manager.
 
int LoadStyles (const char *pFileName)
 Load the currently loaded mod's GuiStyle.cfg file. More...
 

Member Function Documentation

◆ GetColorVar()

GUI_COLOR GuiStyleManager::GetColorVar ( const char *  pValueName,
GUI_COLOR  pDefaultValue = GUI_COLOR(0, 0, 0, 0),
bool  bForceOpqaue = false 
)

Get the integer value of a variable.

Parameters
pValueNameThe name of the variable.
pDefaultValueThe default value if the given value is not defined.
bForceOpqaueForce 255 alpha.
Returns
Returns the value.

◆ GetIntVar()

int GuiStyleManager::GetIntVar ( const char *  pValueName,
int  iDefaultValue = 0 
)

Get the integer value of a variable.

Parameters
pValueNameThe name of the variable.
pDefaultValueThe default value if the given value is not defined.
Returns
Returns the value.

◆ GetPointVar()

GUI_POINT GuiStyleManager::GetPointVar ( const char *  pValueName,
GUI_POINT  pDefaultValue = GUI_POINT(0, 0) 
)

Get the point value of a variable.

Parameters
pValueNameThe name of the variable.
pDefaultValueThe default value if the given value is not defined.
Returns
Returns the value.

◆ GetRectVar()

GUI_RECT GuiStyleManager::GetRectVar ( const char *  pValueName,
GUI_RECT  pDefaultValue = GUI_RECT(0, 0, 0, 0) 
)

Get the rect value of a variable.

Parameters
pValueNameThe name of the variable.
pDefaultValueThe default value if the given value is not defined.
Returns
Returns the value.

◆ GetStringVar()

const char* GuiStyleManager::GetStringVar ( const char *  pValueName,
const char *  pDefaultValue = "" 
)

Get the string value of a variable.

Parameters
pValueNameThe name of the variable.
pDefaultValueThe default value if the given value is not defined.
Returns
Returns the value.

◆ LoadStyles()

int GuiStyleManager::LoadStyles ( const char *  pFileName)

Load the currently loaded mod's GuiStyle.cfg file.

Returns
Returns the error code.

The documentation for this class was generated from the following file: