static int LoadGuiObject(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2) { cs.GuiScene obj = (cs.GuiScene)ToLua.CheckObject <cs.GuiScene>(L, 1); string arg0 = ToLua.CheckString(L, 2); cs.GuiObject o = obj.LoadGuiObject(arg0); ToLua.Push(L, o); return(1); } else if (count == 3) { cs.GuiScene obj = (cs.GuiScene)ToLua.CheckObject <cs.GuiScene>(L, 1); string arg0 = ToLua.CheckString(L, 2); string arg1 = ToLua.CheckString(L, 3); cs.GuiObject o = obj.LoadGuiObject(arg0, arg1); ToLua.Push(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: cs.GuiScene.LoadGuiObject")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public GuiScene CreateGuiScene(string a_strName) { GuiScene guiScene = GetGuiScene(a_strName); if (guiScene == null) { guiScene = new GuiScene(a_strName); m_listGuiScene.Add(guiScene); } return(guiScene); }
static int Clear(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); cs.GuiScene obj = (cs.GuiScene)ToLua.CheckObject <cs.GuiScene>(L, 1); obj.Clear(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int SetInitCallback(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); cs.GuiScene obj = (cs.GuiScene)ToLua.CheckObject <cs.GuiScene>(L, 1); LuaFunction arg0 = ToLua.CheckLuaFunction(L, 2); obj.SetInitCallback(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int UnloadGuiObject(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); cs.GuiScene obj = (cs.GuiScene)ToLua.CheckObject <cs.GuiScene>(L, 1); string arg0 = ToLua.CheckString(L, 2); obj.UnloadGuiObject(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetMaxOrderInLayer(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); cs.GuiScene obj = (cs.GuiScene)ToLua.CheckObject <cs.GuiScene>(L, 1); cs.EGuiLayer arg0 = (cs.EGuiLayer)ToLua.CheckObject(L, 2, typeof(cs.EGuiLayer)); int o = obj.GetMaxOrderInLayer(arg0); LuaDLL.lua_pushinteger(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetGuiScene(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); cs.GuiManager obj = (cs.GuiManager)ToLua.CheckObject <cs.GuiManager>(L, 1); string arg0 = ToLua.CheckString(L, 2); cs.GuiScene o = obj.GetGuiScene(arg0); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_Name(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); cs.GuiScene obj = (cs.GuiScene)o; string ret = obj.Name; LuaDLL.lua_pushstring(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Name on a nil value")); } }
static int ResetOrderInLayer(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); cs.GuiScene obj = (cs.GuiScene)ToLua.CheckObject <cs.GuiScene>(L, 1); cs.EGuiLayer arg0 = (cs.EGuiLayer)ToLua.CheckObject(L, 2, typeof(cs.EGuiLayer)); int arg1 = (int)LuaDLL.luaL_checknumber(L, 3); obj.ResetOrderInLayer(arg0, ref arg1); LuaDLL.lua_pushinteger(L, arg1); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int _Createcs_GuiScene(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1) { string arg0 = ToLua.CheckString(L, 1); cs.GuiScene obj = new cs.GuiScene(arg0); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: cs.GuiScene.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }