summaryrefslogtreecommitdiff
path: root/src/rgui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rgui.c')
-rw-r--r--src/rgui.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/rgui.c b/src/rgui.c
index c4f10ac..46dfa49 100644
--- a/src/rgui.c
+++ b/src/rgui.c
@@ -765,6 +765,24 @@ int lguiGuiGrid( lua_State *L ) {
}
/*
+> value = RL.GuiScrollBar( Rectangle bounds, int value, int minValue, int maxValue )
+
+Scroll bar control
+
+- Success return int
+*/
+int lguiGuiScrollBar( lua_State *L ) {
+ Rectangle bounds = uluaGetRectangle( L, 1 );
+ int value = luaL_checkinteger( L, 2 );
+ int minValue = luaL_checkinteger( L, 3 );
+ int maxValue = luaL_checkinteger( L, 4 );
+
+ lua_pushinteger( L, GuiScrollBar( bounds, value, minValue, maxValue ) );
+
+ return 1;
+}
+
+/*
## Gui - Advance controls set
*/