Exemplo n.º 1
0
    static int ResetOrderInLayer(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2)
            {
                cs.GuiManager obj  = (cs.GuiManager)ToLua.CheckObject <cs.GuiManager>(L, 1);
                cs.EGuiLayer  arg0 = (cs.EGuiLayer)ToLua.CheckObject(L, 2, typeof(cs.EGuiLayer));
                obj.ResetOrderInLayer(arg0);
                return(0);
            }
            else if (count == 3)
            {
                cs.GuiManager obj  = (cs.GuiManager)ToLua.CheckObject <cs.GuiManager>(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, arg1);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: cs.GuiManager.ResetOrderInLayer"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Exemplo n.º 2
0
 static int DestroyGuiScene(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         cs.GuiManager obj  = (cs.GuiManager)ToLua.CheckObject <cs.GuiManager>(L, 1);
         string        arg0 = ToLua.CheckString(L, 2);
         obj.DestroyGuiScene(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 3
0
    static int Get(IntPtr L)
    {
        try
        {
            ToLua.CheckArgsCount(L, 0);
            cs.GuiManager o = cs.Singleton <cs.GuiManager> .Get();

            ToLua.PushObject(L, o);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Exemplo n.º 4
0
 static int GetMaxOrderInLayer(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         cs.GuiManager obj  = (cs.GuiManager)ToLua.CheckObject <cs.GuiManager>(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));
     }
 }
Exemplo n.º 5
0
 static int CreateGuiScene(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.CreateGuiScene(arg0);
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 6
0
    static int get_UIRoot(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            cs.GuiManager          obj = (cs.GuiManager)o;
            UnityEngine.GameObject ret = obj.UIRoot;
            ToLua.PushSealed(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index UIRoot on a nil value"));
        }
    }
Exemplo n.º 7
0
    static int _Createcs_GuiManager(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                cs.GuiManager obj = new cs.GuiManager();
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: cs.GuiManager.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }