| | |
| | | using TableConfig;
|
| | | using System.Collections.Generic;
|
| | | using Snxxz.UI;
|
| | | using System.Text.RegularExpressions;
|
| | | //关于飞鞋任务
|
| | | namespace Snxxz.UI
|
| | | {
|
| | |
| | | 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
|
| | | {
|