diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2018-03-27 22:42:57 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2018-03-27 22:42:57 -0400 |
| commit | 6cf098e3450ba99c238cf0499c6cecaa246f4d50 (patch) | |
| tree | 175b84e32a3cf24f3fb7356825827f6611bab1ed /src/client/lua_api/gui/iguielement.cpp | |
| parent | 2831e232b886c5e3b0791ea5192f9e5194e6abf3 (diff) | |
| download | brokengine-6cf098e3450ba99c238cf0499c6cecaa246f4d50.tar.gz brokengine-6cf098e3450ba99c238cf0499c6cecaa246f4d50.tar.bz2 brokengine-6cf098e3450ba99c238cf0499c6cecaa246f4d50.zip | |
Fixed the procedural textures
Procedural textures are now completely working.
Diffstat (limited to 'src/client/lua_api/gui/iguielement.cpp')
| -rw-r--r-- | src/client/lua_api/gui/iguielement.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/client/lua_api/gui/iguielement.cpp b/src/client/lua_api/gui/iguielement.cpp index cb395af..c01fa70 100644 --- a/src/client/lua_api/gui/iguielement.cpp +++ b/src/client/lua_api/gui/iguielement.cpp @@ -9,6 +9,7 @@ extern "C" { using namespace irr; using namespace core; +using namespace gui; static LIGUIElement* toiguielement(lua_State* L,int index){ LIGUIElement* ret = (LIGUIElement*)lua_touserdata(L,index); @@ -91,3 +92,12 @@ int guisethandeler(lua_State* L){ } return 0; } + +//ud_iguielement +int guigetid(lua_State* L){ + IGUIElement* el = (IGUIElement*)lua_touserdata(L,-1); + lua_pop(L,1); + int id = el->getID(); + lua_pushnumber(L,id); + return 1; +} |
