static int CloseAllLoadedUIForms(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(UnityGameFramework.Runtime.UIComponent)))
            {
                UnityGameFramework.Runtime.UIComponent obj = (UnityGameFramework.Runtime.UIComponent)ToLua.ToObject(L, 1);
                obj.CloseAllLoadedUIForms();
                return(0);
            }
            else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityGameFramework.Runtime.UIComponent), typeof(object)))
            {
                UnityGameFramework.Runtime.UIComponent obj = (UnityGameFramework.Runtime.UIComponent)ToLua.ToObject(L, 1);
                object arg0 = ToLua.ToVarObject(L, 2);
                obj.CloseAllLoadedUIForms(arg0);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: UnityGameFramework.Runtime.UIComponent.CloseAllLoadedUIForms"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
    static int AddUIGroup(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityGameFramework.Runtime.UIComponent), typeof(string)))
            {
                UnityGameFramework.Runtime.UIComponent obj = (UnityGameFramework.Runtime.UIComponent)ToLua.ToObject(L, 1);
                string arg0 = ToLua.ToString(L, 2);
                bool   o    = obj.AddUIGroup(arg0);
                LuaDLL.lua_pushboolean(L, o);
                return(1);
            }
            else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityGameFramework.Runtime.UIComponent), typeof(string), typeof(int)))
            {
                UnityGameFramework.Runtime.UIComponent obj = (UnityGameFramework.Runtime.UIComponent)ToLua.ToObject(L, 1);
                string arg0 = ToLua.ToString(L, 2);
                int    arg1 = (int)LuaDLL.lua_tonumber(L, 3);
                bool   o    = obj.AddUIGroup(arg0, arg1);
                LuaDLL.lua_pushboolean(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: UnityGameFramework.Runtime.UIComponent.AddUIGroup"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
    static int RefocusUIForm(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityGameFramework.Runtime.UIComponent), typeof(UnityGameFramework.Runtime.UIForm)))
            {
                UnityGameFramework.Runtime.UIComponent obj  = (UnityGameFramework.Runtime.UIComponent)ToLua.ToObject(L, 1);
                UnityGameFramework.Runtime.UIForm      arg0 = (UnityGameFramework.Runtime.UIForm)ToLua.ToObject(L, 2);
                obj.RefocusUIForm(arg0);
                return(0);
            }
            else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityGameFramework.Runtime.UIComponent), typeof(UnityGameFramework.Runtime.UIForm), typeof(object)))
            {
                UnityGameFramework.Runtime.UIComponent obj  = (UnityGameFramework.Runtime.UIComponent)ToLua.ToObject(L, 1);
                UnityGameFramework.Runtime.UIForm      arg0 = (UnityGameFramework.Runtime.UIForm)ToLua.ToObject(L, 2);
                object arg1 = ToLua.ToVarObject(L, 3);
                obj.RefocusUIForm(arg0, arg1);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: UnityGameFramework.Runtime.UIComponent.RefocusUIForm"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
    static int GetUIForm(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityGameFramework.Runtime.UIComponent), typeof(string)))
            {
                UnityGameFramework.Runtime.UIComponent obj = (UnityGameFramework.Runtime.UIComponent)ToLua.ToObject(L, 1);
                string arg0 = ToLua.ToString(L, 2);
                UnityGameFramework.Runtime.UIForm o = obj.GetUIForm(arg0);
                ToLua.Push(L, o);
                return(1);
            }
            else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityGameFramework.Runtime.UIComponent), typeof(int)))
            {
                UnityGameFramework.Runtime.UIComponent obj = (UnityGameFramework.Runtime.UIComponent)ToLua.ToObject(L, 1);
                int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
                UnityGameFramework.Runtime.UIForm o = obj.GetUIForm(arg0);
                ToLua.Push(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: UnityGameFramework.Runtime.UIComponent.GetUIForm"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
    static int OpenUIForm(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityGameFramework.Runtime.UIComponent), typeof(string), typeof(string)))
            {
                UnityGameFramework.Runtime.UIComponent obj = (UnityGameFramework.Runtime.UIComponent)ToLua.ToObject(L, 1);
                string arg0 = ToLua.ToString(L, 2);
                string arg1 = ToLua.ToString(L, 3);
                int    o    = obj.OpenUIForm(arg0, arg1);
                LuaDLL.lua_pushinteger(L, o);
                return(1);
            }
            else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(UnityGameFramework.Runtime.UIComponent), typeof(string), typeof(string), typeof(bool)))
            {
                UnityGameFramework.Runtime.UIComponent obj = (UnityGameFramework.Runtime.UIComponent)ToLua.ToObject(L, 1);
                string arg0 = ToLua.ToString(L, 2);
                string arg1 = ToLua.ToString(L, 3);
                bool   arg2 = LuaDLL.lua_toboolean(L, 4);
                int    o    = obj.OpenUIForm(arg0, arg1, arg2);
                LuaDLL.lua_pushinteger(L, o);
                return(1);
            }
            else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(UnityGameFramework.Runtime.UIComponent), typeof(string), typeof(string), typeof(object)))
            {
                UnityGameFramework.Runtime.UIComponent obj = (UnityGameFramework.Runtime.UIComponent)ToLua.ToObject(L, 1);
                string arg0 = ToLua.ToString(L, 2);
                string arg1 = ToLua.ToString(L, 3);
                object arg2 = ToLua.ToVarObject(L, 4);
                int    o    = obj.OpenUIForm(arg0, arg1, arg2);
                LuaDLL.lua_pushinteger(L, o);
                return(1);
            }
            else if (count == 5 && TypeChecker.CheckTypes(L, 1, typeof(UnityGameFramework.Runtime.UIComponent), typeof(string), typeof(string), typeof(bool), typeof(object)))
            {
                UnityGameFramework.Runtime.UIComponent obj = (UnityGameFramework.Runtime.UIComponent)ToLua.ToObject(L, 1);
                string arg0 = ToLua.ToString(L, 2);
                string arg1 = ToLua.ToString(L, 3);
                bool   arg2 = LuaDLL.lua_toboolean(L, 4);
                object arg3 = ToLua.ToVarObject(L, 5);
                int    o    = obj.OpenUIForm(arg0, arg1, arg2, arg3);
                LuaDLL.lua_pushinteger(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: UnityGameFramework.Runtime.UIComponent.OpenUIForm"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
 static int CloseAllLoadingUIForms(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UnityGameFramework.Runtime.UIComponent obj = (UnityGameFramework.Runtime.UIComponent)ToLua.CheckObject(L, 1, typeof(UnityGameFramework.Runtime.UIComponent));
         obj.CloseAllLoadingUIForms();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int GetAllUIGroups(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UnityGameFramework.Runtime.UIComponent obj = (UnityGameFramework.Runtime.UIComponent)ToLua.CheckObject(L, 1, typeof(UnityGameFramework.Runtime.UIComponent));
         GameFramework.UI.IUIGroup[]            o   = obj.GetAllUIGroups();
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int GetUIGroup(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UnityGameFramework.Runtime.UIComponent obj = (UnityGameFramework.Runtime.UIComponent)ToLua.CheckObject(L, 1, typeof(UnityGameFramework.Runtime.UIComponent));
         string arg0 = ToLua.CheckString(L, 2);
         GameFramework.UI.IUIGroup o = obj.GetUIGroup(arg0);
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int SetUIFormInstancePriority(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         UnityGameFramework.Runtime.UIComponent obj  = (UnityGameFramework.Runtime.UIComponent)ToLua.CheckObject(L, 1, typeof(UnityGameFramework.Runtime.UIComponent));
         UnityGameFramework.Runtime.UIForm      arg0 = (UnityGameFramework.Runtime.UIForm)ToLua.CheckUnityObject(L, 2, typeof(UnityGameFramework.Runtime.UIForm));
         int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
         obj.SetUIFormInstancePriority(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int HasUIGroup(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UnityGameFramework.Runtime.UIComponent obj = (UnityGameFramework.Runtime.UIComponent)ToLua.CheckObject(L, 1, typeof(UnityGameFramework.Runtime.UIComponent));
         string arg0 = ToLua.CheckString(L, 2);
         bool   o    = obj.HasUIGroup(arg0);
         LuaDLL.lua_pushboolean(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int IsValidUIForm(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UnityGameFramework.Runtime.UIComponent obj  = (UnityGameFramework.Runtime.UIComponent)ToLua.CheckObject(L, 1, typeof(UnityGameFramework.Runtime.UIComponent));
         UnityGameFramework.Runtime.UIForm      arg0 = (UnityGameFramework.Runtime.UIForm)ToLua.CheckUnityObject(L, 2, typeof(UnityGameFramework.Runtime.UIForm));
         bool o = obj.IsValidUIForm(arg0);
         LuaDLL.lua_pushboolean(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int set_InstancePriority(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityGameFramework.Runtime.UIComponent obj = (UnityGameFramework.Runtime.UIComponent)o;
            int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
            obj.InstancePriority = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index InstancePriority on a nil value" : e.Message));
        }
    }
    static int get_InstancePriority(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityGameFramework.Runtime.UIComponent obj = (UnityGameFramework.Runtime.UIComponent)o;
            int ret = obj.InstancePriority;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index InstancePriority on a nil value" : e.Message));
        }
    }