diff options
| author | jussi | 2023-04-14 00:11:58 +0300 |
|---|---|---|
| committer | jussi | 2023-04-14 00:11:58 +0300 |
| commit | dc2edd69440fcc2470a45562149166695d4edbcc (patch) | |
| tree | 25d4779859468d44958f41357af53396452c3f52 /src/rgui.c | |
| parent | 895c7f1a06de2d89347909d62da41be9d62f0d09 (diff) | |
| download | reilua-enhanced-dc2edd69440fcc2470a45562149166695d4edbcc.tar.gz reilua-enhanced-dc2edd69440fcc2470a45562149166695d4edbcc.tar.bz2 reilua-enhanced-dc2edd69440fcc2470a45562149166695d4edbcc.zip | |
Raygui wrapper lib.
Diffstat (limited to 'src/rgui.c')
| -rw-r--r-- | src/rgui.c | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -131,7 +131,7 @@ int lguiGuiGetState( lua_State *L ) { /* > success = RL.GuiSetFont( Font font ) -Set gui custom font ( Global state ) +Set gui custom font ( global state ) - Failure return false - Success return true @@ -143,6 +143,7 @@ int lguiGuiSetFont( lua_State *L ) { return 1; } size_t fontId = lua_tointeger( L, 1 ); + state->guiFont = fontId; GuiSetFont( *state->fonts[ fontId ] ); lua_pushboolean( L, true ); @@ -151,6 +152,19 @@ int lguiGuiSetFont( lua_State *L ) { } /* +> font = RL.GuiGetFont() + +Get gui custom font ( global state ) + +- Success return int +*/ +int lguiGuiGetFont( lua_State *L ) { + lua_pushinteger( L, state->guiFont ); + + return 1; +} + +/* ## Gui - Style */ |
