CreatePanel() публичный Метод

创建面板,请求资源管理器
public CreatePanel ( string name, LuaFunction func = null, LuaTable luaTable = null ) : void
name string
func LuaInterface.LuaFunction
luaTable LuaInterface.LuaTable
Результат void
Пример #1
0
    static int CreatePanel(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2)
            {
                LuaFramework.PanelManager obj = (LuaFramework.PanelManager)ToLua.CheckObject <LuaFramework.PanelManager>(L, 1);
                string arg0 = ToLua.CheckString(L, 2);
                obj.CreatePanel(arg0);
                return(0);
            }
            else if (count == 3)
            {
                LuaFramework.PanelManager obj = (LuaFramework.PanelManager)ToLua.CheckObject <LuaFramework.PanelManager>(L, 1);
                string      arg0 = ToLua.CheckString(L, 2);
                LuaFunction arg1 = ToLua.CheckLuaFunction(L, 3);
                obj.CreatePanel(arg0, arg1);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: LuaFramework.PanelManager.CreatePanel"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
    static int CreatePanel(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 4 && TypeChecker.CheckTypes <string, string>(L, 3))
            {
                LuaFramework.PanelManager obj = (LuaFramework.PanelManager)ToLua.CheckObject <LuaFramework.PanelManager>(L, 1);
                string arg0 = ToLua.CheckString(L, 2);
                string arg1 = ToLua.ToString(L, 3);
                string arg2 = ToLua.ToString(L, 4);
                obj.CreatePanel(arg0, arg1, arg2);
                return(0);
            }
            else if (count == 4 && TypeChecker.CheckTypes <string[], string>(L, 3))
            {
                LuaFramework.PanelManager obj = (LuaFramework.PanelManager)ToLua.CheckObject <LuaFramework.PanelManager>(L, 1);
                string   arg0 = ToLua.CheckString(L, 2);
                string[] arg1 = ToLua.ToStringArray(L, 3);
                string   arg2 = ToLua.ToString(L, 4);
                obj.CreatePanel(arg0, arg1, arg2);
                return(0);
            }
            else if (count == 5 && TypeChecker.CheckTypes <string[], string, LuaInterface.LuaFunction>(L, 3))
            {
                LuaFramework.PanelManager obj = (LuaFramework.PanelManager)ToLua.CheckObject <LuaFramework.PanelManager>(L, 1);
                string      arg0 = ToLua.CheckString(L, 2);
                string[]    arg1 = ToLua.ToStringArray(L, 3);
                string      arg2 = ToLua.ToString(L, 4);
                LuaFunction arg3 = ToLua.ToLuaFunction(L, 5);
                obj.CreatePanel(arg0, arg1, arg2, arg3);
                return(0);
            }
            else if (count == 5 && TypeChecker.CheckTypes <string, string, LuaInterface.LuaFunction>(L, 3))
            {
                LuaFramework.PanelManager obj = (LuaFramework.PanelManager)ToLua.CheckObject <LuaFramework.PanelManager>(L, 1);
                string      arg0 = ToLua.CheckString(L, 2);
                string      arg1 = ToLua.ToString(L, 3);
                string      arg2 = ToLua.ToString(L, 4);
                LuaFunction arg3 = ToLua.ToLuaFunction(L, 5);
                obj.CreatePanel(arg0, arg1, arg2, arg3);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: LuaFramework.PanelManager.CreatePanel"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
 static int CreatePanel(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         LuaFramework.PanelManager obj = (LuaFramework.PanelManager)ToLua.CheckObject(L, 1, typeof(LuaFramework.PanelManager));
         string      arg0 = ToLua.CheckString(L, 2);
         LuaFunction arg1 = ToLua.CheckLuaFunction(L, 3);
         obj.CreatePanel(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int CreatePanel(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(LuaFramework.PanelManager), typeof(string), typeof(LuaInterface.LuaFunction)))
            {
                LuaFramework.PanelManager obj = (LuaFramework.PanelManager)ToLua.ToObject(L, 1);
                string      arg0 = ToLua.ToString(L, 2);
                LuaFunction arg1 = ToLua.ToLuaFunction(L, 3);
                obj.CreatePanel(arg0, arg1);
                return(0);
            }
            else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(LuaFramework.PanelManager), typeof(string), typeof(UnityEngine.Transform), typeof(System.Action <UnityEngine.GameObject>)))
            {
                LuaFramework.PanelManager obj = (LuaFramework.PanelManager)ToLua.ToObject(L, 1);
                string arg0 = ToLua.ToString(L, 2);
                UnityEngine.Transform arg1 = (UnityEngine.Transform)ToLua.ToObject(L, 3);
                System.Action <UnityEngine.GameObject> arg2 = null;
                LuaTypes funcType4 = LuaDLL.lua_type(L, 4);

                if (funcType4 != LuaTypes.LUA_TFUNCTION)
                {
                    arg2 = (System.Action <UnityEngine.GameObject>)ToLua.ToObject(L, 4);
                }
                else
                {
                    LuaFunction func = ToLua.ToLuaFunction(L, 4);
                    arg2 = DelegateFactory.CreateDelegate(typeof(System.Action <UnityEngine.GameObject>), func) as System.Action <UnityEngine.GameObject>;
                }

                obj.CreatePanel(arg0, arg1, arg2);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: LuaFramework.PanelManager.CreatePanel"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }