From d45a0f55f10acf172b14c0eb65a415acb3f53754 Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 6 Sep 2021 00:53:46 +0200 Subject: [PATCH] ADDED: GuiIsLocked() #140 --- src/raygui.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/raygui.h b/src/raygui.h index 00be0f4..14e2fef 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -417,6 +417,7 @@ RAYGUIDEF void GuiEnable(void); // Enabl RAYGUIDEF void GuiDisable(void); // Disable gui controls (global state) RAYGUIDEF void GuiLock(void); // Lock gui controls (global state) RAYGUIDEF void GuiUnlock(void); // Unlock gui controls (global state) +RAYGUIDEF bool GuiIsLocked(void); // Check if gui is locked (global state) RAYGUIDEF void GuiFade(float alpha); // Set gui controls alpha (global state), alpha goes from 0.0f to 1.0f RAYGUIDEF void GuiSetState(int state); // Set gui state (global state) RAYGUIDEF int GuiGetState(void); // Get gui state (global state) @@ -1202,6 +1203,9 @@ void GuiLock(void) { guiLocked = true; } // Unlock gui global state void GuiUnlock(void) { guiLocked = false; } +// Check if gui is locked (global state) +bool GuiIsLocked(void) { return guiLocked; } + // Set gui controls alpha global state void GuiFade(float alpha) {