From ff5b371fba0cf2e0ef5ee258745e42a635243743 Mon Sep 17 00:00:00 2001
From: Client_PangDeRong <593317293@qq.com>
Date: 星期二, 20 十一月 2018 11:59:56 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts

---
 System/MainInterfacePanel/FlyingShoesTask.cs |   21 ++++++++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)

diff --git a/System/MainInterfacePanel/FlyingShoesTask.cs b/System/MainInterfacePanel/FlyingShoesTask.cs
index 175840b..68ad7ae 100644
--- a/System/MainInterfacePanel/FlyingShoesTask.cs
+++ b/System/MainInterfacePanel/FlyingShoesTask.cs
@@ -8,6 +8,7 @@
 using TableConfig;
 using System.Collections.Generic;
 using Snxxz.UI;
+using System.Text.RegularExpressions;
 //鍏充簬椋為瀷浠诲姟
 namespace Snxxz.UI
 {
@@ -361,7 +362,25 @@
             var taskinfo = Config.Instance.Get<TASKINFOConfig>(str);        
             if (taskinfo != null)
             {
-                m_ContentText.text = taskinfo.show_writing;
+                var taskPower = Config.Instance.Get<TaskPowerConfig>(TaskID);
+                string StrText= taskinfo.show_writing;
+                if (taskPower != null)
+                {
+                    if (PlayerDatas.Instance.baseData.FightPoint >= taskPower.Power)
+                    {
+                        StrText = StrText.Replace("<color=#fff4cd>", "<color=#109d06>");
+                    }
+                    else
+                    {
+                        StrText = StrText.Replace("<color=#fff4cd>", "<color=#fa0101>");
+                    }
+                    m_ContentText.text = StrText;
+                }
+                else
+                {
+                    m_ContentText.text = StrText;
+                }
+                
             }
             else
             {

--
Gitblit v1.8.0