| | |
| | | // } |
| | | // } |
| | | // break; |
| | | // case RichTextEventEnum.OPENUI: |
| | | // { |
| | | // int id = 0; |
| | | // if (int.TryParse(href.mSplits["openui"], out id)) |
| | | // { |
| | | // WindowJumpMgr.Instance.WindowJumpTo((JumpUIType)id); |
| | | // } |
| | | // else |
| | | // { |
| | | // var list = href.mSplits["openui"].Split('_'); |
| | | // int funcOrder = 0; |
| | | // if (list.Length != 1) |
| | | // { |
| | | // funcOrder = int.Parse(list[1]); |
| | | // } |
| | | // WindowJumpMgr.Instance.WindowJumpToEx(list[0], 1, 0, funcOrder); |
| | | // if (list.Length > 2) |
| | | // { |
| | | // ModelCenter.Instance.GetModel<RoleModel>().openUIMark = int.Parse(list[2]); |
| | | // } |
| | | // } |
| | | // } |
| | | // break; |
| | | // case RichTextEventEnum.OPENURL: |
| | | // { |
| | | // var url = href.mSplits["openurl"]; |
| | | // Application.OpenURL(url); |
| | | // } |
| | | // break; |
| | | case RichTextEventEnum.OPENUI: |
| | | { |
| | | // int id = 0; |
| | | // if (int.TryParse(href.mSplits["openui"], out id)) |
| | | // { |
| | | // WindowJumpMgr.Instance.WindowJumpTo((JumpUIType)id); |
| | | // } |
| | | // else |
| | | // { |
| | | // var list = href.mSplits["openui"].Split('_'); |
| | | // int funcOrder = 0; |
| | | // if (list.Length != 1) |
| | | // { |
| | | // funcOrder = int.Parse(list[1]); |
| | | // } |
| | | // WindowJumpMgr.Instance.WindowJumpToEx(list[0], 1, 0, funcOrder); |
| | | // if (list.Length > 2) |
| | | // { |
| | | // ModelCenter.Instance.GetModel<RoleModel>().openUIMark = int.Parse(list[2]); |
| | | // } |
| | | // } |
| | | } |
| | | break; |
| | | case RichTextEventEnum.OPENURL: |
| | | { |
| | | var url = href.mSplits["openurl"]; |
| | | Application.OpenURL(url); |
| | | } |
| | | break; |
| | | // case RichTextEventEnum.TIP: |
| | | // { |
| | | // var _key = href.mSplits["tip"]; |
| | |
| | | // { |
| | | // colorType = RichTextMgr.Inst.presentRichText.colorType == RichText.ColorType.Dark ? 0 : 1; |
| | | // } |
| | | // var fightPoint = PlayerDatas.Instance.baseData.FightPoint; |
| | | // var fightPoint = PlayerDatas.Instance.baseData.FightPower; |
| | | // ulong targetValue = 0; |
| | | // var infoArray = dic["myfightpoint"].Split('_'); |
| | | // if (infoArray.Length > 1) |
| | |
| | | // if (fightPoint < (ulong)targetValue) |
| | | // { |
| | | // var label = dic.ContainsKey("replacelabel1") ? dic["replacelabel1"] : string.Empty; |
| | | // return UIHelper.AppendColor(TextColType.Red, StringUtility.Contact(label, fightPoint, "/", targetValue), colorType == 1); |
| | | // return UIHelper.AppendColor(TextColType.Red, StringUtility.Concat(label, fightPoint, "/", targetValue), colorType == 1); |
| | | // } |
| | | // else |
| | | // { |
| | |
| | | // if (property != 0) |
| | | // { |
| | | // var propertyConfig = PlayerPropertyConfig.Get(property); |
| | | // label = StringUtility.Contact(propertyConfig.Name, ":"); |
| | | // label = StringUtility.Concat(propertyConfig.Name, ":"); |
| | | // } |
| | | // return UIHelper.AppendColor(TextColType.Red, StringUtility.Contact(label, point, "/", targetValue), colorType == 1); |
| | | // return UIHelper.AppendColor(TextColType.Red, StringUtility.Concat(label, point, "/", targetValue), colorType == 1); |
| | | // } |
| | | // else |
| | | // { |
| | |
| | | // if (!satisfy) |
| | | // { |
| | | // var label = dic.ContainsKey("replacelabel1") ? dic["replacelabel1"] : string.Empty; |
| | | // return UIHelper.AppendColor(TextColType.Red, StringUtility.Contact(label, point, "/", targetValue), colorType == 1); |
| | | // return UIHelper.AppendColor(TextColType.Red, StringUtility.Concat(label, point, "/", targetValue), colorType == 1); |
| | | // } |
| | | // else |
| | | // { |