mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
lua: gui library (WIP)
This commit is contained in:
parent
302b649634
commit
05589b721e
14 changed files with 262 additions and 25 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#include "LuaState.h"
|
||||
|
||||
#include "api_lua.h"
|
||||
#include "api/api_lua.h"
|
||||
#include "api/libgui.h"
|
||||
#include "../../util/stringutil.h"
|
||||
|
||||
lua::luaerror::luaerror(const std::string& message) : std::runtime_error(message) {
|
||||
|
|
@ -98,6 +99,7 @@ void lua::LuaState::createFuncs() {
|
|||
openlib("item", itemlib, 0);
|
||||
openlib("time", timelib, 0);
|
||||
openlib("file", filelib, 0);
|
||||
openlib("gui", guilib, 0);
|
||||
|
||||
addfunc("print", l_print);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue