// ---------[ DATA PRESENTATION ]--------- private void PresentLogoData() { if (m_logoData.mediaType == ImageDisplayData.MediaType.None) { if (m_logoDisplay != null) { #if UNITY_EDITOR if (!Application.isPlaying) { GameObject.DestroyImmediate(m_logoDisplay.gameObject); } else #endif { GameObject.Destroy(m_logoDisplay.gameObject); } } } else if (logoPrefab != null) { if (logoDisplay == null) { m_logoDisplay = InstantiatePrefab(logoPrefab); m_logoDisplay.transform.SetSiblingIndex(0); m_logoDisplay.onClick += NotifyLogoClicked; } m_logoDisplay.data = m_logoData; } if (Application.isPlaying && this.isActiveAndEnabled) { LayoutRebuilder.MarkLayoutForRebuild(container); } }
static StackObject *Ctor_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *__ret = ILIntepreter.Minus(__esp, 0); var result_of_this_method = new UnityEngine.UI.LayoutRebuilder(); return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method)); }
public override void DisplayLoading() { ClearDisplays(); if (Application.isPlaying && this.isActiveAndEnabled) { LayoutRebuilder.MarkLayoutForRebuild(container); } }
private void LateLayoutUpdate() { if (this.isActiveAndEnabled) { StartCoroutine(EndOfFrameUpdateCoroutine()); } else { LayoutRebuilder.MarkLayoutForRebuild(container); } }
static int _g_get_transform(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { UnityEngine.UI.LayoutRebuilder __cl_gen_to_be_invoked = (UnityEngine.UI.LayoutRebuilder)translator.FastGetCSObj(L, 1); translator.Push(L, __cl_gen_to_be_invoked.transform); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static StackObject *GraphicUpdateComplete_6(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.LayoutRebuilder instance_of_this_method = (UnityEngine.UI.LayoutRebuilder) typeof(UnityEngine.UI.LayoutRebuilder).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.GraphicUpdateComplete(); return(__ret); }
static StackObject *ToString_9(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.LayoutRebuilder instance_of_this_method = (UnityEngine.UI.LayoutRebuilder) typeof(UnityEngine.UI.LayoutRebuilder).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.ToString(); return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method)); }
public override void DisplayMedia(int modId, LogoImageLocator logoLocator, IEnumerable <GalleryImageLocator> galleryImageLocators, IEnumerable <string> youTubeURLs) { ClearDisplays(); if (logoLocator != null && logoPrefab != null) { var display = InstantiatePrefab(logoPrefab); display.DisplayLogo(modId, logoLocator); display.onClick += NotifyLogoClicked; this.m_logoDisplay = display; } if (youTubeURLs != null && youTubeThumbnailPrefab != null) { foreach (string url in youTubeURLs) { var display = InstantiatePrefab(youTubeThumbnailPrefab); display.DisplayYouTubeThumbnail(modId, Utility.ExtractYouTubeIdFromURL(url)); display.onClick += NotifyYouTubeThumbnailClicked; m_youTubeDisplays.Add(display); } } if (galleryImageLocators != null && galleryImagePrefab != null) { foreach (GalleryImageLocator locator in galleryImageLocators) { var display = InstantiatePrefab(galleryImagePrefab); display.DisplayGalleryImage(modId, locator); display.onClick += NotifyGalleryImageClicked; m_galleryDisplays.Add(display); } } if (Application.isPlaying && this.isActiveAndEnabled) { LayoutRebuilder.MarkLayoutForRebuild(container); } }
static StackObject *IsDestroyed_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.LayoutRebuilder instance_of_this_method = (UnityEngine.UI.LayoutRebuilder) typeof(UnityEngine.UI.LayoutRebuilder).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.IsDestroyed(); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return(__ret + 1); }
private void PresentYouTubeData() { #if UNITY_EDITOR if (!Application.isPlaying) { foreach (ImageDisplayComponent display in m_youTubeDisplays) { GameObject.DestroyImmediate(display.gameObject); } } else #endif { foreach (ImageDisplayComponent display in m_youTubeDisplays) { GameObject.Destroy(display.gameObject); } } m_youTubeDisplays.Clear(); int siblingIndex = 0; if (logoDisplay != null) { ++siblingIndex; } if (youTubeThumbnailPrefab != null) { foreach (var imageData in m_youTubeData) { var display = InstantiatePrefab(youTubeThumbnailPrefab); display.data = imageData; display.transform.SetSiblingIndex(siblingIndex); display.onClick += NotifyYouTubeThumbnailClicked; this.m_youTubeDisplays.Add(display); ++siblingIndex; } } if (Application.isPlaying && this.isActiveAndEnabled) { LayoutRebuilder.MarkLayoutForRebuild(container); } }
static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 1) { UnityEngine.UI.LayoutRebuilder __cl_gen_ret = new UnityEngine.UI.LayoutRebuilder(); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.LayoutRebuilder constructor!")); }
static StackObject *Rebuild_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); UnityEngine.UI.CanvasUpdate @executing = (UnityEngine.UI.CanvasUpdate) typeof(UnityEngine.UI.CanvasUpdate).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.UI.LayoutRebuilder instance_of_this_method = (UnityEngine.UI.LayoutRebuilder) typeof(UnityEngine.UI.LayoutRebuilder).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.Rebuild(@executing); return(__ret); }
static StackObject *get_transform_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.UI.LayoutRebuilder instance_of_this_method = (UnityEngine.UI.LayoutRebuilder) typeof(UnityEngine.UI.LayoutRebuilder).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.transform; object obj_result_of_this_method = result_of_this_method; if (obj_result_of_this_method is CrossBindingAdaptorType) { return(ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance)); } return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method)); }
static int _m_GraphicUpdateComplete(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.UI.LayoutRebuilder __cl_gen_to_be_invoked = (UnityEngine.UI.LayoutRebuilder)translator.FastGetCSObj(L, 1); try { { __cl_gen_to_be_invoked.GraphicUpdateComplete( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_IsDestroyed(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.UI.LayoutRebuilder __cl_gen_to_be_invoked = (UnityEngine.UI.LayoutRebuilder)translator.FastGetCSObj(L, 1); try { { bool __cl_gen_ret = __cl_gen_to_be_invoked.IsDestroyed( ); LuaAPI.lua_pushboolean(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_Rebuild(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.UI.LayoutRebuilder __cl_gen_to_be_invoked = (UnityEngine.UI.LayoutRebuilder)translator.FastGetCSObj(L, 1); try { { UnityEngine.UI.CanvasUpdate executing; translator.Get(L, 2, out executing); __cl_gen_to_be_invoked.Rebuild(executing); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_ToString(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.UI.LayoutRebuilder gen_to_be_invoked = (UnityEngine.UI.LayoutRebuilder)translator.FastGetCSObj(L, 1); { var gen_ret = gen_to_be_invoked.ToString( ); LuaAPI.lua_pushstring(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
private void PresentGalleryData() { #if UNITY_EDITOR if (!Application.isPlaying) { foreach (ImageDisplayComponent display in m_galleryDisplays) { GameObject.DestroyImmediate(display.gameObject); } } else #endif { foreach (ImageDisplayComponent display in m_galleryDisplays) { GameObject.Destroy(display.gameObject); } } m_galleryDisplays.Clear(); if (galleryImagePrefab != null) { foreach (var imageData in m_galleryData) { var display = InstantiatePrefab(galleryImagePrefab); display.data = imageData; display.onClick += NotifyGalleryImageClicked; this.m_galleryDisplays.Add(display); } } if (Application.isPlaying && this.isActiveAndEnabled) { LayoutRebuilder.MarkLayoutForRebuild(container); } }
static int _m_Equals(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.UI.LayoutRebuilder gen_to_be_invoked = (UnityEngine.UI.LayoutRebuilder)translator.FastGetCSObj(L, 1); { object _obj = translator.GetObject(L, 2, typeof(object)); var gen_ret = gen_to_be_invoked.Equals(_obj); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
private System.Collections.IEnumerator EndOfFrameUpdateCoroutine() { yield return(null); LayoutRebuilder.MarkLayoutForRebuild(container); }
public void OnEnable() { LayoutRebuilder.MarkLayoutForRebuild(container); }