static public int get_minWidth(IntPtr l) { try { #if DEBUG var method = System.Reflection.MethodBase.GetCurrentMethod(); string methodName = GetMethodName(method); #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.BeginSample(methodName); #else Profiler.BeginSample(methodName); #endif #endif UnityEngine.UI.ILayoutElement self = (UnityEngine.UI.ILayoutElement)checkSelf(l); pushValue(l, true); pushValue(l, self.minWidth); return(2); } catch (Exception e) { return(error(l, e)); } #if DEBUG finally { #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.EndSample(); #else Profiler.EndSample(); #endif } #endif }
static public int get_preferredHeight(IntPtr l) { try { UnityEngine.UI.ILayoutElement self = (UnityEngine.UI.ILayoutElement)checkSelf(l); pushValue(l, true); pushValue(l, self.preferredHeight); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int CalculateLayoutInputHorizontal(IntPtr l) { try { UnityEngine.UI.ILayoutElement self = (UnityEngine.UI.ILayoutElement)checkSelf(l); self.CalculateLayoutInputHorizontal(); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int get_flexibleWidth(IntPtr l) { try { UnityEngine.UI.ILayoutElement self = (UnityEngine.UI.ILayoutElement)checkSelf(l); pushValue(l, true); pushValue(l, self.flexibleWidth); return(2); } catch (Exception e) { return(error(l, e)); } }
static int _g_get_layoutPriority(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { UnityEngine.UI.ILayoutElement __cl_gen_to_be_invoked = (UnityEngine.UI.ILayoutElement)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, __cl_gen_to_be_invoked.layoutPriority); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static StackObject *CalculateLayoutInputVertical_1(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.UI.ILayoutElement instance_of_this_method = (UnityEngine.UI.ILayoutElement) typeof(UnityEngine.UI.ILayoutElement).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.CalculateLayoutInputVertical(); return(__ret); }
static StackObject *get_minWidth_2(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.UI.ILayoutElement instance_of_this_method = (UnityEngine.UI.ILayoutElement) typeof(UnityEngine.UI.ILayoutElement).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.minWidth; __ret->ObjectType = ObjectTypes.Float; *(float *)&__ret->Value = result_of_this_method; return(__ret + 1); }
static int _m_CalculateLayoutInputVertical(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.UI.ILayoutElement __cl_gen_to_be_invoked = (UnityEngine.UI.ILayoutElement)translator.FastGetCSObj(L, 1); try { { __cl_gen_to_be_invoked.CalculateLayoutInputVertical( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
public float __Gen_Delegate_Imp28(UnityEngine.UI.ILayoutElement p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) { #endif RealStatePtr L = luaEnv.rawL; int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); ObjectTranslator translator = luaEnv.translator; translator.PushAny(L, p0); PCall(L, 1, 1, errFunc); float __gen_ret = (float)LuaAPI.lua_tonumber(L, errFunc + 1); LuaAPI.lua_settop(L, errFunc - 1); return(__gen_ret); #if THREAD_SAFE || HOTFIX_ENABLE } #endif }
static internal float Lua_System_Func_2_UnityEngine_UI_ILayoutElement_float(LuaFunction ld, UnityEngine.UI.ILayoutElement a1) { IntPtr l = ld.L; int error = pushTry(l); pushValue(l, a1); ld.pcall(1, error); float ret; checkType(l, error + 1, out ret); LuaDLL.lua_settop(l, error - 1); return(ret); }
static StackObject *GetLayoutProperty_10(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); UnityEngine.UI.ILayoutElement @source = (UnityEngine.UI.ILayoutElement) typeof(UnityEngine.UI.ILayoutElement).CheckCLRTypes(__intp.RetriveObject(ptr_of_this_method, __mStack)); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.Single @defaultValue = *(float *)&ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 3); System.Func <UnityEngine.UI.ILayoutElement, System.Single> @property = (System.Func <UnityEngine.UI.ILayoutElement, System.Single>) typeof(System.Func <UnityEngine.UI.ILayoutElement, System.Single>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); ptr_of_this_method = ILIntepreter.Minus(__esp, 4); UnityEngine.RectTransform @rect = (UnityEngine.RectTransform) typeof(UnityEngine.RectTransform).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); var result_of_this_method = UnityEngine.UI.LayoutUtility.GetLayoutProperty(@rect, @property, @defaultValue, out @source); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); switch (ptr_of_this_method->ObjectType) { case ObjectTypes.StackObjectReference: { var ___dst = *(StackObject **)&ptr_of_this_method->Value; object ___obj = @source; if (___dst->ObjectType >= ObjectTypes.Object) { if (___obj is CrossBindingAdaptorType) { ___obj = ((CrossBindingAdaptorType)___obj).ILInstance; } __mStack[___dst->Value] = ___obj; } else { ILIntepreter.UnboxObject(___dst, ___obj, __mStack, __domain); } } break; case ObjectTypes.FieldReference: { var ___obj = __mStack[ptr_of_this_method->Value]; if (___obj is ILTypeInstance) { ((ILTypeInstance)___obj)[ptr_of_this_method->ValueLow] = @source; } else { var ___type = __domain.GetType(___obj.GetType()) as CLRType; ___type.SetFieldValue(ptr_of_this_method->ValueLow, ref ___obj, @source); } } break; case ObjectTypes.StaticFieldReference: { var ___type = __domain.GetType(ptr_of_this_method->Value); if (___type is ILType) { ((ILType)___type).StaticInstance[ptr_of_this_method->ValueLow] = @source; } else { ((CLRType)___type).SetStaticFieldValue(ptr_of_this_method->ValueLow, @source); } } break; case ObjectTypes.ArrayReference: { var instance_of_arrayReference = __mStack[ptr_of_this_method->Value] as UnityEngine.UI.ILayoutElement[]; instance_of_arrayReference[ptr_of_this_method->ValueLow] = @source; } break; } __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 3); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 4); __intp.Free(ptr_of_this_method); __ret->ObjectType = ObjectTypes.Float; *(float *)&__ret->Value = result_of_this_method; return(__ret + 1); }