From 95f448e2735882bd9013096e10e17ef8a1f487f2 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期五, 28 十二月 2018 22:55:07 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts

---
 System/CrossServerOneVsOne/RankCellCtrl.cs |   34 +++++++++++++++++-----------------
 1 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/System/CrossServerOneVsOne/RankCellCtrl.cs b/System/CrossServerOneVsOne/RankCellCtrl.cs
index 3919d59..cf0911a 100644
--- a/System/CrossServerOneVsOne/RankCellCtrl.cs
+++ b/System/CrossServerOneVsOne/RankCellCtrl.cs
@@ -97,7 +97,6 @@
                 m_JobTxt.color = UIHelper.GetUIColor(TextColType.NavyBrown);
                // m_RankWhatTxt.color = UIHelper.GetUIColor(TextColType.NavyBrown);
                 m_SegmentTxt.color = UIHelper.GetUIColor(TextColType.NavyBrown);
-                m_SegmentTxt.color = UIHelper.GetUIColor(TextColType.NavyBrown);
                 m_RankButton.RemoveAllListeners();
             }
         }
@@ -106,22 +105,23 @@
         {
             var config = Config.Instance.Get<CrossServerArenaConfig>(Danlv);
             m_SegmentTxt.text = config.Name;
-            if (Danlv >= 24)
-            {
-                m_SegmentTxt.color = new Color32(255, 3, 3, 255);
-            }
-            else if (Danlv < 24 && Danlv > 15)
-            {
-                m_SegmentTxt.color = new Color32(255, 103, 1, 255);
-            }
-            else if (Danlv < 15 && Danlv > 10)
-            {
-                m_SegmentTxt.color = new Color32(218, 72, 213, 255);
-            }
-            else
-            {
-                m_SegmentTxt.color = new Color32(104, 104, 104, 255);
-            }
+            m_SegmentTxt.color= UIHelper.GetDanLVColor(Danlv, false);
+            //if (Danlv >= 24)
+            //{
+            //    m_SegmentTxt.color = new Color32(255, 3, 3, 255);
+            //}
+            //else if (Danlv < 24 && Danlv > 15)
+            //{
+            //    m_SegmentTxt.color = new Color32(255, 103, 1, 255);
+            //}
+            //else if (Danlv < 15 && Danlv > 10)
+            //{
+            //    m_SegmentTxt.color = new Color32(218, 72, 213, 255);
+            //}
+            //else
+            //{
+            //    m_SegmentTxt.color = new Color32(104, 104, 104, 255);
+            //}
         }
 
     }

--
Gitblit v1.8.0