Example #1
0
 internal static void SendReapplyDrivenProperties(RectTransform driven)
 {
     RectTransform.ReapplyDrivenProperties expr_06 = RectTransform.reapplyDrivenProperties;
     if (expr_06 != null)
     {
         expr_06(driven);
     }
 }
Example #2
0
 static LayoutRebuilder()
 {
     if (LayoutRebuilder.< > f__mg$cache0 == null)
     {
         LayoutRebuilder.< > f__mg$cache0 = new RectTransform.ReapplyDrivenProperties(LayoutRebuilder.ReapplyDrivenProperties);
     }
     RectTransform.reapplyDrivenProperties += LayoutRebuilder.< > f__mg$cache0;
 }
 public static Delegate RectTransform_ReapplyDrivenProperties(LuaFunction func)
 {
     RectTransform.ReapplyDrivenProperties d = (param0) =>
     {
         int    top = func.BeginPCall();
         IntPtr L   = func.GetLuaState();
         LuaScriptMgr.Push(L, param0);
         func.PCall(top, 1);
         func.EndPCall(top);
     };
     return(d);
 }
 static LayoutRebuilder()
 {
     LayoutRebuilder.s_Rebuilders = new ObjectPool <LayoutRebuilder>(null, delegate(LayoutRebuilder x)
     {
         x.Clear();
     });
     if (LayoutRebuilder.< > f__mg$cache0 == null)
     {
         LayoutRebuilder.< > f__mg$cache0 = new RectTransform.ReapplyDrivenProperties(LayoutRebuilder.ReapplyDrivenProperties);
     }
     RectTransform.reapplyDrivenProperties += LayoutRebuilder.< > f__mg$cache0;
 }
    private static int set_reapplyDrivenProperties(IntPtr L)
    {
        int result;

        try
        {
            if (LuaDLL.lua_isuserdata(L, 2) != 0)
            {
                EventObject eventObject = (EventObject)ToLua.ToObject(L, 2);
                if (eventObject.op == EventOp.Add)
                {
                    RectTransform.ReapplyDrivenProperties value = (RectTransform.ReapplyDrivenProperties)DelegateFactory.CreateDelegate(typeof(RectTransform.ReapplyDrivenProperties), eventObject.func);
                    RectTransform.reapplyDrivenProperties += value;
                }
                else if (eventObject.op == EventOp.Sub)
                {
                    RectTransform.ReapplyDrivenProperties reapplyDrivenProperties = (RectTransform.ReapplyDrivenProperties)LuaMisc.GetEventHandler(null, typeof(RectTransform), "reapplyDrivenProperties");
                    Delegate[] invocationList = reapplyDrivenProperties.GetInvocationList();
                    LuaState   luaState       = LuaState.Get(L);
                    for (int i = 0; i < invocationList.Length; i++)
                    {
                        reapplyDrivenProperties = (RectTransform.ReapplyDrivenProperties)invocationList[i];
                        LuaDelegate luaDelegate = reapplyDrivenProperties.Target as LuaDelegate;
                        if (luaDelegate != null && luaDelegate.func == eventObject.func)
                        {
                            RectTransform.reapplyDrivenProperties -= reapplyDrivenProperties;
                            luaState.DelayDispose(luaDelegate.func);
                            break;
                        }
                    }
                    eventObject.func.Dispose();
                }
                result = 0;
            }
            else
            {
                result = LuaDLL.luaL_throw(L, "The event 'UnityEngine.RectTransform.reapplyDrivenProperties' can only appear on the left hand side of += or -= when used outside of the type 'UnityEngine.RectTransform'");
            }
        }
        catch (Exception e)
        {
            result = LuaDLL.toluaL_exception(L, e, null);
        }
        return(result);
    }
Example #6
0
 public static Delegate UnityEngine_RectTransform_ReapplyDrivenProperties(LuaFunction func, LuaTable self, bool flag)
 {
     if (func == null)
     {
         return(new RectTransform.ReapplyDrivenProperties(delegate(RectTransform param0)
         {
         }));
     }
     if (!flag)
     {
         DelegateFactory.UnityEngine_RectTransform_ReapplyDrivenProperties_Event unityEngine_RectTransform_ReapplyDrivenProperties_Event = new DelegateFactory.UnityEngine_RectTransform_ReapplyDrivenProperties_Event(func);
         RectTransform.ReapplyDrivenProperties reapplyDrivenProperties = new RectTransform.ReapplyDrivenProperties(unityEngine_RectTransform_ReapplyDrivenProperties_Event.Call);
         unityEngine_RectTransform_ReapplyDrivenProperties_Event.method = reapplyDrivenProperties.Method;
         return(reapplyDrivenProperties);
     }
     DelegateFactory.UnityEngine_RectTransform_ReapplyDrivenProperties_Event unityEngine_RectTransform_ReapplyDrivenProperties_Event2 = new DelegateFactory.UnityEngine_RectTransform_ReapplyDrivenProperties_Event(func, self);
     RectTransform.ReapplyDrivenProperties reapplyDrivenProperties2 = new RectTransform.ReapplyDrivenProperties(unityEngine_RectTransform_ReapplyDrivenProperties_Event2.CallWithSelf);
     unityEngine_RectTransform_ReapplyDrivenProperties_Event2.method = reapplyDrivenProperties2.Method;
     return(reapplyDrivenProperties2);
 }