1个文件已删除
80个文件已修改
14个文件已添加
| | |
| | | string _msg = LuaAPI.lua_tostring(L, 2); |
| | | bool _bright = LuaAPI.lua_toboolean(L, 3); |
| | | |
| | | string gen_ret = UIHelper.AppendStringColor( _type, _msg, _bright ); |
| | | string gen_ret = UIHelper.AppendColor( _type, _msg, _bright ); |
| | | LuaAPI.lua_pushstring(L, gen_ret); |
| | | |
| | | |
| | |
| | | TextColType _type;translator.Get(L, 1, out _type); |
| | | string _msg = LuaAPI.lua_tostring(L, 2); |
| | | |
| | | string gen_ret = UIHelper.AppendStringColor( _type, _msg ); |
| | | string gen_ret = UIHelper.AppendColor( _type, _msg ); |
| | | LuaAPI.lua_pushstring(L, gen_ret); |
| | | |
| | | |
| | |
| | | }
|
| | | else
|
| | | {
|
| | | itemCell.countText.text = StringUtility.Contact(UIHelper.AppendStringColor(TextColType.Red, remainNum.ToString()),
|
| | | itemCell.countText.text = StringUtility.Contact(UIHelper.AppendColor(TextColType.Red, remainNum.ToString()),
|
| | | "/" + canBuyCnt.ToString());
|
| | | sellOutImg.gameObject.SetActive(true);
|
| | | }
|
| | |
| | | float progress = (float)Math.Round(playerPack.GetAlchemyProgress(alchemyModel), 2);
|
| | | if(progress > 0)
|
| | | {
|
| | | progressValue.text = UIHelper.AppendStringColor(TextColType.Green, StringUtility.Contact(progress, "%"));
|
| | | progressValue.text = UIHelper.AppendColor(TextColType.Green, StringUtility.Contact(progress, "%"));
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | fireChooseCell.addBtn.gameObject.SetActive(true);
|
| | | if (num >= alchemySpecModel.SpecialMateriaNUM)
|
| | | {
|
| | | fireChooseCell.itemCell.countText.text = UIHelper.AppendStringColor(TextColType.Green,num.ToString(),true) + "/" + alchemySpecModel.SpecialMateriaNUM;
|
| | | fireChooseCell.itemCell.countText.text = UIHelper.AppendColor(TextColType.Green,num.ToString(),true) + "/" + alchemySpecModel.SpecialMateriaNUM;
|
| | | }
|
| | | else
|
| | | {
|
| | | fireChooseCell.itemCell.countText.text = UIHelper.AppendStringColor(TextColType.Red, num.ToString()) + "/" + alchemySpecModel.SpecialMateriaNUM;
|
| | | fireChooseCell.itemCell.countText.text = UIHelper.AppendColor(TextColType.Red, num.ToString()) + "/" + alchemySpecModel.SpecialMateriaNUM;
|
| | | }
|
| | | fireChooseCell.addBtn.onClick.AddListener(() => { OnClickSpecAddBtn(alchemySpecModel); });
|
| | | }
|
| | |
| | |
|
| | | if(haveMaterCount >= materialNum)
|
| | | {
|
| | | itemCell.countText.text = UIHelper.AppendStringColor(TextColType.White,haveMaterCount.ToString()) +"/" + materialNum;
|
| | | itemCell.countText.text = UIHelper.AppendColor(TextColType.White,haveMaterCount.ToString()) +"/" + materialNum;
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | {
|
| | | noEnoughMatID = materialId;
|
| | | }
|
| | | itemCell.countText.text = UIHelper.AppendStringColor(TextColType.Red, haveMaterCount.ToString()) + "/" + materialNum;
|
| | | itemCell.countText.text = UIHelper.AppendColor(TextColType.Red, haveMaterCount.ToString()) + "/" + materialNum;
|
| | | }
|
| | |
|
| | | itemCell.cellBtn.RemoveAllListeners();
|
| | |
| | | if (haveNum >= specModel.SpecialMateriaNUM)
|
| | | {
|
| | | isEnoughSpecMat = true;
|
| | | _addSpecMatItemCell.countText.text = UIHelper.AppendStringColor(TextColType.Green, haveNum.ToString(),true) + "/" + specModel.SpecialMateriaNUM;
|
| | | _addSpecMatItemCell.countText.text = UIHelper.AppendColor(TextColType.Green, haveNum.ToString(),true) + "/" + specModel.SpecialMateriaNUM;
|
| | | }
|
| | | else
|
| | | {
|
| | | isEnoughSpecMat = false;
|
| | | _addSpecMatItemCell.countText.text = UIHelper.AppendStringColor(TextColType.Red,haveNum.ToString()) + "/" + specModel.SpecialMateriaNUM;
|
| | | _addSpecMatItemCell.countText.text = UIHelper.AppendColor(TextColType.Red,haveNum.ToString()) + "/" + specModel.SpecialMateriaNUM;
|
| | | }
|
| | |
|
| | | _addSpecMatItemCell.reducebtn.gameObject.SetActive(true);
|
| | |
| | |
|
| | | if (increaseRate > 0)
|
| | | {
|
| | | string extraAddRate = UIHelper.AppendStringColor(TextColType.Green, StringUtility.Contact("+", increaseRate, "%"), true);
|
| | | string extraAddRate = UIHelper.AppendColor(TextColType.Green, StringUtility.Contact("+", increaseRate, "%"), true);
|
| | | successRateText.text = Language.Get("HallowsWin_Success", StringUtility.Contact(successRate / 100, "%", extraAddRate));
|
| | | }
|
| | | else
|
| | |
| | | itemCell.countText.gameObject.SetActive(true);
|
| | | if (haveCount >= needCount)
|
| | | {
|
| | | itemCell.countText.text = StringUtility.Contact(UIHelper.AppendStringColor(TextColType.Green, haveCount.ToString()),
|
| | | itemCell.countText.text = StringUtility.Contact(UIHelper.AppendColor(TextColType.Green, haveCount.ToString()),
|
| | | "/", needCount);
|
| | | }
|
| | | else
|
| | | {
|
| | | itemCell.countText.text = StringUtility.Contact(UIHelper.AppendStringColor(TextColType.Red, haveCount.ToString()),
|
| | | itemCell.countText.text = StringUtility.Contact(UIHelper.AppendColor(TextColType.Red, haveCount.ToString()),
|
| | | "/", needCount);
|
| | | }
|
| | | break;
|
| | |
| | | int remainNum = CrossServerOneVsOnePlayerInfo.Instance.GetDayRemainNum();
|
| | | if (remainNum > 0)
|
| | | {
|
| | | reaminNumText.text = StringUtility.Contact(UIHelper.AppendStringColor(TextColType.Green,remainNum.ToString()), "/", crossServerModel.freeMaxMatchNum);
|
| | | reaminNumText.text = StringUtility.Contact(UIHelper.AppendColor(TextColType.Green,remainNum.ToString()), "/", crossServerModel.freeMaxMatchNum);
|
| | | }
|
| | | else
|
| | | {
|
| | | reaminNumText.text = StringUtility.Contact(UIHelper.AppendStringColor(TextColType.Red, remainNum.ToString()), "/", crossServerModel.freeMaxMatchNum);
|
| | | reaminNumText.text = StringUtility.Contact(UIHelper.AppendColor(TextColType.Red, remainNum.ToString()), "/", crossServerModel.freeMaxMatchNum);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | stateImg.gameObject.SetActive(false);
|
| | | sellImg.gameObject.SetActive(true);
|
| | | itemCell.countText.text = StringUtility.Contact(UIHelper.AppendStringColor(TextColType.Red, remainNum.ToString()),
|
| | | itemCell.countText.text = StringUtility.Contact(UIHelper.AppendColor(TextColType.Red, remainNum.ToString()),
|
| | | "/" + canBuyCnt.ToString());
|
| | | string refreshDes = m_storeModel.GetStoreRefreshTimeByType(storeConfig.RefreshType);
|
| | | if(!string.IsNullOrEmpty(refreshDes))
|
| | |
| | | m_BuyTimes.gameObject.SetActive(remainBuyTimes > 0);
|
| | | if(remainBuyTimes > 0)
|
| | | {
|
| | | m_TodayBuyTimes.text = Language.Get("TimesBuyLanguage1",UIHelper.AppendStringColor(TextColType.Green,remainBuyTimes.ToString()), crossServerModel.buyMaxMatchNum);
|
| | | m_TodayBuyTimes.text = Language.Get("TimesBuyLanguage1",UIHelper.AppendColor(TextColType.Green,remainBuyTimes.ToString()), crossServerModel.buyMaxMatchNum);
|
| | | }
|
| | | else
|
| | | {
|
| | | m_TodayBuyTimes.text = Language.Get("TimesBuyLanguage1", UIHelper.AppendStringColor(TextColType.Red, remainBuyTimes.ToString()), crossServerModel.buyMaxMatchNum);
|
| | | m_TodayBuyTimes.text = Language.Get("TimesBuyLanguage1", UIHelper.AppendColor(TextColType.Red, remainBuyTimes.ToString()), crossServerModel.buyMaxMatchNum);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | var surplusTimes = totalTimes - dungeonRecord.buyTimes;
|
| | | var canBuyTimes = defaultTimes > dungeonRecord.buyTimes || surplusTimes > 0;
|
| | |
|
| | | var surplusTimeDisplay = UIHelper.AppendStringColor(surplusTimes > 0 ? TextColType.Green : TextColType.Red, surplusTimes.ToString(), true);
|
| | | var surplusTimeDisplay = UIHelper.AppendColor(surplusTimes > 0 ? TextColType.Green : TextColType.Red, surplusTimes.ToString(), true);
|
| | |
|
| | | m_TodayBuyTimes.text = Language.Get("TimesBuyLanguage1", surplusTimeDisplay, totalTimes);
|
| | | int nextVipLv = vipModel.GetPrivilegeVipLv((VipPrivilegeType)openTimeConfig.BuyTimesID, totalTimes);
|
| | |
| | | switch (reason)
|
| | | {
|
| | | case 1:
|
| | | m_XianyuanCoins.text = UIHelper.AppendStringColor(TextColType.Red, Language.Get("DungeonAssist145"));
|
| | | m_XianyuanCoins.text = UIHelper.AppendColor(TextColType.Red, Language.Get("DungeonAssist145"));
|
| | | break;
|
| | | case 2:
|
| | | m_XianyuanCoins.text = UIHelper.AppendStringColor(TextColType.Red, Language.Get("DungeonAssist144"));
|
| | | m_XianyuanCoins.text = UIHelper.AppendColor(TextColType.Red, Language.Get("DungeonAssist144"));
|
| | | break;
|
| | | default:
|
| | | if (fbEndInfo.dataMapID == 51010)
|
| | | {
|
| | | if (fbEndInfo.startRewardLineID != 0)
|
| | | {
|
| | | m_XianyuanCoins.text = UIHelper.AppendStringColor(TextColType.Red, Language.Get("DungeonAssist146"));
|
| | | m_XianyuanCoins.text = UIHelper.AppendColor(TextColType.Red, Language.Get("DungeonAssist146"));
|
| | | }
|
| | | }
|
| | | break;
|
| | |
| | | DungeonOpenTimeConfig dungeonOpenTimeModel = DungeonOpenTimeConfig.Get(trialMapID);
|
| | | var completedTimes = dailyQuestModel.GetDailyQuestCompletedTimes((int)DailyQuestType.Trial);
|
| | | var totalTimes = dailyQuestModel.GetDailyQuestTotalTimes((int)DailyQuestType.Trial);
|
| | | m_ChallengeTimes.text = Language.Get("TrialChallengeCnt", UIHelper.AppendStringColor(completedTimes >= totalTimes ?
|
| | | m_ChallengeTimes.text = Language.Get("TrialChallengeCnt", UIHelper.AppendColor(completedTimes >= totalTimes ?
|
| | | TextColType.Red : TextColType.LightYellow, completedTimes.ToString(), true), totalTimes);
|
| | | DisplayButtonState();
|
| | | }
|
| | |
| | | DungeonOpenTimeConfig dungeonOpenTimeModel = DungeonOpenTimeConfig.Get(mapID);
|
| | | var completedTimes = dailyQuestModel.GetDailyQuestCompletedTimes((int)DailyQuestType.Trial);
|
| | | var totalTimes = dailyQuestModel.GetDailyQuestTotalTimes((int)DailyQuestType.Trial);
|
| | | trialChallengeCntTxt.text = Language.Get("TrialChallengeCnt", UIHelper.AppendStringColor(completedTimes >= totalTimes ?
|
| | | trialChallengeCntTxt.text = Language.Get("TrialChallengeCnt", UIHelper.AppendColor(completedTimes >= totalTimes ?
|
| | | TextColType.Red : TextColType.NavyBrown, completedTimes.ToString(), true), totalTimes);
|
| | | }
|
| | |
|
| | |
| | | levelUpCost = model.GetGemLevelUpCost(config.EffectValueA1, config.EffectValueB1);
|
| | | if (PlayerDatas.Instance.baseData.diamond < levelUpCost)
|
| | | {
|
| | | m_CostMoney.text = UIHelper.AppendStringColor(TextColType.Red, levelUpCost.ToString(), true);
|
| | | m_CostMoney.text = UIHelper.AppendColor(TextColType.Red, levelUpCost.ToString(), true);
|
| | | }
|
| | | else
|
| | | {
|
| | | m_CostMoney.text = UIHelper.AppendStringColor(TextColType.NavyBrown, levelUpCost.ToString());
|
| | | m_CostMoney.text = UIHelper.AppendColor(TextColType.NavyBrown, levelUpCost.ToString());
|
| | | }
|
| | |
|
| | | DisplayGemCount();
|
| | |
| | | m_MaterialCount.gameObject.SetActive(true); |
| | | m_Material.SetItem(itemId, 1); |
| | | var enough = own >= need; |
| | | m_MaterialCount.text = string.Format("{0}/{1}", UIHelper.AppendStringColor(enough ? TextColType.White : TextColType.Red, own.ToString(), true), need); |
| | | m_MaterialCount.text = string.Format("{0}/{1}", UIHelper.AppendColor(enough ? TextColType.White : TextColType.Red, own.ToString(), true), need); |
| | | } |
| | | else |
| | | { |
| | |
| | | var enough = own >= need; |
| | | |
| | | m_InevitableMaterialCount.text = string.Format("{0}/{1}", |
| | | UIHelper.AppendStringColor(enough ? TextColType.White : TextColType.Red, own.ToString(), true), need); |
| | | UIHelper.AppendColor(enough ? TextColType.White : TextColType.Red, own.ToString(), true), need); |
| | | |
| | | if (diamond > 0) |
| | | { |
| | |
| | | }
|
| | | else
|
| | | {
|
| | | m_Time.text = UIHelper.AppendStringColor(TextColType.Red, Language.Get("XMZZ110"));
|
| | | m_Time.text = UIHelper.AppendColor(TextColType.Red, Language.Get("XMZZ110"));
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | remainTimeText.text = UIHelper.AppendStringColor(TextColType.Red, Language.Get("XMZZ110"));
|
| | | remainTimeText.text = UIHelper.AppendColor(TextColType.Red, Language.Get("XMZZ110"));
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | remainTimeText.text = UIHelper.AppendStringColor(TextColType.Red,Language.Get("XMZZ110"));
|
| | | remainTimeText.text = UIHelper.AppendColor(TextColType.Red,Language.Get("XMZZ110"));
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | remainTimeText.text = UIHelper.AppendStringColor(TextColType.Red, Language.Get("XMZZ110"));
|
| | | remainTimeText.text = UIHelper.AppendColor(TextColType.Red, Language.Get("XMZZ110"));
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | var count = packModel.GetItemCountByID(PackType.Item, fashionDress.requireLevelUpItem);
|
| | | m_Item.SetItem(equipItemId, 0);
|
| | | var levelUpRequireCount = fashionDress.GetLevelUpRequireCount(fashionDressLevel);
|
| | | var requireCountDisplay = UIHelper.AppendStringColor(count >= levelUpRequireCount ?
|
| | | var requireCountDisplay = UIHelper.AppendColor(count >= levelUpRequireCount ?
|
| | | TextColType.DarkGreen : TextColType.Red, count.ToString());
|
| | | m_ItemCount.text = isMax ? string.Empty : StringUtility.Contact(requireCountDisplay, "/", levelUpRequireCount);
|
| | |
|
| | |
| | | string actvivateNumSB = string.Empty;
|
| | | if(activateNum > 0)
|
| | | {
|
| | | actvivateNumSB = UIHelper.AppendStringColor(TextColType.Green,activateNum.ToString());
|
| | | actvivateNumSB = UIHelper.AppendColor(TextColType.Green,activateNum.ToString());
|
| | | }
|
| | | else
|
| | | {
|
| | | actvivateNumSB = UIHelper.AppendStringColor(TextColType.Red, activateNum.ToString());
|
| | | actvivateNumSB = UIHelper.AppendColor(TextColType.Red, activateNum.ToString());
|
| | | }
|
| | | activateNumText.text = StringUtility.Contact(actvivateNumSB, "/",sumNum);
|
| | | Dictionary<int, int> attrDict = GetActivateAttr();
|
| | |
| | | int attrValue = attrDict[attrId];
|
| | | var attrConfig = PlayerPropertyConfig.Get(attrId);
|
| | | string attrSB = string.Empty;
|
| | | string attrValueSB = UIHelper.AppendStringColor(TextColType.Green, tipsModel.GetProValueTypeStr(attrConfig, attrValue));
|
| | | string attrValueSB = UIHelper.AppendColor(TextColType.Green, tipsModel.GetProValueTypeStr(attrConfig, attrValue));
|
| | | if (attrConfig.Name.Contains("%s"))
|
| | | {
|
| | | attrSB = attrConfig.Name.Replace("%s",attrValueSB);
|
| | |
| | | string wardrobeLevelSB = string.Empty;
|
| | | if (wardrobeLevel > 0)
|
| | | {
|
| | | wardrobeLevelSB = UIHelper.AppendStringColor(TextColType.Green, wardrobeLevel.ToString());
|
| | | wardrobeLevelSB = UIHelper.AppendColor(TextColType.Green, wardrobeLevel.ToString());
|
| | | }
|
| | | else
|
| | | {
|
| | | wardrobeLevelSB = UIHelper.AppendStringColor(TextColType.Red, wardrobeLevel.ToString());
|
| | | wardrobeLevelSB = UIHelper.AppendColor(TextColType.Red, wardrobeLevel.ToString());
|
| | | }
|
| | | wardrobeLvText.text = Language.Get("FashionDress106",wardrobeLevelSB);
|
| | | Dictionary<int, int> attrDict = null;
|
| | |
| | | int attrValue = attrDict[attrId];
|
| | | var attrConfig = PlayerPropertyConfig.Get(attrId);
|
| | | string attrSB = string.Empty;
|
| | | string attrValueSB = UIHelper.AppendStringColor(TextColType.Green, tipsModel.GetProValueTypeStr(attrConfig, attrValue));
|
| | | string attrValueSB = UIHelper.AppendColor(TextColType.Green, tipsModel.GetProValueTypeStr(attrConfig, attrValue));
|
| | | if (attrConfig.Name.Contains("%s"))
|
| | | {
|
| | | attrSB = attrConfig.Name.Replace("%s", attrValueSB);
|
| | |
| | | {
|
| | | var config = DemonJarConfig.Get(model.selectedBoss);
|
| | | var doubleAllow = config.CanEnterTimes == 0;
|
| | | var doubleString = UIHelper.AppendStringColor(model.isDoubleAward && doubleAllow ? TextColType.Green : TextColType.NavyBrown, Language.Get("DemonJarDoubleWord"), true);
|
| | | var autoString = UIHelper.AppendStringColor(model.autoChallenge ? TextColType.Green : TextColType.NavyBrown, Language.Get("DemonJarAutoWord"), true);
|
| | | var doubleString = UIHelper.AppendColor(model.isDoubleAward && doubleAllow ? TextColType.Green : TextColType.NavyBrown, Language.Get("DemonJarDoubleWord"), true);
|
| | | var autoString = UIHelper.AppendColor(model.autoChallenge ? TextColType.Green : TextColType.NavyBrown, Language.Get("DemonJarAutoWord"), true);
|
| | |
|
| | | m_AutoAndDoubleTitle.text = StringUtility.Contact(autoString, "/", doubleString);
|
| | | }
|
| | |
| | | else
|
| | | {
|
| | | m_Count.text = StringUtility.Contact(
|
| | | UIHelper.AppendStringColor(count >= requireCount ? TextColType.LightYellow : TextColType.Red, count.ToString())
|
| | | UIHelper.AppendColor(count >= requireCount ? TextColType.LightYellow : TextColType.Red, count.ToString())
|
| | | , "/", requireCount.ToString());
|
| | | }
|
| | | }
|
| | |
| | | var soulDust = UIHelper.GetMoneyCnt(28);
|
| | | var satisfy = soulDust >= (ulong)levelUpCost;
|
| | | m_LevelUpCost.text = StringUtility.Contact(
|
| | | UIHelper.AppendStringColor(satisfy ? TextColType.NavyBrown : TextColType.Red, soulDust.ToString())
|
| | | UIHelper.AppendColor(satisfy ? TextColType.NavyBrown : TextColType.Red, soulDust.ToString())
|
| | | , "/", levelUpCost);
|
| | | bool isMaxLevle = model.IsGatherSoulMaxLevel(item.id, item.level);
|
| | | m_ContainerLevelUp.gameObject.SetActive(!isMaxLevle);
|
| | |
| | | else
|
| | | {
|
| | | m_Count.text = StringUtility.Contact(
|
| | | UIHelper.AppendStringColor(count >= (ulong)require ? TextColType.LightYellow : TextColType.Red, count.ToString())
|
| | | UIHelper.AppendColor(count >= (ulong)require ? TextColType.LightYellow : TextColType.Red, count.ToString())
|
| | | , "/", require.ToString());
|
| | | }
|
| | | if (displayId != 0)
|
| | |
| | | }
|
| | | var soulDust = UIHelper.ReplaceLargeNum(UIHelper.GetMoneyCnt(28));
|
| | | m_SoulDust.text = StringUtility.Contact(soulDust, "+",
|
| | | UIHelper.AppendStringColor(TextColType.DarkGreen, UIHelper.ReplaceLargeNum(result)));
|
| | | UIHelper.AppendColor(TextColType.DarkGreen, UIHelper.ReplaceLargeNum(result)));
|
| | | }
|
| | |
|
| | | private void OpenQualitySort()
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | itemCell.countText.text = StringUtility.Contact(UIHelper.AppendStringColor(TextColType.Red, remainNum.ToString()),
|
| | | itemCell.countText.text = StringUtility.Contact(UIHelper.AppendColor(TextColType.Red, remainNum.ToString()),
|
| | | "/" + canBuyCnt.ToString());
|
| | | }
|
| | | }
|
| | |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | using UnityEngine.UI; |
| | | using UnityEngine.Events; |
| | | |
| | | namespace Snxxz.UI { |
| | | namespace Snxxz.UI |
| | | { |
| | | |
| | | public class EquipTipWin : Window |
| | | { |
| | | [SerializeField] RectTransform m_LeftPoint; |
| | | [SerializeField] RectTransform m_RightPoint; |
| | | |
| | | [SerializeField] RectTransform m_LeftContainer; |
| | | [SerializeField] RectTransform m_RigthContainer; |
| | | |
| | | [SerializeField] WidgetGroup m_LeftWidgetGroup; |
| | | [SerializeField] WidgetGroup m_RightWidgetGroup; |
| | | |
| | | [SerializeField] OperateButton m_OpreateButton1; |
| | | [SerializeField] OperateButton m_OpreateButton2; |
| | | [SerializeField] OperateButton m_OpreateButton3; |
| | | |
| | | #region Built-in |
| | | protected override void BindController() |
| | |
| | | { |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | |
| | | |
| | | public class WidgetGroup |
| | | { |
| | | public TipBaseInfoWidget baseInfoWidget; |
| | | public TipBasePropertyWidget basePropertyWidget; |
| | | public TipLegendPropertyWidget legendPropertyWidget; |
| | | public TipSuitPropertyWidget suitPropertyWidget; |
| | | public TipGemInfoWidget gemInfoWidget; |
| | | public TipStrengthenPropertyWidget strengthenPropertyWidget; |
| | | public TipTrainPropertyWidget trainPropertyWidget; |
| | | |
| | | |
| | | public void Display(ItemTipUtility.TipData data) |
| | | { |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | public class OperateButton |
| | | { |
| | | public RectTransform container; |
| | | public Button button; |
| | | public Text title; |
| | | |
| | | public void SetActive(bool active) |
| | | { |
| | | container.gameObject.SetActive(active); |
| | | } |
| | | |
| | | public void Bind(string title, UnityAction action) |
| | | { |
| | | this.title.text = title; |
| | | this.button.SetListener(action); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | } |
| | |
| | | { |
| | | Item = 0, |
| | | Equip = 1, |
| | | Good = 2, |
| | | EquipCompare = 2, |
| | | Good = 3, |
| | | } |
| | | |
| | | public class ItemTipUtility |
| New file |
| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Tuesday, March 12, 2019 |
| | | //-------------------------------------------------------- |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | using UnityEngine.UI; |
| | | |
| | | namespace Snxxz.UI |
| | | { |
| | | |
| | | public class TipBaseInfoWidget : MonoBehaviour |
| | | { |
| | | |
| | | public void Display(ItemTipUtility.BaseInfo baseInfo) |
| | | { |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 946551f4b0b11a64fb6471a6b9a4a129 |
| | | timeCreated: 1552396157 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Tuesday, March 12, 2019 |
| | | //-------------------------------------------------------- |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | using UnityEngine.UI; |
| | | |
| | | namespace Snxxz.UI |
| | | { |
| | | |
| | | public class TipBasePropertyWidget : MonoBehaviour |
| | | { |
| | | public void Display(ItemTipUtility.BaseProperty baseProperty) |
| | | { |
| | | |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 1f500cebd369c1844878bf130a1322ec |
| | | timeCreated: 1552396190 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Tuesday, March 12, 2019 |
| | | //-------------------------------------------------------- |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | using UnityEngine.UI; |
| | | |
| | | namespace Snxxz.UI |
| | | { |
| | | |
| | | public class TipGemInfoWidget : MonoBehaviour |
| | | { |
| | | |
| | | public void Display(ItemTipUtility.GemInfo gemInfo) |
| | | { |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: d1d01a5203a49da42b40d5ed92d92588 |
| | | timeCreated: 1552396320 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Tuesday, March 12, 2019 |
| | | //-------------------------------------------------------- |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | using UnityEngine.UI; |
| | | |
| | | namespace Snxxz.UI |
| | | { |
| | | |
| | | public class TipLegendPropertyWidget : MonoBehaviour |
| | | { |
| | | |
| | | public void Display(ItemTipUtility.LegendProperty legendProperty) |
| | | { |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 237fbc827af774042ae53ed21e323886 |
| | | timeCreated: 1552396224 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Tuesday, March 12, 2019 |
| | | //-------------------------------------------------------- |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | using UnityEngine.UI; |
| | | |
| | | namespace Snxxz.UI |
| | | { |
| | | |
| | | public class TipStrengthenPropertyWidget : MonoBehaviour |
| | | { |
| | | |
| | | public void Display(ItemTipUtility.StrengthenProperty strengthenProperty) |
| | | { |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 1404768d6fd36ce4da067e83c25812ee |
| | | timeCreated: 1552396431 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Tuesday, March 12, 2019 |
| | | //-------------------------------------------------------- |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | using UnityEngine.UI; |
| | | |
| | | namespace Snxxz.UI |
| | | { |
| | | |
| | | public class TipSuitPropertyWidget : MonoBehaviour |
| | | { |
| | | |
| | | public void Display(ItemTipUtility.SuitInfo suitInfo) |
| | | { |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: b247e54a0423f574f879799c180f6494 |
| | | timeCreated: 1552396273 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Tuesday, March 12, 2019 |
| | | //-------------------------------------------------------- |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | using UnityEngine.UI; |
| | | |
| | | namespace Snxxz.UI |
| | | { |
| | | |
| | | public class TipTrainPropertyWidget : MonoBehaviour |
| | | { |
| | | |
| | | [SerializeField] Text[] m_PropertyBehaviours; |
| | | |
| | | public void Display(ItemTipUtility.TrainProperty trainProperty) |
| | | { |
| | | for (int i = 0; i < m_PropertyBehaviours.Length; i++) |
| | | { |
| | | var behaviour = m_PropertyBehaviours[i]; |
| | | if (i < trainProperty.properties.Count) |
| | | { |
| | | var property = trainProperty.properties[i]; |
| | | var config = PlayerPropertyConfig.Get(property.x); |
| | | var value = PlayerPropertyConfig.GetPropertyDescription(property.x, property.y); |
| | | behaviour.text = config.Name + UIHelper.AppendColor(TextColType.Green, StringUtility.Contact(" +", value)); |
| | | behaviour.gameObject.SetActive(true); |
| | | } |
| | | else |
| | | { |
| | | behaviour.gameObject.SetActive(false); |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 4aaf361df76f2ee4997cc4df2870aa7a |
| | | timeCreated: 1552396387 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | string activeGemNum = string.Empty;
|
| | | if(activeStoneNum > 0)
|
| | | {
|
| | | activeGemNum = StringUtility.Contact(UIHelper.AppendStringColor(TextColType.Green, activeStoneNum.ToString()), "/", equipModel.gemResonanceNum);
|
| | | activeGemNum = StringUtility.Contact(UIHelper.AppendColor(TextColType.Green, activeStoneNum.ToString()), "/", equipModel.gemResonanceNum);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | string equipName = Language.Get(((RoleEquipType)place).ToString());
|
| | | if (activeEquips.Contains(place) && type == PackType.JadeDynastyEquip)
|
| | | {
|
| | | equipName = UIHelper.AppendStringColor(TextColType.Green,equipName);
|
| | | equipName = UIHelper.AppendColor(TextColType.Green,equipName);
|
| | | }
|
| | | if (i == 0)
|
| | | {
|
| | |
| | | ulong haveMoney = UIHelper.GetMoneyCnt(1);
|
| | | if (haveMoney >= (ulong)chestsConfig.OpenMoney)
|
| | | {
|
| | | conditionText.text = Language.Get("OpenBoxCostMoney", UIHelper.AppendStringColor(TextColType.Green, chestsConfig.OpenMoney.ToString()));
|
| | | conditionText.text = Language.Get("OpenBoxCostMoney", UIHelper.AppendColor(TextColType.Green, chestsConfig.OpenMoney.ToString()));
|
| | | }
|
| | | else
|
| | | {
|
| | | conditionText.text = Language.Get("OpenBoxCostMoney", UIHelper.AppendStringColor(TextColType.Red, chestsConfig.OpenMoney.ToString()));
|
| | | conditionText.text = Language.Get("OpenBoxCostMoney", UIHelper.AppendColor(TextColType.Red, chestsConfig.OpenMoney.ToString()));
|
| | | }
|
| | | }
|
| | | else
|
| | |
| | | }
|
| | | }
|
| | | string previewExp = StringUtility.Contact(playerPack.decomposeExp,"+",equipAddExpPreview);
|
| | | expNumText.text = StringUtility.Contact(UIHelper.AppendStringColor(TextColType.Green,previewExp,true),"/"+ deComposeConfig.UpNeedExp);
|
| | | expNumText.text = StringUtility.Contact(UIHelper.AppendColor(TextColType.Green,previewExp,true),"/"+ deComposeConfig.UpNeedExp);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | {
|
| | | if (offset > 0)
|
| | | {
|
| | | needPoinNum.text = UIHelper.AppendStringColor(TextColType.Red, StringUtility.Contact(needPoint, Language.Get("KnapS118", offset)));
|
| | | needPoinText.text = UIHelper.AppendStringColor(TextColType.Red, msg);
|
| | | needPoinNum.text = UIHelper.AppendColor(TextColType.Red, StringUtility.Contact(needPoint, Language.Get("KnapS118", offset)));
|
| | | needPoinText.text = UIHelper.AppendColor(TextColType.Red, msg);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | {
|
| | | if (offset > 0)
|
| | | {
|
| | | needPoinNum.text = UIHelper.AppendStringColor(TextColType.Red, StringUtility.Contact(needPoint, Language.Get("KnapS118", offset)));
|
| | | needPoinText.text = UIHelper.AppendStringColor(TextColType.Red, msg);
|
| | | needPoinNum.text = UIHelper.AppendColor(TextColType.Red, StringUtility.Contact(needPoint, Language.Get("KnapS118", offset)));
|
| | | needPoinText.text = UIHelper.AppendColor(TextColType.Red, msg);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | JobNameConfig jobNameConfig = JobNameConfig.Get(attrData.itemConfig.JobLimit);
|
| | | if (playerJob >= equipJob)
|
| | | {
|
| | | jobName = UIHelper.AppendStringColor(TextColType.White, jobNameConfig.name);
|
| | | jobName = UIHelper.AppendColor(TextColType.White, jobNameConfig.name);
|
| | | }
|
| | | else
|
| | | {
|
| | | jobName = UIHelper.AppendStringColor(TextColType.Red, jobNameConfig.name);
|
| | | jobName = UIHelper.AppendColor(TextColType.Red, jobNameConfig.name);
|
| | | }
|
| | |
|
| | | }
|
| | | else
|
| | | {
|
| | | jobName = UIHelper.AppendStringColor(TextColType.White, Language.Get("StoreWin110"));
|
| | | jobName = UIHelper.AppendColor(TextColType.White, Language.Get("StoreWin110"));
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | ItemConfig itemConfig = ItemConfig.Get(id);
|
| | | TextColType colType = itemConfig.ItemColor < 2 ? TextColType.White : (TextColType)itemConfig.ItemColor;
|
| | | string des = UIHelper.AppendStringColor(colType, itemConfig.ItemName);
|
| | | string des = UIHelper.AppendColor(colType, itemConfig.ItemName);
|
| | | if (shareNumDes.Length > 0)
|
| | | {
|
| | | shareNumDes = StringUtility.Contact(shareNumDes, "</r>", des);
|
| | |
| | | {
|
| | | int runeId = unlockRuneDict[key][0];
|
| | | ItemConfig runeConfig = ItemConfig.Get(runeId);
|
| | | string effectDes = StringUtility.Contact(UIHelper.AppendStringColor(TextColType.Green, runeConfig.ItemName), ":", Language.Get(StringUtility.Contact("RuneTypeDesc_", runeConfig.Effect1)));
|
| | | string effectDes = StringUtility.Contact(UIHelper.AppendColor(TextColType.Green, runeConfig.ItemName), ":", Language.Get(StringUtility.Contact("RuneTypeDesc_", runeConfig.Effect1)));
|
| | | extraInfos.Add(effectDes);
|
| | | }
|
| | | }
|
| | |
| | | if (attrConfig != null)
|
| | | {
|
| | | int value = attrDict[id] * useNum;
|
| | | string valueStr = StringUtility.Contact("+", UIHelper.AppendStringColor(TextColType.Green, GetProValueTypeStr(attrConfig, value), true));
|
| | | string valueStr = StringUtility.Contact("+", UIHelper.AppendColor(TextColType.Green, GetProValueTypeStr(attrConfig, value), true));
|
| | | string attrStr = StringUtility.Contact(attrConfig.Name, valueStr);
|
| | | if (attrSB.Length != 0)
|
| | | {
|
| | |
| | | {
|
| | | if (offset > 0)
|
| | | {
|
| | | needPoinNum.text = UIHelper.AppendStringColor(TextColType.Red, StringUtility.Contact(needPoint, Language.Get("KnapS118", offset)));
|
| | | needPoinText.text = UIHelper.AppendStringColor(TextColType.Red, msg);
|
| | | needPoinNum.text = UIHelper.AppendColor(TextColType.Red, StringUtility.Contact(needPoint, Language.Get("KnapS118", offset)));
|
| | | needPoinText.text = UIHelper.AppendColor(TextColType.Red, msg);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | var _realmCfg = RealmConfig.Get(_realmLv);
|
| | | if (PlayerDatas.Instance.baseData.realmLevel < _realmLv)
|
| | | {
|
| | | conditionText.text = UIHelper.AppendStringColor(TextColType.Red, Language.Get("RealmLimit1"));
|
| | | conditionText.text = UIHelper.AppendColor(TextColType.Red, Language.Get("RealmLimit1"));
|
| | | if (_realmLv != 0)
|
| | | {
|
| | | conditionValueText.SetSprite(_realmCfg.Img);
|
| | |
| | | if(_haveCount >= needToolCount) |
| | | { |
| | | string s = _haveCount + "/" + needToolCount; |
| | | countText.text = UIHelper.AppendStringColor(TextColType.White, s); |
| | | countText.text = UIHelper.AppendColor(TextColType.White, s); |
| | | } |
| | | else |
| | | { |
| | | string s = UIHelper.AppendStringColor(TextColType.Red, _haveCount.ToString()) + "/" + UIHelper.AppendStringColor(TextColType.White, needToolCount.ToString()); |
| | | string s = UIHelper.AppendColor(TextColType.Red, _haveCount.ToString()) + "/" + UIHelper.AppendColor(TextColType.White, needToolCount.ToString()); |
| | | countText.text = s; |
| | | } |
| | | _needToolCount = needToolCount; |
| | |
| | | var _realmCfg = RealmConfig.Get(_realmLv);
|
| | | if (PlayerDatas.Instance.baseData.realmLevel < _realmLv)
|
| | | {
|
| | | conditionText.text = UIHelper.AppendStringColor(TextColType.Red, Language.Get("RealmLimit1"));
|
| | | conditionText.text = UIHelper.AppendColor(TextColType.Red, Language.Get("RealmLimit1"));
|
| | | if (_realmLv != 0)
|
| | | {
|
| | | conditionValueText.SetSprite(_realmCfg.Img);
|
| | |
| | | }
|
| | |
|
| | | int addHour = (itemModel.config.EffectValueA1 / 3600)* (int)Mathf.Ceil(_batchUseSlider.value);
|
| | | string addHourStr = UIHelper.AppendStringColor(TextColType.Green,StringUtility.Contact("+", Language.Get("ItemOverdue103", addHour)),true);
|
| | | string addHourStr = UIHelper.AppendColor(TextColType.Green,StringUtility.Contact("+", Language.Get("ItemOverdue103", addHour)),true);
|
| | | s = StringUtility.Contact(s, addHourStr);
|
| | | return s;
|
| | | }
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | m_Time.text = UIHelper.AppendStringColor(TextColType.Red, Language.Get("XMZZ110"));
|
| | | m_Time.text = UIHelper.AppendColor(TextColType.Red, Language.Get("XMZZ110"));
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | remainTimeText.text = UIHelper.AppendStringColor(TextColType.Red, Language.Get("XMZZ110"));
|
| | | remainTimeText.text = UIHelper.AppendColor(TextColType.Red, Language.Get("XMZZ110"));
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | remainTimeText.text = UIHelper.AppendStringColor(TextColType.Red,Language.Get("XMZZ110"));
|
| | | remainTimeText.text = UIHelper.AppendColor(TextColType.Red,Language.Get("XMZZ110"));
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | remainTimeText.text = UIHelper.AppendStringColor(TextColType.Red, Language.Get("XMZZ110"));
|
| | | remainTimeText.text = UIHelper.AppendColor(TextColType.Red, Language.Get("XMZZ110"));
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | OperationAccumulateRecharge operation = operationBase as OperationAccumulateRecharge;
|
| | | m_Time.text = StringUtility.Contact(Language.Get("ExpActivity_Text1"),
|
| | | UIHelper.AppendStringColor(TextColType.Green, operation.ToDisplayTime()));
|
| | | UIHelper.AppendColor(TextColType.Green, operation.ToDisplayTime()));
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | if (rushToBuyModel.presentFlashShop == null|| operation == null) return;
|
| | |
|
| | | opreationTimeText.text = StringUtility.Contact(Language.Get("ExpActivity_Text1"),UIHelper.AppendStringColor(TextColType.Green, operation.ToDisplayTime()));
|
| | | opreationTimeText.text = StringUtility.Contact(Language.Get("ExpActivity_Text1"),UIHelper.AppendColor(TextColType.Green, operation.ToDisplayTime()));
|
| | | UpdateMoneyInfo();
|
| | | activityOpenObj.SetActive(true);
|
| | | activityCloseObj.SetActive(false);
|
| | |
| | | int fullSeverRemain = 0;
|
| | | int personalRemain = 0;
|
| | | int sellState = GetSellSate(out fullSeverRemain,out personalRemain);
|
| | | string fullSeverRemainStr = fullSeverRemain > 0 ? UIHelper.AppendStringColor(TextColType.Green, fullSeverRemain.ToString(),true) : UIHelper.AppendStringColor(TextColType.Red, fullSeverRemain.ToString());
|
| | | string personalRemainStr = personalRemain > 0 ? UIHelper.AppendStringColor(TextColType.Green, personalRemain.ToString(),true) : UIHelper.AppendStringColor(TextColType.Red, personalRemain.ToString());
|
| | | string fullSeverRemainStr = fullSeverRemain > 0 ? UIHelper.AppendColor(TextColType.Green, fullSeverRemain.ToString(),true) : UIHelper.AppendColor(TextColType.Red, fullSeverRemain.ToString());
|
| | | string personalRemainStr = personalRemain > 0 ? UIHelper.AppendColor(TextColType.Green, personalRemain.ToString(),true) : UIHelper.AppendColor(TextColType.Red, personalRemain.ToString());
|
| | | fullServerRemainNum.text = fullSeverRemainStr;
|
| | | personalRemainNum.text = personalRemainStr;
|
| | | switch (sellState)
|
| | |
| | | m_ItemSlider.value = progress;
|
| | |
|
| | | m_RealmPoint.transform.localPosition = m_RealmPoint.transform.localPosition.SetX(m_ContainerPoint.rect.width * (leftRatio + deltaRatio * 0.5f));
|
| | | m_RealmPoint.text = StringUtility.Contact(UIHelper.AppendStringColor(realmPoint >= config.NeedPoint ? TextColType.Green : TextColType.Red,
|
| | | m_RealmPoint.text = StringUtility.Contact(UIHelper.AppendColor(realmPoint >= config.NeedPoint ? TextColType.Green : TextColType.Red,
|
| | | realmPoint.ToString()), "/", config.NeedPoint);
|
| | |
|
| | | m_OpenRemind.text = realmPoint < config.NeedPoint ?
|
| | |
| | | m_RealmIconNext.Display(_realmLv);
|
| | | var fightPower = PlayerDatas.Instance.baseData.FightPoint;
|
| | |
|
| | | m_FightPower.text = StringUtility.Contact(UIHelper.AppendStringColor(TextColType.Green, Language.Get("RolePromoteBetterFight")),
|
| | | UIHelper.AppendStringColor(fightPower >= config.FightPower ? TextColType.Green : TextColType.Red, fightPower.ToString())
|
| | | m_FightPower.text = StringUtility.Contact(UIHelper.AppendColor(TextColType.Green, Language.Get("RolePromoteBetterFight")),
|
| | | UIHelper.AppendColor(fightPower >= config.FightPower ? TextColType.Green : TextColType.Red, fightPower.ToString())
|
| | | , "/", config.FightPower);
|
| | | }
|
| | | }
|
| | |
| | | itemCell.countText.gameObject.SetActive(true);
|
| | | if(GetRenameToolNum() > 0)
|
| | | {
|
| | | itemCell.countText.text = StringUtility.Contact(UIHelper.AppendStringColor(TextColType.Green,GetRenameToolNum().ToString()),
|
| | | itemCell.countText.text = StringUtility.Contact(UIHelper.AppendColor(TextColType.Green,GetRenameToolNum().ToString()),
|
| | | "/",1);
|
| | | }
|
| | | else
|
| | | {
|
| | | itemCell.countText.text = StringUtility.Contact(UIHelper.AppendStringColor(TextColType.Red,0.ToString()),
|
| | | itemCell.countText.text = StringUtility.Contact(UIHelper.AppendColor(TextColType.Red,0.ToString()),
|
| | | "/", 1);
|
| | | }
|
| | | itemCell.cellBtn.RemoveAllListeners();
|
| | |
| | | }
|
| | | var _magicEssence = PlayerDatas.Instance.extersion.magicEssence;
|
| | | m_MagicEssenceTxt.text = StringUtility.Contact(_magicEssence >= _cfg.NeedMJ ?
|
| | | UIHelper.AppendStringColor(TextColType.Green, _magicEssence.ToString()) :
|
| | | UIHelper.AppendStringColor(TextColType.Red, _magicEssence.ToString()), "/", _cfg.NeedMJ);
|
| | | UIHelper.AppendColor(TextColType.Green, _magicEssence.ToString()) :
|
| | | UIHelper.AppendColor(TextColType.Red, _magicEssence.ToString()), "/", _cfg.NeedMJ);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | m_ComposeRedpoint.redpointId = _redpointTypeKey * 100 + model.presentSelectComposeRune;
|
| | | var _magicEssence = PlayerDatas.Instance.extersion.magicEssence;
|
| | | m_MagicEssenceTxt.text = StringUtility.Contact(_magicEssence >= _cfg.NeedMJ ?
|
| | | UIHelper.AppendStringColor(TextColType.Green, _magicEssence.ToString()) :
|
| | | UIHelper.AppendStringColor(TextColType.Red, _magicEssence.ToString()), "/", _cfg.NeedMJ);
|
| | | UIHelper.AppendColor(TextColType.Green, _magicEssence.ToString()) :
|
| | | UIHelper.AppendColor(TextColType.Red, _magicEssence.ToString()), "/", _cfg.NeedMJ);
|
| | |
|
| | | ItemConfig _itemCfg = ItemConfig.Get(_cfg.NeedItem[0]);
|
| | | m_Rune1Img.SetSprite(_itemCfg.IconKey);
|
| | | RuneData _rune1 = null;
|
| | | var _runeCnt = runeModel.GetMaxLevelRuneCnt(_cfg.NeedItem[0], out _rune1);
|
| | | m_Rune1NumTxt.text = StringUtility.Contact(_runeCnt > 0 ?
|
| | | UIHelper.AppendStringColor(TextColType.White, _runeCnt.ToString()) :
|
| | | UIHelper.AppendStringColor(TextColType.Red, _runeCnt.ToString()), "/", 1);
|
| | | UIHelper.AppendColor(TextColType.White, _runeCnt.ToString()) :
|
| | | UIHelper.AppendColor(TextColType.Red, _runeCnt.ToString()), "/", 1);
|
| | | m_Rune1NameTxt.text = StringUtility.Contact(_itemCfg.ItemName, " Lv.", _rune1 == null ? 1 : _rune1.lv);
|
| | | m_Rune1NameTxt.color = UIHelper.GetUIColor(_itemCfg.ItemColor, true);
|
| | |
|
| | |
| | | RuneData _rune2 = null;
|
| | | _runeCnt = runeModel.GetMaxLevelRuneCnt(_cfg.NeedItem[1], out _rune2);
|
| | | m_Rune2NumTxt.text = StringUtility.Contact(_runeCnt > 0 ?
|
| | | UIHelper.AppendStringColor(TextColType.White, _runeCnt.ToString()) :
|
| | | UIHelper.AppendStringColor(TextColType.Red, _runeCnt.ToString()), "/", 1);
|
| | | UIHelper.AppendColor(TextColType.White, _runeCnt.ToString()) :
|
| | | UIHelper.AppendColor(TextColType.Red, _runeCnt.ToString()), "/", 1);
|
| | | m_Rune2NameTxt.text = StringUtility.Contact(_itemCfg.ItemName, " Lv.", _rune2 == null ? 1 : _rune2.lv);
|
| | | m_Rune2NameTxt.color = UIHelper.GetUIColor(_itemCfg.ItemColor, true);
|
| | |
|
| | |
| | | m_RuneLevelUpBtn.gameObject.SetActive(!_isRuneMaxLv);
|
| | | //m_ContainerLevelUp.gameObject.SetActive(!_isRuneMaxLv);
|
| | | m_ContaienrMaxLevel.gameObject.SetActive(_isRuneMaxLv);
|
| | | runeLevelUpItemNum.text = StringUtility.Contact(UIHelper.AppendStringColor(
|
| | | runeLevelUpItemNum.text = StringUtility.Contact(UIHelper.AppendColor(
|
| | | model.RuneSplinters >= _levelUpExp ? TextColType.Green : TextColType.Red
|
| | | , model.RuneSplinters.ToString(), true), "/", _levelUpExp);
|
| | | }
|
| | |
| | | |
| | | _describeText.alignment = TextAnchor.UpperCenter; |
| | | _describeText.text = StringUtility.Contact(itemPathModel.extraInfos[0], "\n", |
| | | UIHelper.AppendStringColor(TextColType.Blue, itemPathModel.extraInfos[1])); |
| | | UIHelper.AppendColor(TextColType.Blue, itemPathModel.extraInfos[1])); |
| | | |
| | | } |
| | | |
| | |
| | | var requireSeries = skillConfig.RequireTalentSeries();
|
| | | var point = model.GetSeriesPoint(talentConfig.type, requireSeries);
|
| | | var requireDisplay = StringUtility.Contact(point, "/", requireSeriesPoint);
|
| | | requireDisplay = UIHelper.AppendStringColor(point >= requireSeriesPoint ?
|
| | | requireDisplay = UIHelper.AppendColor(point >= requireSeriesPoint ?
|
| | | TextColType.Green : TextColType.Red, requireDisplay);
|
| | | var seriesDisplay = Language.Get("TalentSeriesCondition", Language.Get(StringUtility.Contact("TalentSeries_", requireSeries)));
|
| | | m_SelectConditions[index].text = StringUtility.Contact(seriesDisplay, requireDisplay);
|
| | |
| | | var requirePropertyValue = skillConfig.RequirePropertyValue();
|
| | | var propertyValue = UIHelper.GetPropertyMapPlayerData((AttrEnum)requireProperty);
|
| | | var requireDisplay = StringUtility.Contact(propertyValue, "/", requirePropertyValue);
|
| | | requireDisplay = UIHelper.AppendStringColor(propertyValue >= requirePropertyValue ?
|
| | | requireDisplay = UIHelper.AppendColor(propertyValue >= requirePropertyValue ?
|
| | | TextColType.Green : TextColType.Red, requireDisplay);
|
| | | var propertyConfig = PlayerPropertyConfig.Get(requireProperty);
|
| | | var propertyDisplay = Language.Get("TalentPropertyCondition", propertyConfig.Name);
|
| | |
| | | var treasureConfig = TreasureConfig.Get(treasureId);
|
| | | bool satisfy = PlayerDatas.Instance.skill.GetSKillById(skillConfig.LearnSkillReq) != null;
|
| | | var requireDisplay = StringUtility.Contact(learnSkillConfig.SkillName, "(", treasureConfig.Name, ")");
|
| | | requireDisplay = UIHelper.AppendStringColor(satisfy ? TextColType.Green : TextColType.Red, requireDisplay);
|
| | | requireDisplay = UIHelper.AppendColor(satisfy ? TextColType.Green : TextColType.Red, requireDisplay);
|
| | | m_SelectConditions[index].text = StringUtility.Contact(Language.Get("TalentPreTreasureSkillCondition"), requireDisplay);
|
| | | index++;
|
| | | }
|
| | |
| | | {
|
| | | m_SelectConditions[index].gameObject.SetActive(true);
|
| | | var requireDisplay = StringUtility.Contact(learnSkillConfig.SkillName, " ", learnTalent.level, "/", skillConfig.LearnSkillLV);
|
| | | requireDisplay = UIHelper.AppendStringColor(learnTalent.level >= skillConfig.LearnSkillLV ?
|
| | | requireDisplay = UIHelper.AppendColor(learnTalent.level >= skillConfig.LearnSkillLV ?
|
| | | TextColType.Green : TextColType.Red, requireDisplay);
|
| | | m_SelectConditions[index].text = StringUtility.Contact(Language.Get("TalentPreSkillCondition"), requireDisplay);
|
| | | index++;
|
| | |
| | | }
|
| | | var preSkillConfig = SkillConfig.Get(preSkill);
|
| | | var displayLevel = StringUtility.Contact(
|
| | | UIHelper.AppendStringColor(satisfyLevel ? TextColType.Green : TextColType.Red, preSkillLevel.ToString())
|
| | | UIHelper.AppendColor(satisfyLevel ? TextColType.Green : TextColType.Red, preSkillLevel.ToString())
|
| | | , "/", config.LearnSkillLV);
|
| | | m_PreSkillCondition.text = Language.Get("PotentialPreSkillCondition",
|
| | | preSkillConfig.SkillName, displayLevel);
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | shopItemCell.itemCell.countText.text = StringUtility.Contact(UIHelper.AppendStringColor(TextColType.Red, remainNum.ToString()),
|
| | | shopItemCell.itemCell.countText.text = StringUtility.Contact(UIHelper.AppendColor(TextColType.Red, remainNum.ToString()),
|
| | | "/" + canBuyCnt.ToString());
|
| | | shopItemCell.sellImage.gameObject.SetActive(true);
|
| | | shopItemCell.stateImage.gameObject.SetActive(false);
|
| | |
| | | ulong haveMoney = UIHelper.GetMoneyCnt(1);
|
| | | if (haveMoney >= (ulong)chestsConfig.OpenMoney)
|
| | | {
|
| | | conditionText.text = Language.Get("OpenBoxCostMoney", UIHelper.AppendStringColor(TextColType.Green, chestsConfig.OpenMoney.ToString()));
|
| | | conditionText.text = Language.Get("OpenBoxCostMoney", UIHelper.AppendColor(TextColType.Green, chestsConfig.OpenMoney.ToString()));
|
| | | }
|
| | | else
|
| | | {
|
| | | conditionText.text = Language.Get("OpenBoxCostMoney", UIHelper.AppendStringColor(TextColType.Red, chestsConfig.OpenMoney.ToString()));
|
| | | conditionText.text = Language.Get("OpenBoxCostMoney", UIHelper.AppendColor(TextColType.Red, chestsConfig.OpenMoney.ToString()));
|
| | | }
|
| | | }
|
| | | else
|
| | |
| | |
|
| | | if (!m_storeModel.MoneyIsEnough(buyItem.storeConfig.MoneyType, _price))
|
| | | {
|
| | | buyPriceText.text = UIHelper.AppendStringColor(TextColType.Red, _price.ToString());
|
| | | buyPriceText.text = UIHelper.AppendColor(TextColType.Red, _price.ToString());
|
| | | }
|
| | | else
|
| | | {
|
| | | buyPriceText.text = UIHelper.AppendStringColor(TextColType.Green, _price.ToString());
|
| | | buyPriceText.text = UIHelper.AppendColor(TextColType.Green, _price.ToString());
|
| | | }
|
| | |
|
| | | if (_price <= 0)
|
| | |
| | | {
|
| | | if (offset > 0)
|
| | | {
|
| | | needPoinNum.text = UIHelper.AppendStringColor(TextColType.Red, StringUtility.Contact(needPoint, Language.Get("KnapS118", offset)));
|
| | | needPoinText.text = UIHelper.AppendStringColor(TextColType.Red, msg);
|
| | | needPoinNum.text = UIHelper.AppendColor(TextColType.Red, StringUtility.Contact(needPoint, Language.Get("KnapS118", offset)));
|
| | | needPoinText.text = UIHelper.AppendColor(TextColType.Red, msg);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | |
|
| | | if (!m_storeModel.MoneyIsEnough(buyItem.storeConfig.MoneyType, _price))
|
| | | {
|
| | | buyPriceText.text = UIHelper.AppendStringColor(TextColType.Red, _price.ToString());
|
| | | buyPriceText.text = UIHelper.AppendColor(TextColType.Red, _price.ToString());
|
| | | }
|
| | | else
|
| | | {
|
| | | buyPriceText.text = UIHelper.AppendStringColor(TextColType.Green, _price.ToString());
|
| | | buyPriceText.text = UIHelper.AppendColor(TextColType.Green, _price.ToString());
|
| | | }
|
| | |
|
| | | if (_price <= 0)
|
| | |
| | | {
|
| | | if (offset > 0)
|
| | | {
|
| | | needPoinNum.text = UIHelper.AppendStringColor(TextColType.Red, StringUtility.Contact(needPoint, Language.Get("KnapS118", offset)));
|
| | | needPoinText.text = UIHelper.AppendStringColor(TextColType.Red, msg);
|
| | | needPoinNum.text = UIHelper.AppendColor(TextColType.Red, StringUtility.Contact(needPoint, Language.Get("KnapS118", offset)));
|
| | | needPoinText.text = UIHelper.AppendColor(TextColType.Red, msg);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | |
|
| | | if (!m_storeModel.MoneyIsEnough(buyItem.storeConfig.MoneyType, _price))
|
| | | {
|
| | | buyPriceText.text = UIHelper.AppendStringColor(TextColType.Red, _price.ToString());
|
| | | buyPriceText.text = UIHelper.AppendColor(TextColType.Red, _price.ToString());
|
| | | }
|
| | | else
|
| | | {
|
| | | buyPriceText.text = UIHelper.AppendStringColor(TextColType.Green, _price.ToString());
|
| | | buyPriceText.text = UIHelper.AppendColor(TextColType.Green, _price.ToString());
|
| | | }
|
| | |
|
| | |
|
| | |
| | |
|
| | | if (!m_storeModel.MoneyIsEnough(buyItem.storeConfig.MoneyType, _price))
|
| | | {
|
| | | buyPriceText.text = UIHelper.AppendStringColor(TextColType.Red, _price.ToString());
|
| | | buyPriceText.text = UIHelper.AppendColor(TextColType.Red, _price.ToString());
|
| | | }
|
| | | else
|
| | | {
|
| | | buyPriceText.text = UIHelper.AppendStringColor(TextColType.Green, _price.ToString());
|
| | | buyPriceText.text = UIHelper.AppendColor(TextColType.Green, _price.ToString());
|
| | | }
|
| | |
|
| | | if (_price <= 0)
|
| | |
| | |
|
| | | if (!m_storeModel.MoneyIsEnough(buyItem.storeConfig.MoneyType, _price))
|
| | | {
|
| | | buyPriceText.text = UIHelper.AppendStringColor(TextColType.Red, _price.ToString());
|
| | | buyPriceText.text = UIHelper.AppendColor(TextColType.Red, _price.ToString());
|
| | | }
|
| | | else
|
| | | {
|
| | | buyPriceText.text = UIHelper.AppendStringColor(TextColType.Green, _price.ToString());
|
| | | buyPriceText.text = UIHelper.AppendColor(TextColType.Green, _price.ToString());
|
| | | }
|
| | |
|
| | | if (_price <= 0)
|
| | |
| | | var _realmCfg = RealmConfig.Get(_realmLv);
|
| | | if (PlayerDatas.Instance.baseData.realmLevel < _realmLv)
|
| | | {
|
| | | conditionText.text = UIHelper.AppendStringColor(TextColType.Red, Language.Get("RealmLimit1"));
|
| | | conditionText.text = UIHelper.AppendColor(TextColType.Red, Language.Get("RealmLimit1"));
|
| | | if (_realmLv != 0)
|
| | | {
|
| | | conditionValueText.SetSprite(_realmCfg.Img);
|
| | |
| | |
|
| | | if (!m_storeModel.MoneyIsEnough(buyItem.storeConfig.MoneyType, _price))
|
| | | {
|
| | | buyPriceText.text = UIHelper.AppendStringColor(TextColType.Red, _price.ToString());
|
| | | buyPriceText.text = UIHelper.AppendColor(TextColType.Red, _price.ToString());
|
| | | }
|
| | | else
|
| | | {
|
| | | buyPriceText.text = UIHelper.AppendStringColor(TextColType.Green, _price.ToString());
|
| | | buyPriceText.text = UIHelper.AppendColor(TextColType.Green, _price.ToString());
|
| | | }
|
| | |
|
| | | if (_price <= 0)
|
| | |
| | | {
|
| | | case 7:
|
| | | int willRefreshTime = GetWillRefreshTime();
|
| | | return Language.Get(resetTimeDict[type], UIHelper.AppendStringColor(TextColType.Green, TimeUtility.SecondsToHMS(willRefreshTime), true));
|
| | | return Language.Get(resetTimeDict[type], UIHelper.AppendColor(TextColType.Green, TimeUtility.SecondsToHMS(willRefreshTime), true));
|
| | | default:
|
| | | return Language.Get(resetTimeDict[type]);
|
| | | }
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | var remainNumDescription = remainNum > 0 ? remainNum.ToString() : UIHelper.AppendStringColor(TextColType.Red, remainNum.ToString());
|
| | | var remainNumDescription = remainNum > 0 ? remainNum.ToString() : UIHelper.AppendColor(TextColType.Red, remainNum.ToString());
|
| | | shopItemCell.itemCell.countText.text = StringUtility.Contact(remainNumDescription, "/", canBuyCnt);
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | shopItemCell.itemCell.countText.text = StringUtility.Contact(UIHelper.AppendStringColor(TextColType.Red, remainNum.ToString()),
|
| | | shopItemCell.itemCell.countText.text = StringUtility.Contact(UIHelper.AppendColor(TextColType.Red, remainNum.ToString()),
|
| | | "/" + canBuyCnt.ToString());
|
| | | shopItemCell.sellImage.gameObject.SetActive(true);
|
| | | shopItemCell.buyBtn.gameObject.SetActive(false);
|
| | |
| | | int color = ItemLogicUtility.Instance.GetItemQuality(model.itemId, model.useDataDict);
|
| | | _WingButton.IconBG.SetItemBackGround(color);
|
| | | _WingButton.Icon.SetSprite(tagItem.IconKey);
|
| | | _WingButton.WingsText.text = UIHelper.AppendStringColor((TextColType)color, tagItem.ItemName, true);
|
| | | _WingButton.WingsText.text = UIHelper.AppendColor((TextColType)color, tagItem.ItemName, true);
|
| | | int _currentRefining = 0;//当前精炼度
|
| | | if (WingDic[Index].GetUseDataModel(42) != null)
|
| | | _currentRefining = WingDic[Index].GetUseDataModel(42)[0];
|
| | |
| | | ulong haveMoney = UIHelper.GetMoneyCnt(1);
|
| | | if (haveMoney >= (ulong)config.OpenMoney)
|
| | | {
|
| | | m_Condition0.text = Language.Get("OpenBoxCostMoney", UIHelper.AppendStringColor(TextColType.Green, config.OpenMoney.ToString()));
|
| | | m_Condition0.text = Language.Get("OpenBoxCostMoney", UIHelper.AppendColor(TextColType.Green, config.OpenMoney.ToString()));
|
| | | }
|
| | | else
|
| | | {
|
| | | m_Condition0.text = Language.Get("OpenBoxCostMoney", UIHelper.AppendStringColor(TextColType.Red, config.OpenMoney.ToString()));
|
| | | m_Condition0.text = Language.Get("OpenBoxCostMoney", UIHelper.AppendColor(TextColType.Red, config.OpenMoney.ToString()));
|
| | | }
|
| | | }
|
| | | else
|
| | |
| | | {
|
| | | if (ConfirmCancel.iconHaveCnt >= ConfirmCancel.iconNeedCnt)
|
| | | {
|
| | | itemBaisc.countText.text = StringUtility.Contact(UIHelper.AppendStringColor(TextColType.Green, ConfirmCancel.iconHaveCnt.ToString(), true), "/", ConfirmCancel.iconNeedCnt);
|
| | | itemBaisc.countText.text = StringUtility.Contact(UIHelper.AppendColor(TextColType.Green, ConfirmCancel.iconHaveCnt.ToString(), true), "/", ConfirmCancel.iconNeedCnt);
|
| | | }
|
| | | else
|
| | | {
|
| | | itemBaisc.countText.text = StringUtility.Contact(UIHelper.AppendStringColor(TextColType.Red, ConfirmCancel.iconHaveCnt.ToString()), "/", ConfirmCancel.iconNeedCnt);
|
| | | itemBaisc.countText.text = StringUtility.Contact(UIHelper.AppendColor(TextColType.Red, ConfirmCancel.iconHaveCnt.ToString()), "/", ConfirmCancel.iconNeedCnt);
|
| | | }
|
| | | }
|
| | | else
|
| | |
| | | { |
| | | if (treasureConfig.PreTreasure == 0) |
| | | { |
| | | var levelLimitHint = UIHelper.AppendStringColor( |
| | | var levelLimitHint = UIHelper.AppendColor( |
| | | PlayerDatas.Instance.baseData.LV >= treasureConfig.ChallengeLevel ? TextColType.Green : TextColType.Red, treasureConfig.ChallengeLevel.ToString(), true); |
| | | m_LevelLimit.text = Language.Get("TreasureLevelLimit", levelLimitHint); |
| | | |
| | | } |
| | | else |
| | | { |
| | | var levelLimitHint = UIHelper.AppendStringColor( |
| | | var levelLimitHint = UIHelper.AppendColor( |
| | | PlayerDatas.Instance.baseData.LV >= treasureConfig.ChallengeLevel ? TextColType.Green : TextColType.Red, treasureConfig.ChallengeLevel.ToString(), true); |
| | | |
| | | var preTreasureConfig = TreasureConfig.Get(treasureConfig.PreTreasure); |
| | | var treasureLimitHint = UIHelper.AppendStringColor( |
| | | var treasureLimitHint = UIHelper.AppendColor( |
| | | treasure.state == TreasureState.Collecting ? TextColType.Green : TextColType.Red, preTreasureConfig.Name, true); |
| | | |
| | | m_LevelLimit.text = Language.Get("TreasureLvLimit", levelLimitHint, treasureLimitHint); |
| | |
| | | {
|
| | | if (config.PreTreasure == 0)
|
| | | {
|
| | | var levelLimitHint = UIHelper.AppendStringColor(
|
| | | var levelLimitHint = UIHelper.AppendColor(
|
| | | PlayerDatas.Instance.baseData.LV >= config.ChallengeLevel ? TextColType.Green : TextColType.Red, config.ChallengeLevel.ToString(), true);
|
| | | m_Limit.text = Language.Get("TreasureLevelLimit", levelLimitHint);
|
| | |
|
| | | }
|
| | | else
|
| | | {
|
| | | var levelLimitHint = UIHelper.AppendStringColor(
|
| | | var levelLimitHint = UIHelper.AppendColor(
|
| | | PlayerDatas.Instance.baseData.LV >= config.ChallengeLevel ? TextColType.Green : TextColType.Red, config.ChallengeLevel.ToString(), true);
|
| | |
|
| | | var preTreasureConfig = TreasureConfig.Get(config.PreTreasure);
|
| | | var treasureLimitHint = UIHelper.AppendStringColor(
|
| | | var treasureLimitHint = UIHelper.AppendColor(
|
| | | m_Treasure.state == TreasureState.Collecting ? TextColType.Green : TextColType.Red, preTreasureConfig.Name, true);
|
| | |
|
| | | m_Limit.text = Language.Get("TreasureLvLimit", levelLimitHint, treasureLimitHint);
|
| | |
| | | if (model.TryGetAchievement(_achievementId, out achievement))
|
| | | {
|
| | | var progress = achievement.completed ? config.NeedCnt : Mathf.Clamp(achievement.progress, 0, config.NeedCnt);
|
| | | m_Progress.text = StringUtility.Contact("(", UIHelper.AppendStringColor(progress >= config.NeedCnt ? TextColType.Green : TextColType.Red, progress.ToString(), true)
|
| | | m_Progress.text = StringUtility.Contact("(", UIHelper.AppendColor(progress >= config.NeedCnt ? TextColType.Green : TextColType.Red, progress.ToString(), true)
|
| | | , "/", config.NeedCnt, ")");
|
| | | m_Complete.gameObject.SetActive(achievement.completed);
|
| | | m_Goto.gameObject.SetActive(!achievement.completed);
|
| | |
| | | case TreasurePrivilege.PetHp:
|
| | | case TreasurePrivilege.MountAtk:
|
| | | case TreasurePrivilege.Sp:
|
| | | if (state == TreasurePrivilegeState.Complete) { return UIHelper.AppendStringColor(TextColType.Green, totalProgress.ToString(), true); }
|
| | | if (state == TreasurePrivilegeState.Complete) { return UIHelper.AppendColor(TextColType.Green, totalProgress.ToString(), true); }
|
| | | else if (state == TreasurePrivilegeState.Doing)
|
| | | {
|
| | | return StringUtility.Contact(UIHelper.AppendStringColor(TextColType.Red, presentGetCount.ToString(), true), "/", (presentFinishCount / progress + 1) * progress);
|
| | | return StringUtility.Contact(UIHelper.AppendColor(TextColType.Red, presentGetCount.ToString(), true), "/", (presentFinishCount / progress + 1) * progress);
|
| | | }
|
| | | else if (state == TreasurePrivilegeState.Reward)
|
| | | {
|
| | | var _completeCount = (presentFinishCount / progress + 1) * progress;
|
| | | return StringUtility.Contact(UIHelper.AppendStringColor(TextColType.Green, presentGetCount.ToString(), true), "/", _completeCount);
|
| | | return StringUtility.Contact(UIHelper.AppendColor(TextColType.Green, presentGetCount.ToString(), true), "/", _completeCount);
|
| | | }
|
| | | break;
|
| | | case TreasurePrivilege.StrengthenAdd:
|
| | |
| | | || state == TreasurePrivilegeState.Reward)
|
| | | {
|
| | | var colortype = presentGetCount >= configs[next].countNeed ? TextColType.Green : TextColType.Red;
|
| | | return StringUtility.Contact(UIHelper.AppendStringColor(colortype, presentGetCount.ToString(), true), "/", configs[next].countNeed);
|
| | | return StringUtility.Contact(UIHelper.AppendColor(colortype, presentGetCount.ToString(), true), "/", configs[next].countNeed);
|
| | | }
|
| | | break;
|
| | | }
|
| | |
| | | {
|
| | | if(info.IsCompleted)
|
| | | {
|
| | | return UIHelper.AppendStringColor(TextColType.Green, StringUtility.Contact(info.targetNum, "/", info.targetNum));
|
| | | return UIHelper.AppendColor(TextColType.Green, StringUtility.Contact(info.targetNum, "/", info.targetNum));
|
| | | }
|
| | | else
|
| | | {
|
| | | if (progress < info.targetNum)
|
| | | {
|
| | | return UIHelper.AppendStringColor(TextColType.Red, StringUtility.Contact(progress, "/", info.targetNum), true);
|
| | | return UIHelper.AppendColor(TextColType.Red, StringUtility.Contact(progress, "/", info.targetNum), true);
|
| | | }
|
| | | else
|
| | | {
|
| | | return UIHelper.AppendStringColor(TextColType.Green, StringUtility.Contact(progress, "/", info.targetNum));
|
| | | return UIHelper.AppendColor(TextColType.Green, StringUtility.Contact(progress, "/", info.targetNum));
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | {
|
| | | effect.Stop();
|
| | | }
|
| | | progressText.text = UIHelper.AppendStringColor(TextColType.Green,StringUtility.Contact("(",progress,"/",findInfolist.Count,")"), true);
|
| | | progressText.text = UIHelper.AppendColor(TextColType.Green,StringUtility.Contact("(",progress,"/",findInfolist.Count,")"), true);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | {
|
| | | effect.Stop();
|
| | | }
|
| | | progressText.text = UIHelper.AppendStringColor(TextColType.Red, StringUtility.Contact("(",progress, "/", findInfolist.Count,")"));
|
| | | progressText.text = UIHelper.AppendColor(TextColType.Red, StringUtility.Contact("(",progress, "/", findInfolist.Count,")"));
|
| | | }
|
| | | gotoBtn.gameObject.SetActive(true);
|
| | | if (treasure.state == TreasureState.Collected)
|
| | |
| | | GetFairyJade();
|
| | | if (InvestInfo.curDay <= 0)
|
| | | {
|
| | | m_RemainingDays.text = string.Format(Language.Get("TheRemainingNumberDays_Z"), UIHelper.AppendStringColor(TextColType.Green, 0.ToString(), true));
|
| | | m_RemainingDays.text = string.Format(Language.Get("TheRemainingNumberDays_Z"), UIHelper.AppendColor(TextColType.Green, 0.ToString(), true));
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | {
|
| | | Day = 7 - InvestInfo.curDay;
|
| | | }
|
| | | m_RemainingDays.text = string.Format(Language.Get("TheRemainingNumberDays_Z"), UIHelper.AppendStringColor(TextColType.Green, Day.ToString(), true));
|
| | | m_RemainingDays.text = string.Format(Language.Get("TheRemainingNumberDays_Z"), UIHelper.AppendColor(TextColType.Green, Day.ToString(), true));
|
| | | }
|
| | |
|
| | | if (InvestInfo.investGold <= 0)
|
| | |
| | | }
|
| | | if (InvestInfo.curDay <= 0)
|
| | | {
|
| | | m_RemainingDays.text = string.Format(Language.Get("TheRemainingNumberDays_Z"), UIHelper.AppendStringColor(TextColType.Green, 0.ToString(), true));
|
| | | m_RemainingDays.text = string.Format(Language.Get("TheRemainingNumberDays_Z"), UIHelper.AppendColor(TextColType.Green, 0.ToString(), true));
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | {
|
| | | Day = 7 - InvestInfo.curDay;
|
| | | }
|
| | | m_RemainingDays.text = string.Format(Language.Get("TheRemainingNumberDays_Z"), UIHelper.AppendStringColor(TextColType.Green, Day.ToString(), true));
|
| | | m_RemainingDays.text = string.Format(Language.Get("TheRemainingNumberDays_Z"), UIHelper.AppendColor(TextColType.Green, Day.ToString(), true));
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | remainTimeText.text = UIHelper.AppendStringColor(TextColType.Red, Language.Get("XMZZ110"));
|
| | | remainTimeText.text = UIHelper.AppendColor(TextColType.Red, Language.Get("XMZZ110"));
|
| | | }
|
| | | }
|
| | |
|
| | |
| | |
|
| | | private static Regex m_TextColorRegex = new Regex("<color=#[0-9a-zA-Z]+>(.*)</color>", RegexOptions.Singleline);
|
| | |
|
| | | public static string AppendStringColor(TextColType type, string msg, bool bright = false)
|
| | | public static string AppendColor(TextColType type, string msg, bool bright = false)
|
| | | {
|
| | | if (m_TextColorRegex.IsMatch(msg))
|
| | | {
|
| | |
| | | {
|
| | | case 0:
|
| | | case 1:
|
| | | return AppendStringColor(TextColType.White, msg, bright);
|
| | | return AppendColor(TextColType.White, msg, bright);
|
| | | case 2:
|
| | | return AppendStringColor(TextColType.Blue, msg, bright);
|
| | | return AppendColor(TextColType.Blue, msg, bright);
|
| | | case 3:
|
| | | return AppendStringColor(TextColType.Purple, msg, bright);
|
| | | return AppendColor(TextColType.Purple, msg, bright);
|
| | | case 4:
|
| | | return AppendStringColor(TextColType.Orange, msg, bright);
|
| | | return AppendColor(TextColType.Orange, msg, bright);
|
| | | case 5:
|
| | | return AppendStringColor(TextColType.Red, msg, bright);
|
| | | return AppendColor(TextColType.Red, msg, bright);
|
| | | case 6:
|
| | | return AppendStringColor(TextColType.Pink, msg, bright);
|
| | | return AppendColor(TextColType.Pink, msg, bright);
|
| | | }
|
| | | return msg;
|
| | | }
|