少年修仙传客户端代码仓库
Client_PangDeRong
2018-11-20 ff5b371fba0cf2e0ef5ee258745e42a635243743
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
            {