Пример #1
0
 public void SetPrepTime(float preTime)
 {
     if (preTime >= 0)
     {
         m_UTimer.Second  = preTime;
         mLbPrepTime.text = m_PrepTimeTitleStr + m_UTimer.FormatString("mm:ss") + m_ColorEnd;
     }
     else
     {
         mLbPrepTime.text = m_PrepTimeTitleStr + "--:--" + m_ColorEnd;
     }
 }
Пример #2
0
    void ChangeArvhive(Pathea.PeGameSummary summary)
    {
        if (summary != null)
        {
            switch (summary.sceneMode)
            {
            case Pathea.PeGameMgr.ESceneMode.Story:
                mGametypeText.text = PELocalization.GetString(10007);
                //mSeedIDText.text = "Unknown";
                //mSeedTitleText.text = "Area:";
                mSeedRoot.SetActive(false);
                break;

            case Pathea.PeGameMgr.ESceneMode.Adventure:
                mGametypeText.text  = PELocalization.GetString(10008);
                mSeedIDText.text    = summary.seed;
                mSeedTitleText.text = PELocalization.GetString(8000361) + ":";
                mSeedRoot.SetActive(true);
                break;

            case Pathea.PeGameMgr.ESceneMode.Build:
                mGametypeText.text  = PELocalization.GetString(10009);
                mSeedIDText.text    = summary.seed;
                mSeedTitleText.text = PELocalization.GetString(8000361) + ":";
                mSeedRoot.SetActive(true);
                break;

            case Pathea.PeGameMgr.ESceneMode.Custom:
                mGametypeText.text  = PELocalization.GetString(10222);
                mSeedIDText.text    = PELocalization.GetString(8000558);
                mSeedTitleText.text = PELocalization.GetString(8000557);
                mSeedRoot.SetActive(false);
                break;

            default:
                break;
            }
            mInfoGrid.repositionNow = true;

            UTimer tmp_playtimer = new UTimer();
            tmp_playtimer.Second = summary.playTime;
            if (tmp_playtimer.Day < 1)
            {
                mPlayTimeText.text = tmp_playtimer.FormatString("hh:mm:ss");
            }
            else
            {
                mPlayTimeText.text = tmp_playtimer.FormatString("D days hh:mm:ss");
            }

            PETimer tmp_gametimer = PETimerUtil.GetTmpTimer();
            tmp_gametimer.Second = summary.gameTime;
            mGameTimeText.text   = tmp_gametimer.FormatString("hh:mm:ss AP");
            mSaveTex.enabled     = true;
            mSaveTex.mainTexture = (summary.screenshot != null) ?  summary.screenshot : mAutoTex;
        }
        else
        {
            mGametypeText.text = "";
            mSeedIDText.text   = "";
//			mBorimText.text = "";
            mPlayTimeText.text   = "";
            mGameTimeText.text   = "";
            mSaveTex.enabled     = false;
            mSaveTex.mainTexture = null;
        }
    }