static StackObject *GetControlID_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.FocusType focus = (UnityEngine.FocusType) typeof(UnityEngine.FocusType).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = UnityEngine.GUIUtility.GetControlID(focus);

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value      = result_of_this_method;
            return(__ret + 1);
        }
Пример #2
0
 public static System.Int32 GetControlID(UnityEngine.GUIContent contents, UnityEngine.FocusType focus, UnityEngine.Rect position)
 {
     throw new NotImplementedException("This function was automatically generated by Mockery and has no real implementation yet.");
 }
    static int GetControlID(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.FocusType)))
            {
                UnityEngine.FocusType arg0 = (UnityEngine.FocusType)ToLua.ToObject(L, 1);
                int o = UnityEngine.GUIUtility.GetControlID(arg0);
                LuaDLL.lua_pushinteger(L, o);
                return(1);
            }
            else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(int), typeof(UnityEngine.FocusType)))
            {
                int arg0 = (int)LuaDLL.lua_tonumber(L, 1);
                UnityEngine.FocusType arg1 = (UnityEngine.FocusType)ToLua.ToObject(L, 2);
                int o = UnityEngine.GUIUtility.GetControlID(arg0, arg1);
                LuaDLL.lua_pushinteger(L, o);
                return(1);
            }
            else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.FocusType), typeof(UnityEngine.Rect)))
            {
                UnityEngine.FocusType arg0 = (UnityEngine.FocusType)ToLua.ToObject(L, 1);
                UnityEngine.Rect      arg1 = (UnityEngine.Rect)ToLua.ToObject(L, 2);
                int o = UnityEngine.GUIUtility.GetControlID(arg0, arg1);
                LuaDLL.lua_pushinteger(L, o);
                return(1);
            }
            else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.GUIContent), typeof(UnityEngine.FocusType)))
            {
                UnityEngine.GUIContent arg0 = (UnityEngine.GUIContent)ToLua.ToObject(L, 1);
                UnityEngine.FocusType  arg1 = (UnityEngine.FocusType)ToLua.ToObject(L, 2);
                int o = UnityEngine.GUIUtility.GetControlID(arg0, arg1);
                LuaDLL.lua_pushinteger(L, o);
                return(1);
            }
            else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.GUIContent), typeof(UnityEngine.FocusType), typeof(UnityEngine.Rect)))
            {
                UnityEngine.GUIContent arg0 = (UnityEngine.GUIContent)ToLua.ToObject(L, 1);
                UnityEngine.FocusType  arg1 = (UnityEngine.FocusType)ToLua.ToObject(L, 2);
                UnityEngine.Rect       arg2 = (UnityEngine.Rect)ToLua.ToObject(L, 3);
                int o = UnityEngine.GUIUtility.GetControlID(arg0, arg1, arg2);
                LuaDLL.lua_pushinteger(L, o);
                return(1);
            }
            else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(int), typeof(UnityEngine.FocusType), typeof(UnityEngine.Rect)))
            {
                int arg0 = (int)LuaDLL.lua_tonumber(L, 1);
                UnityEngine.FocusType arg1 = (UnityEngine.FocusType)ToLua.ToObject(L, 2);
                UnityEngine.Rect      arg2 = (UnityEngine.Rect)ToLua.ToObject(L, 3);
                int o = UnityEngine.GUIUtility.GetControlID(arg0, arg1, arg2);
                LuaDLL.lua_pushinteger(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.GUIUtility.GetControlID"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }