mirror of
https://github.com/raysan5/raygui.git
synced 2026-01-28 09:49:18 -05:00
Update raygui.h
This commit is contained in:
@ -1252,10 +1252,12 @@ static Vector3 ConvertRGBtoHSV(Vector3 rgb); // Convert color
|
|||||||
// Gui Setup Functions Definition
|
// Gui Setup Functions Definition
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
// Enable gui global state
|
// Enable gui global state
|
||||||
void GuiEnable(void) { guiState = GUI_STATE_NORMAL; }
|
// NOTE: We check for GUI_STATE_DISABLED to avoid messing custom global state setups
|
||||||
|
void GuiEnable(void) { if (guiState == GUI_STATE_DISABLED) guiState = GUI_STATE_NORMAL; }
|
||||||
|
|
||||||
// Disable gui global state
|
// Disable gui global state
|
||||||
void GuiDisable(void) { guiState = GUI_STATE_DISABLED; }
|
// NOTE: We check for GUI_STATE_NORMAL to avoid messing custom global state setups
|
||||||
|
void GuiDisable(void) { if (guiState == GUI_STATE_NORMAL) guiState = GUI_STATE_DISABLED; }
|
||||||
|
|
||||||
// Lock gui global state
|
// Lock gui global state
|
||||||
void GuiLock(void) { guiLocked = true; }
|
void GuiLock(void) { guiLocked = true; }
|
||||||
|
|||||||
Reference in New Issue
Block a user