From d1b4f76d85e4f8f2d219e7c8d76510fee2441d8f Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期三, 13 二月 2019 11:59:37 +0800
Subject: [PATCH] 3335 信息提示优化
---
System/SystemSetting/SetUp_BugWin.cs | 158 ++++++++++++++++++++++++++--------------------------
1 files changed, 79 insertions(+), 79 deletions(-)
diff --git a/System/SystemSetting/SetUp_BugWin.cs b/System/SystemSetting/SetUp_BugWin.cs
index 9da9693..98aad94 100644
--- a/System/SystemSetting/SetUp_BugWin.cs
+++ b/System/SystemSetting/SetUp_BugWin.cs
@@ -1,79 +1,79 @@
-锘縰sing System;
-using UnityEngine;
-using UnityEngine.UI;
-using System.Collections;
-
-namespace Snxxz.UI
-{
- public class SetUp_BugWin : MonoBehaviour
- {
- [SerializeField] InputField inputTitle;
- [SerializeField] InputField inputContent;
- [SerializeField] Button putBtn;
- float coolTime = 0f;
-
- private void Awake()
- {
- putBtn.AddListener(ClickPutBtn);
- }
-
- private void OnEnable()
- {
- inputTitle.text = "";
- inputContent.text = "";
- }
-
- private void ClickPutBtn()
- {
- string title = inputTitle.text;
- string content = inputContent.text;
-
- if (string.IsNullOrEmpty(title))
- {
- MessageWin.Inst.ShowFixedTip(Language.Get("BugSubmit101"));
- return;
- }
-
- if (string.IsNullOrEmpty(content))
- {
- MessageWin.Inst.ShowFixedTip(Language.Get("BugSubmit102"));
- return;
- }
-
- ConfirmCancel.ShowPopConfirm(Language.Get("Mail101"),Language.Get("BugSubmit103"),
- (bool isOk)=>
- {
- if(isOk)
- {
- if(coolTime <= 0)
- {
- OperationLogCollect.Instance.BugReport(title, content);
- SysNotifyMgr.Instance.ShowTip("BUGSubmit");
- coolTime = 60;
- StartCoroutine(SubmitCoolTime());
- }
- else
- {
- SysNotifyMgr.Instance.ShowTip("BUGSubmitCoolTime");
- }
-
- }
- });
- }
-
- IEnumerator SubmitCoolTime()
- {
- while(true)
- {
- coolTime -= 1;
- if(coolTime <= 0)
- {
- break;
- }
- yield return new WaitForSeconds(1);
- }
-
- }
-
- }
-}
+锘縰sing System;
+using UnityEngine;
+using UnityEngine.UI;
+using System.Collections;
+
+namespace Snxxz.UI
+{
+ public class SetUp_BugWin : MonoBehaviour
+ {
+ [SerializeField] InputField inputTitle;
+ [SerializeField] InputField inputContent;
+ [SerializeField] Button putBtn;
+ float coolTime = 0f;
+
+ private void Awake()
+ {
+ putBtn.AddListener(ClickPutBtn);
+ }
+
+ private void OnEnable()
+ {
+ inputTitle.text = "";
+ inputContent.text = "";
+ }
+
+ private void ClickPutBtn()
+ {
+ string title = inputTitle.text;
+ string content = inputContent.text;
+
+ if (string.IsNullOrEmpty(title))
+ {
+ ServerTipDetails.DisplayNormalTip(Language.Get("BugSubmit101"));
+ return;
+ }
+
+ if (string.IsNullOrEmpty(content))
+ {
+ ServerTipDetails.DisplayNormalTip(Language.Get("BugSubmit102"));
+ return;
+ }
+
+ ConfirmCancel.ShowPopConfirm(Language.Get("Mail101"),Language.Get("BugSubmit103"),
+ (bool isOk)=>
+ {
+ if(isOk)
+ {
+ if(coolTime <= 0)
+ {
+ OperationLogCollect.Instance.BugReport(title, content);
+ SysNotifyMgr.Instance.ShowTip("BUGSubmit");
+ coolTime = 60;
+ StartCoroutine(SubmitCoolTime());
+ }
+ else
+ {
+ SysNotifyMgr.Instance.ShowTip("BUGSubmitCoolTime");
+ }
+
+ }
+ });
+ }
+
+ IEnumerator SubmitCoolTime()
+ {
+ while(true)
+ {
+ coolTime -= 1;
+ if(coolTime <= 0)
+ {
+ break;
+ }
+ yield return new WaitForSeconds(1);
+ }
+
+ }
+
+ }
+}
--
Gitblit v1.8.0