GuiScrollBar.

This commit is contained in:
jussi
2023-12-20 01:13:28 +02:00
parent 9884c544bb
commit 192d471fb3
9 changed files with 108 additions and 8 deletions

View File

@@ -764,6 +764,24 @@ int lguiGuiGrid( lua_State *L ) {
return 2;
}
/*
> 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
*/