コード例 #1
0
        static StackObject *set_clipOffset_7(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.Vector2 @value = new UnityEngine.Vector2();
            if (ILRuntime.Runtime.Generated.CLRBindings.s_UnityEngine_Vector2_Binding_Binder != null)
            {
                ILRuntime.Runtime.Generated.CLRBindings.s_UnityEngine_Vector2_Binding_Binder.ParseValue(ref @value, __intp, ptr_of_this_method, __mStack, true);
            }
            else
            {
                @value = (UnityEngine.Vector2) typeof(UnityEngine.Vector2).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
                __intp.Free(ptr_of_this_method);
            }

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            global::UIPanel instance_of_this_method = (global::UIPanel)typeof(global::UIPanel).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));

            __intp.Free(ptr_of_this_method);

            instance_of_this_method.clipOffset = value;

            return(__ret);
        }
コード例 #2
0
    // Token: 0x06004E05 RID: 19973 RVA: 0x00137900 File Offset: 0x00135B00
    public static global::UIPanel Find(Transform trans, bool createIfMissing)
    {
        Transform       transform = trans;
        global::UIPanel uipanel   = null;

        while (uipanel == null && trans != null)
        {
            uipanel = trans.GetComponent <global::UIPanel>();
            if (uipanel != null)
            {
                break;
            }
            if (trans.parent == null)
            {
                break;
            }
            trans = trans.parent;
        }
        if (createIfMissing && uipanel == null && trans != transform)
        {
            uipanel = trans.gameObject.AddComponent <global::UIPanel>();
            global::UIPanel.SetChildLayer(uipanel.cachedTransform, uipanel.gameObject.layer);
        }
        return(uipanel);
    }
コード例 #3
0
 // Token: 0x06004E10 RID: 19984 RVA: 0x00137B54 File Offset: 0x00135D54
 public static void PanelDisabled(global::UIPanel panel)
 {
     if (global::UIPanel.Global.noGlobal)
     {
         return;
     }
     global::UIPanel.Global.g.allEnabled.Remove(panel);
 }
コード例 #4
0
        static StackObject *AssignFromStack_panel_0(ref object o, ILIntepreter __intp, StackObject *ptr_of_this_method, IList <object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            global::UIPanel @panel = (global::UIPanel)typeof(global::UIPanel).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));

            ((global::ParticleSystemUIComponent)o).panel = @panel;
            return(ptr_of_this_method);
        }
コード例 #5
0
 // Token: 0x06004E09 RID: 19977 RVA: 0x00137A30 File Offset: 0x00135C30
 internal static void UnregisterHotSpot(global::UIPanel panel, global::UIHotSpot hotSpot)
 {
     if (panel.mHotSpots == null || !panel.mHotSpots.Remove(hotSpot))
     {
         return;
     }
     if (panel.enabled)
     {
         hotSpot.OnPanelDisable();
     }
 }
コード例 #6
0
 // Token: 0x06004E0D RID: 19981 RVA: 0x00137A8C File Offset: 0x00135C8C
 public static void RegisterPanel(global::UIPanel panel)
 {
     if (global::UIPanel.Global.noGlobal)
     {
         return;
     }
     global::UIGlobal.EnsureGlobal();
     if (panel.globalIndex == -1)
     {
         panel.globalIndex = global::UIPanel.Global.g.allPanels.Count;
         global::UIPanel.Global.g.allPanels.Add(panel);
     }
 }
コード例 #7
0
        static StackObject *Refresh_9(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.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);
            global::UIPanel instance_of_this_method = (global::UIPanel)typeof(global::UIPanel).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));

            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Refresh();

            return(__ret);
        }
コード例 #8
0
        static StackObject *get_baseClipRegion_8(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.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);
            global::UIPanel instance_of_this_method = (global::UIPanel)typeof(global::UIPanel).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));

            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.baseClipRegion;

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
コード例 #9
0
        static StackObject *get_depth_10(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.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);
            global::UIPanel instance_of_this_method = (global::UIPanel)typeof(global::UIPanel).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));

            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.depth;

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value      = result_of_this_method;
            return(__ret + 1);
        }
コード例 #10
0
 // Token: 0x06004E08 RID: 19976 RVA: 0x001379E0 File Offset: 0x00135BE0
 internal static void RegisterHotSpot(global::UIPanel panel, global::UIHotSpot hotSpot)
 {
     if (panel.mHotSpots == null)
     {
         panel.mHotSpots = new HashSet <global::UIHotSpot>();
     }
     if (panel.mHotSpots.Add(hotSpot))
     {
         if (panel.enabled)
         {
             hotSpot.OnPanelEnable();
         }
         else
         {
             hotSpot.OnPanelDisable();
         }
     }
 }
コード例 #11
0
        static StackObject *set_depth_3(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Int32 @value = ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            global::UIPanel instance_of_this_method = (global::UIPanel)typeof(global::UIPanel).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));

            __intp.Free(ptr_of_this_method);

            instance_of_this_method.depth = value;

            return(__ret);
        }
コード例 #12
0
 // Token: 0x06004E0E RID: 19982 RVA: 0x00137AC8 File Offset: 0x00135CC8
 public static void UnregisterPanel(global::UIPanel panel)
 {
     if (global::UIPanel.Global.noGlobal)
     {
         return;
     }
     if (panel.globalIndex != -1)
     {
         global::UIPanel.Global.g.allPanels.RemoveAt(panel.globalIndex);
         int i     = panel.globalIndex;
         int count = global::UIPanel.Global.g.allPanels.Count;
         while (i < count)
         {
             global::UIPanel.Global.g.allPanels[i].globalIndex = i;
             i++;
         }
         panel.globalIndex = -1;
     }
 }
コード例 #13
0
        static StackObject *SetPause_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 3);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Boolean @value = ptr_of_this_method->Value == 1;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            global::UIPanel.PauseType @type = (global::UIPanel.PauseType) typeof(global::UIPanel.PauseType).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            global::UIPanel instance_of_this_method = (global::UIPanel)typeof(global::UIPanel).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));

            __intp.Free(ptr_of_this_method);

            instance_of_this_method.SetPause(@type, @value);

            return(__ret);
        }
コード例 #14
0
        static StackObject *get_clipOffset_11(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.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);
            global::UIPanel instance_of_this_method = (global::UIPanel)typeof(global::UIPanel).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));

            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.clipOffset;

            if (ILRuntime.Runtime.Generated.CLRBindings.s_UnityEngine_Vector2_Binding_Binder != null)
            {
                ILRuntime.Runtime.Generated.CLRBindings.s_UnityEngine_Vector2_Binding_Binder.PushValue(ref result_of_this_method, __intp, __ret, __mStack);
                return(__ret + 1);
            }
            else
            {
                return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
            }
        }
コード例 #15
0
    // Token: 0x06004E07 RID: 19975 RVA: 0x001379B4 File Offset: 0x00135BB4
    public static global::UIPanel FindRoot(Transform trans)
    {
        global::UIPanel uipanel = global::UIPanel.Find(trans);

        return((!uipanel) ? null : uipanel.RootPanel);
    }