public override bool DoDialog()
    {
        bool    result = false;
        GUISkin skin   = GUI.skin;

        GUI.skin = GUISkinFinder.Instance.GetGUISkin();
        imgList.Draw();
        labelList.Draw();
        mainLabel.Draw();
        isExitLabel.Draw();
        reciveCount.SetTextFormat(rewardCount, max);
        reciveCount.Draw();
        int num  = (int)(Time.realtimeSinceStartup - serverDataSinceTime);
        int num2 = (resetAfter - num) / 60;
        int num3 = num2 / 60;

        num2 %= 60;
        initializationTime.SetTextFormat(num3, num2);
        initializationTime.Draw();
        currentMyCoin.SetTextFormat(MyInfoManager.Instance.FreeCoin);
        currentMyCoin.Draw();
        pcbangPlusImage.Draw();
        timeGauge.valueNow = (float)(num + playTime);
        if (rewardCount == max)
        {
            timeGauge.valueNow = timeGauge.valueMax;
        }
        timeGauge.Draw();
        num2 = (cycle - playTime - num) / 60;
        num3 = num2 / 60;
        num2 = num2 % 60 + 1;
        if (num2 <= 0)
        {
            num2 = 1;
        }
        if (max == rewardCount)
        {
            num2 = 0;
        }
        remainTime.SetTextFormat(num2.ToString());
        remainTime.Draw();
        doneStamp.Draw();
        explain.SetTextFormat(max);
        explain.Draw();
        if (exit.Draw() || ok.Draw() || GlobalVars.Instance.IsEscapePressed())
        {
            result = true;
        }
        if (gameExit.Draw())
        {
            BuildOption.Instance.Exit();
        }
        if (!ContextMenuManager.Instance.IsPopup)
        {
            WindowUtil.EatEvent();
        }
        GUI.skin = skin;
        return(result);
    }