Esempio n. 1
0
 protected override void OnDisable()
 {
     base.OnDisable();
     UIQueueManager.Instance.Islocked = false;
     base.FindTransform("PanelInfo").GetComponent <CanvasGroup>().set_alpha(0f);
     RTManager.SetRT(this.m_spBackgroundImage, ResourceManagerBase.GetNullTexture());
     EventDispatcher.Broadcast <bool, RTManager.RtType>("RTManager.ENABLE_PROJECTION_TYPE", false, RTManager.RtType.ActorModel1);
 }
 private static Texture GetCodeTexture(string name)
 {
     if (!SystemConfig.IsReadUIImageOn)
     {
         return(ResourceManagerBase.GetNullTexture());
     }
     return(AssetManager.GetTexture(name));
 }
Esempio n. 3
0
 private static Texture GetTexture(string name)
 {
     if (!SystemConfig.IsReadUIImageOn)
     {
         return(ResourceManagerBase.GetNullTexture());
     }
     name = GameDataUtils.SplitString4Dot0(name);
     return(AssetManager.GetTexture(name));
 }
Esempio n. 4
0
 private void SyncImage()
 {
     if (this.m_thisImage != null && this.m_syncImage != null)
     {
         this.m_syncImage.set_sprite(this.m_thisImage.get_sprite());
         return;
     }
     if (this.m_thisRawImage != null && this.m_syncRawImage != null)
     {
         RTManager.SetRT(this.m_syncRawImage, this.m_thisRawImage.get_texture());
         return;
     }
     if (this.m_syncImage != null)
     {
         ResourceManager.SetSprite(this.m_syncImage, ResourceManagerBase.GetNullSprite());
     }
     if (this.m_syncRawImage != null)
     {
         RTManager.SetRT(this.m_syncRawImage, ResourceManagerBase.GetNullTexture());
     }
 }