jestem pro
That is the question
- Joined
- Apr 20, 2013
- Messages
- 650
- Solutions
- 14
- Reaction score
- 87
Hello. How can I change this to version 0.3.6?
especially this:
getUserdata does not exist in 0.3.6
Code:
int32_t LuaScriptInterface::luaModalWindowGetId(lua_State* L)
{
// modalWindow:getId()
ModalWindow* window = getUserdata<ModalWindow>(L);
if (window) {
lua_pushnumber(L, window->id);
} else {
lua_pushnil(L);
}
return 1;
}
Code:
ModalWindow* window = getUserdata<ModalWindow>(L);