4478 【开发】【BUG】装备TIPS的绿色字颜色没有统一
| | |
| | | [SerializeField] Text m_Titile; |
| | | [SerializeField] Text[] m_Properties; |
| | | |
| | | public void Display(EquipSuitPropertyEntry entry) |
| | | public void Display(EquipSuitPropertyEntry entry, bool isBrightUI) |
| | | { |
| | | var color = UIHelper.GetUIColor(entry.actived ? TextColType.Green : TextColType.White, true); |
| | | var color = entry.actived ? UIHelper.GetUIColor(TextColType.Green, isBrightUI) : UIHelper.GetUIColor(TextColType.White, true); |
| | | m_Titile.color = color; |
| | | |
| | | for (var i = 0; i < m_Properties.Length; i++) |
| | |
| | | |
| | | public void DisplayProperty(EquipSuitProperty property) |
| | | { |
| | | m_TwoSuit.Display(property.twoSuit); |
| | | m_FiveSuit.Display(property.fiveSuit); |
| | | m_TwoSuit.Display(property.twoSuit, true); |
| | | m_FiveSuit.Display(property.fiveSuit, true); |
| | | m_EightSuitDescription.text = GetEightSuitDescription(property.eightSuitId); |
| | | var color = UIHelper.GetUIColor(property.eightActived ? TextColType.Green : TextColType.White, true); |
| | | m_EightSuitTitle.color = color; |
| | |
| | | m_SuitEquipNames[i].text = setName + EquipSuitNameConfig.GetSuitName(suitInfo.level, place, suitInfo.job); |
| | | var hasSuit = suitInfo.places.Contains(place) |
| | | && suitInfo.placeStars.ContainsKey(place) && suitInfo.placeStars[place] >= star; |
| | | m_SuitEquipNames[i].color = UIHelper.GetUIColor(hasSuit ? TextColType.Green : TextColType.White); |
| | | m_SuitEquipNames[i].color = hasSuit ? UIHelper.GetUIColor(TextColType.Green, false) : UIHelper.GetUIColor(TextColType.White, true); |
| | | } |
| | | } |
| | | |
| | | void DisplaySuitProperty(int star) |
| | | { |
| | | m_TwoSuit.Display(suitInfo.twoSuitProperties[star]); |
| | | m_FiveSuit.Display(suitInfo.fiveSuitProperties[star]); |
| | | m_TwoSuit.Display(suitInfo.twoSuitProperties[star], false); |
| | | m_FiveSuit.Display(suitInfo.fiveSuitProperties[star], false); |
| | | m_EightSuitDescription.text = GetEightSuitDescription(suitInfo.job, suitInfo.level, star); |
| | | var eightSuitActive = suitInfo.eightSuits[star]; |
| | | var color = UIHelper.GetUIColor(eightSuitActive ? TextColType.Green : TextColType.White); |
| | | var color = eightSuitActive ? UIHelper.GetUIColor(TextColType.Green, false) : UIHelper.GetUIColor(TextColType.White, true); |
| | | m_EightSuitTitle.color = color; |
| | | m_EightSuitDescription.color = color; |
| | | } |
| | |
| | | DisplaySuitInfo(0); |
| | | } |
| | | |
| | | void DisplaySuitInfo( int star) |
| | | void DisplaySuitInfo(int star) |
| | | { |
| | | DisplaySuitCollections(star); |
| | | DisplayProperty(star); |
| | |
| | | |
| | | config = eightConfigs.Find(x => { return x.star == star; }); |
| | | |
| | | m_TwoSuit.Display(twoSuit); |
| | | m_FiveSuit.Display(fiveSuit); |
| | | m_TwoSuit.Display(twoSuit, true); |
| | | m_FiveSuit.Display(fiveSuit, true); |
| | | m_EightSuitDescription.text = GetEightSuitDescription(config.id); |
| | | var color = UIHelper.GetUIColor(eightSuitLevel >= star ? TextColType.Green : TextColType.White, true); |
| | | m_EightSuitTitle.color = color; |
| | |
| | | return StringUtility.Contact("<color=#", "fff4cd", ">", msg, "</color>");
|
| | | case TextColType.LightGreen:
|
| | | return StringUtility.Contact("<color=#", "8ddc11", ">", msg, "</color>");
|
| | | case TextColType.Gray:
|
| | | return StringUtility.Contact("<color=#", "686868", ">", msg, "</color>");
|
| | | }
|
| | | return msg;
|
| | | }
|