diff options
| author | jussi | 2023-11-09 22:02:59 +0200 |
|---|---|---|
| committer | jussi | 2023-11-09 22:02:59 +0200 |
| commit | 8effd050ffb736df2124da00227d8b2843d298f6 (patch) | |
| tree | 47e3970fd315384a86e467b27edccc7bd75bb4bd /src/rgui.c | |
| parent | e056446750bff6db15842aea662f18a322052d8c (diff) | |
| download | reilua-enhanced-8effd050ffb736df2124da00227d8b2843d298f6.tar.gz reilua-enhanced-8effd050ffb736df2124da00227d8b2843d298f6.tar.bz2 reilua-enhanced-8effd050ffb736df2124da00227d8b2843d298f6.zip | |
Organized shapes, textures, audio, text, lights and gui functions.
Diffstat (limited to 'src/rgui.c')
| -rw-r--r-- | src/rgui.c | 82 |
1 files changed, 43 insertions, 39 deletions
@@ -7,7 +7,7 @@ #include "raygui.h" /* -## Gui - Global +## Gui - Global gui state control functions */ /* @@ -107,7 +107,7 @@ int lguiGuiGetState( lua_State *L ) { } /* -## Gui - Font +## Gui - Font set/get functions */ /* @@ -137,7 +137,7 @@ int lguiGuiGetFont( lua_State *L ) { } /* -## Gui - Style +## Gui - Style set/get functions */ /* @@ -172,39 +172,7 @@ int lguiGuiGetStyle( lua_State *L ) { } /* -> success = RL.GuiLoadStyle( string fileName ) - -Load style file over global style variable (.rgs) - -- Failure return false -- Success return true -*/ -int lguiGuiLoadStyle( lua_State *L ) { - if ( FileExists( luaL_checkstring( L, 1 ) ) ) { - GuiLoadStyle( lua_tostring( L, 1 ) ); - lua_pushboolean( L, true ); - - return 1; - } - TraceLog( state->logLevelInvalid, "Invalid file '%s'", lua_tostring( L, 1 ) ); - lua_pushboolean( L, false ); - - return 1; -} - -/* -> RL.GuiLoadStyleDefault() - -Load style default over global style -*/ -int lguiGuiLoadStyleDefault( lua_State *L ) { - GuiLoadStyleDefault(); - - return 0; -} - -/* -## Gui - Container +## Gui - Container/separator controls, useful for controls organization */ /* @@ -280,7 +248,7 @@ int lguiGuiScrollPanel( lua_State *L ) { } /* -## Gui - Basic +## Gui - Basic controls set */ /* @@ -606,7 +574,7 @@ int lguiGuiGrid( lua_State *L ) { } /* -## Gui - Advanced +## Gui - Advance controls set */ /* @@ -750,7 +718,43 @@ int lguiGuiColorBarHue( lua_State *L ) { } /* -## Gui - Icons +## Gui - Styles loading functions +*/ + +/* +> success = RL.GuiLoadStyle( string fileName ) + +Load style file over global style variable (.rgs) + +- Failure return false +- Success return true +*/ +int lguiGuiLoadStyle( lua_State *L ) { + if ( FileExists( luaL_checkstring( L, 1 ) ) ) { + GuiLoadStyle( lua_tostring( L, 1 ) ); + lua_pushboolean( L, true ); + + return 1; + } + TraceLog( state->logLevelInvalid, "Invalid file '%s'", lua_tostring( L, 1 ) ); + lua_pushboolean( L, false ); + + return 1; +} + +/* +> RL.GuiLoadStyleDefault() + +Load style default over global style +*/ +int lguiGuiLoadStyleDefault( lua_State *L ) { + GuiLoadStyleDefault(); + + return 0; +} + +/* +## Gui - Icons functionality */ /* |
