static StackObject *SetInsetAndSizeFromParentEdge_19(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, 4);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Single @size = *(float *)&ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.Single @inset = *(float *)&ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            UnityEngine.RectTransform.Edge @edge = (UnityEngine.RectTransform.Edge) typeof(UnityEngine.RectTransform.Edge).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
            UnityEngine.RectTransform instance_of_this_method;
            instance_of_this_method = (UnityEngine.RectTransform) typeof(UnityEngine.RectTransform).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.SetInsetAndSizeFromParentEdge(@edge, @inset, @size);

            return(__ret);
        }
    static int IntToEnum(IntPtr L)
    {
        int arg0 = (int)LuaDLL.lua_tonumber(L, 1);

        UnityEngine.RectTransform.Edge o = (UnityEngine.RectTransform.Edge)arg0;
        ToLua.Push(L, o);
        return(1);
    }
Esempio n. 3
0
    static int SetInsetAndSizeFromParentEdge(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 4);
        RectTransform obj = LuaScriptMgr.GetUnityObject <RectTransform>(L, 1);

        UnityEngine.RectTransform.Edge arg0 = LuaScriptMgr.GetNetObject <UnityEngine.RectTransform.Edge>(L, 2);
        float arg1 = (float)LuaScriptMgr.GetNumber(L, 3);
        float arg2 = (float)LuaScriptMgr.GetNumber(L, 4);

        obj.SetInsetAndSizeFromParentEdge(arg0, arg1, arg2);
        return(0);
    }
 static int QPYX_SetInsetAndSizeFromParentEdge_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 4);
         UnityEngine.RectTransform      QPYX_obj_YXQP  = (UnityEngine.RectTransform)ToLua.CheckObject(L_YXQP, 1, typeof(UnityEngine.RectTransform));
         UnityEngine.RectTransform.Edge QPYX_arg0_YXQP = (UnityEngine.RectTransform.Edge)ToLua.CheckObject(L_YXQP, 2, typeof(UnityEngine.RectTransform.Edge));
         float QPYX_arg1_YXQP = (float)LuaDLL.luaL_checknumber(L_YXQP, 3);
         float QPYX_arg2_YXQP = (float)LuaDLL.luaL_checknumber(L_YXQP, 4);
         QPYX_obj_YXQP.SetInsetAndSizeFromParentEdge(QPYX_arg0_YXQP, QPYX_arg1_YXQP, QPYX_arg2_YXQP);
         return(0);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
Esempio n. 5
0
 static int SetInsetAndSizeFromParentEdge(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 4);
         UnityEngine.RectTransform      obj  = (UnityEngine.RectTransform)ToLua.CheckObject(L, 1, typeof(UnityEngine.RectTransform));
         UnityEngine.RectTransform.Edge arg0 = (UnityEngine.RectTransform.Edge)ToLua.CheckObject(L, 2, typeof(UnityEngine.RectTransform.Edge));
         float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
         float arg2 = (float)LuaDLL.luaL_checknumber(L, 4);
         obj.SetInsetAndSizeFromParentEdge(arg0, arg1, arg2);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static void Push(IntPtr L, UnityEngine.RectTransform.Edge arg)
 {
     ToLua.Push(L, arg);
 }
Esempio n. 7
0
        private static GraphicalElement CompareElementsByOutlyingness(GraphicalElement firstElement, GraphicalElement secondElement, Edge edge)
        {
            Rect first  = firstElement.BoundingBox;
            Rect second = secondElement.BoundingBox;

            switch (edge)
            {
            case Edge.Left:
                if (first.xMin <= second.xMin)
                {
                    return(firstElement);
                }

                break;

            case Edge.Right:
                if (first.xMax >= second.xMax)
                {
                    return(firstElement);
                }

                break;

            case Edge.Top:
                if (first.yMin <= second.yMin)
                {
                    return(firstElement);
                }

                break;

            case Edge.Bottom:
                if (first.yMax >= second.yMax)
                {
                    return(firstElement);
                }

                break;
            }

            return(secondElement);
        }