|
| 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...
|
|
◆ 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
-
pValueName | The name of the variable. |
pDefaultValue | The default value if the given value is not defined. |
bForceOpqaue | Force 255 alpha. |
- Returns
- Returns the value.
◆ GetIntVar()
int GuiStyleManager::GetIntVar |
( |
const char * |
pValueName, |
|
|
int |
iDefaultValue = 0 |
|
) |
| |
Get the integer value of a variable.
- Parameters
-
pValueName | The name of the variable. |
pDefaultValue | The default value if the given value is not defined. |
- Returns
- Returns the value.
◆ GetPointVar()
Get the point value of a variable.
- Parameters
-
pValueName | The name of the variable. |
pDefaultValue | The default value if the given value is not defined. |
- Returns
- Returns the value.
◆ GetRectVar()
Get the rect value of a variable.
- Parameters
-
pValueName | The name of the variable. |
pDefaultValue | The 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
-
pValueName | The name of the variable. |
pDefaultValue | The 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:
- H:/dev/Cave-Story-Engine-2-CSE2E-v1.2/src/Mod/Subclasses/GuiStyles.h