Example #1
0
    static int CreatePanel(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 3);
        SimpleFramework.Manager.PanelManager obj = (SimpleFramework.Manager.PanelManager)LuaScriptMgr.GetUnityObjectSelf(L, 1, "SimpleFramework.Manager.PanelManager");
        string      arg0 = LuaScriptMgr.GetLuaString(L, 2);
        LuaFunction arg1 = LuaScriptMgr.GetLuaFunction(L, 3);

        obj.CreatePanel(arg0, arg1);
        return(0);
    }
Example #2
0
    static int CreatePanel(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

        if (count == 2)
        {
            SimpleFramework.Manager.PanelManager obj = (SimpleFramework.Manager.PanelManager)LuaScriptMgr.GetUnityObjectSelf(L, 1, "SimpleFramework.Manager.PanelManager");
            string arg0 = LuaScriptMgr.GetLuaString(L, 2);
            obj.CreatePanel(arg0);
            return(0);
        }
        else if (count == 3)
        {
            SimpleFramework.Manager.PanelManager obj = (SimpleFramework.Manager.PanelManager)LuaScriptMgr.GetUnityObjectSelf(L, 1, "SimpleFramework.Manager.PanelManager");
            string arg0 = LuaScriptMgr.GetLuaString(L, 2);
            bool   arg1 = LuaScriptMgr.GetBoolean(L, 3);
            obj.CreatePanel(arg0, arg1);
            return(0);
        }
        else if (count == 4 && LuaScriptMgr.CheckTypes(L, 1, typeof(SimpleFramework.Manager.PanelManager), typeof(string), typeof(bool), typeof(LuaInterface.LuaFunction)))
        {
            SimpleFramework.Manager.PanelManager obj = (SimpleFramework.Manager.PanelManager)LuaScriptMgr.GetUnityObjectSelf(L, 1, "SimpleFramework.Manager.PanelManager");
            string      arg0 = LuaScriptMgr.GetString(L, 2);
            bool        arg1 = LuaDLL.lua_toboolean(L, 3);
            LuaFunction arg2 = LuaScriptMgr.ToLuaFunction(L, 4);
            obj.CreatePanel(arg0, arg1, arg2);
            return(0);
        }
        else if (count == 4 && LuaScriptMgr.CheckTypes(L, 1, typeof(SimpleFramework.Manager.PanelManager), typeof(string), typeof(bool), typeof(bool)))
        {
            SimpleFramework.Manager.PanelManager obj = (SimpleFramework.Manager.PanelManager)LuaScriptMgr.GetUnityObjectSelf(L, 1, "SimpleFramework.Manager.PanelManager");
            string arg0 = LuaScriptMgr.GetString(L, 2);
            bool   arg1 = LuaDLL.lua_toboolean(L, 3);
            bool   arg2 = LuaDLL.lua_toboolean(L, 4);
            obj.CreatePanel(arg0, arg1, arg2);
            return(0);
        }
        else if (count == 5)
        {
            SimpleFramework.Manager.PanelManager obj = (SimpleFramework.Manager.PanelManager)LuaScriptMgr.GetUnityObjectSelf(L, 1, "SimpleFramework.Manager.PanelManager");
            string      arg0 = LuaScriptMgr.GetLuaString(L, 2);
            bool        arg1 = LuaScriptMgr.GetBoolean(L, 3);
            bool        arg2 = LuaScriptMgr.GetBoolean(L, 4);
            LuaFunction arg3 = LuaScriptMgr.GetLuaFunction(L, 5);
            obj.CreatePanel(arg0, arg1, arg2, arg3);
            return(0);
        }
        else
        {
            LuaDLL.luaL_error(L, "invalid arguments to method: SimpleFramework.Manager.PanelManager.CreatePanel");
        }

        return(0);
    }