Ejemplo n.º 1
0
 /// <summary>
 /// 更改文本内容
 /// </summary>
 public static void ChangeTextContent(string textContent)
 {
     if (textContent != null)
     {
         MatchLoadingUIData uiData = new MatchLoadingUIData();
         uiData.TipsContent = textContent;
         //this.m_ContentText.text = uiData.TipsContent;
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 显示数据加载界面
 /// </summary>
 /// <param name="timeOut"></param>
 /// <param name="timeOutCallBack"></param>
 public static void Show(int timeOut = 5, System.Action timeOutCallBack = null)
 {
     if (openedWindowNode == null)
     {
         WindowNodeInitParam initParam = new WindowNodeInitParam(UIAssetName);
         initParam.NodeType = BaseNodeType.AboveNormal;
         MatchLoadingUIData uiData = new MatchLoadingUIData();
         uiData.MaxLastTime = timeOut;
         uiData.MaxTimeCloseWindowCallBack = timeOutCallBack;
         initParam.WindowData = uiData;
         openedWindowNode     = WindowManager.Instance.OpenWindow(initParam);
     }
 }
Ejemplo n.º 3
0
    public override void RefreshWindowData(object windowData)
    {
        base.RefreshWindowData(windowData);
        if (windowData is MatchLoadingUIData)
        {
            MatchLoadingUIData matchLoadingUIData = (MatchLoadingUIData)windowData;

            matchLoadingUIData.TipsContent = "努力加载中...";

            this.m_ContentText.text         = matchLoadingUIData.TipsContent;
            MaxLastTime                     = matchLoadingUIData.MaxLastTime;
            this.MaxTimeCloseWindowCallBack = matchLoadingUIData.MaxTimeCloseWindowCallBack;
            StartCountDown                  = true;
        }
    }