Beispiel #1
0
    static int MoveToFront(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1)
            {
                cs.GuiObject obj = (cs.GuiObject)ToLua.CheckObject <cs.GuiObject>(L, 1);
                obj.MoveToFront();
                return(0);
            }
            else if (count == 2)
            {
                cs.GuiObject obj  = (cs.GuiObject)ToLua.CheckObject <cs.GuiObject>(L, 1);
                cs.EGuiLayer arg0 = (cs.EGuiLayer)ToLua.CheckObject(L, 2, typeof(cs.EGuiLayer));
                obj.MoveToFront(arg0);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: cs.GuiObject.MoveToFront"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
    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));
        }
    }
Beispiel #3
0
 static int SetOpenLayer(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         cs.GuiObject obj  = (cs.GuiObject)ToLua.CheckObject <cs.GuiObject>(L, 1);
         cs.EGuiLayer arg0 = (cs.EGuiLayer)ToLua.CheckObject(L, 2, typeof(cs.EGuiLayer));
         obj.SetOpenLayer(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));
     }
 }
Beispiel #5
0
    static int get_GuiLayer(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            cs.GuiObject obj = (cs.GuiObject)o;
            cs.EGuiLayer ret = obj.GuiLayer;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index GuiLayer 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));
     }
 }