summaryrefslogtreecommitdiff
path: root/src/rgui.c
diff options
context:
space:
mode:
authorjussi2024-10-02 13:02:13 +0300
committerjussi2024-10-02 13:02:13 +0300
commit30c7a5eda27ef0e424bf7948e3cd37a1cf5a52ef (patch)
treefef0f62ff4206c2fc9548a12e4745ace3e7967d3 /src/rgui.c
parentd3202073a72b4ff0f98c29cdb096e2747dbaaae8 (diff)
downloadreilua-enhanced-30c7a5eda27ef0e424bf7948e3cd37a1cf5a52ef.tar.gz
reilua-enhanced-30c7a5eda27ef0e424bf7948e3cd37a1cf5a52ef.tar.bz2
reilua-enhanced-30c7a5eda27ef0e424bf7948e3cd37a1cf5a52ef.zip
GuiSetSliderDragging, GuiGetSliderDragging, GuiSetSliderActive and GuiGetSliderActive.
Diffstat (limited to 'src/rgui.c')
-rw-r--r--src/rgui.c53
1 files changed, 52 insertions, 1 deletions
diff --git a/src/rgui.c b/src/rgui.c
index 106180e..f1532a3 100644
--- a/src/rgui.c
+++ b/src/rgui.c
@@ -117,6 +117,58 @@ int lguiGuiGetState( lua_State* L ) {
}
/*
+> RL.GuiSetSliderDragging()
+
+Set guiSliderDragging
+*/
+int lguiGuiSetSliderDragging( lua_State* L ) {
+ bool dragging = lua_toboolean( L, 1 );
+
+ GuiSetSliderDragging( dragging );
+
+ return 0;
+}
+
+/*
+> isSliderDragging = RL.GuiGetSliderDragging()
+
+Get guiSliderDragging
+
+- Success return bool
+*/
+int lguiGuiGetSliderDragging( lua_State* L ) {
+ lua_pushboolean( L, GuiGetSliderDragging() );
+
+ return 1;
+}
+
+/*
+> RL.GuiSetSliderActive()
+
+Set guiSliderActive
+*/
+int lguiGuiSetSliderActive( lua_State* L ) {
+ Rectangle rect = uluaGetRectangle( L, 1 );
+
+ GuiSetSliderActive( rect );
+
+ return 0;
+}
+
+/*
+> isSliderDragging = RL.GuiGetSliderActive()
+
+Get guiSliderActive
+
+- Success return Rectangle
+*/
+int lguiGuiGetSliderActive( lua_State* L ) {
+ uluaPushRectangle( L, GuiGetSliderActive() );
+
+ return 1;
+}
+
+/*
## Gui - Font set/get functions
*/
@@ -203,7 +255,6 @@ int lguiGuiLoadStyle( lua_State* L ) {
return 1;
}
- // state->guiFont = GuiGetFont();
TraceLog( state->logLevelInvalid, "Invalid file '%s'", lua_tostring( L, 1 ) );
lua_pushnil( L );