public void bringTop() { UI3System.bringTop(gameObject); UI3System.UIStackBringTop(this.GetClassName()); isBringTop = true; UI3System.ShowGrayScreen(this); }
public virtual void back(bool isHide = false, bool isPopup = true) { UI3System.HideGrayScreen(this); if (gameObject.activeInHierarchy) { OnBack(isHide); } }
public virtual void hide(bool isPopup = true) { isHideOnFullScreen = isPopup; UI3System.HideGrayScreen(this); if (gameObject.activeInHierarchy) { OnHide(); } }
public int getMinDepth() { if (this == null || this.gameObject == null) { return(0); } return(UI3System.getMinDepth(this.gameObject)); }
private void OnDestroyWithScale() { if (gameObject != null) { if (m_wndType == UI3WndType.PopUp) { //高斯模糊 SetActiveRapidBlur(false); } if (OnClose != null) { OnClose(); OnClose = null; } gameObject.SetActive(false); UI3System.HideGrayScreen(this); UI3System.destroyWindow(this.GetClassName(), gameObject); } UI3System.PopBack(this.GetClassName()); }
private void OnShow() { if (m_wndType == UI3WndType.PopUp) { //高斯模糊 SetActiveRapidBlur(true); } gameObject.transform.localScale = new Vector3(1.0f, 1.0f, 1.0f); gameObject.SetActive(true); if (OnFinshShow != null) { OnFinshShow(); OnFinshShow = null; } UI3System.PushBack(this.GetClassName()); UI3System.ShowGrayScreen(this); bringTop(); }
private void OnBack(bool isHide = false) { UI3System.HideGrayScreen(this); if (gameObject != null) { if (isHide) { gameObject.SetActive(false); UI3System.HideWindow(this.GetClassName(), gameObject); } else { gameObject.SetActive(false); UI3System.destroyWindow(this.GetClassName(), gameObject); } if (OnClose != null) { OnClose(); OnClose = null; } UI3System.BackPopup(this.GetClassName()); } }
public void SetDepth(int depth) { _depth = depth; UI3System.setDepth(gameObject, _depth); }
public void reshow() { UI3System.SetTop(this.GetClassName()); this.show(); }
public virtual void HideGrayScreen() { UI3System.HideGrayScreen(this); }
public void setDepth(int depth) { UI3System.setDepth(this.gameObject, depth); }
public void addDepth(int depth) { UI3System.addDepth(this.gameObject, depth); }