private void ShowSuiteWords(ushort suite, Text twoText, Text fourText, bool isTwo = false, bool isFour = false, bool isInBigShowPanel = false) { RuneBuffInfo runeBuff = ConfigManager.Get<RuneBuffInfo>(suite); if (runeBuff == null) return; string attrName = ConfigText.GetDefalutString(TextForMatType.AttributeUIText, (int)runeBuff.attrId); if (isTwo) twoText.color = m_ColorGreen; else twoText.color = m_ColorNormal; if (runeBuff.addType == 1) { if (runeBuff.attrId == 9 || runeBuff.attrId == 10 || runeBuff.attrId == 11 || runeBuff.attrId == 12 || runeBuff.attrId == 13) Util.SetText(twoText, (int)TextForMatType.RuneUIText, isInBigShowPanel ? 39 : 0, attrName, runeBuff.value.ToString("P2")); else Util.SetText(twoText, (int)TextForMatType.RuneUIText, isInBigShowPanel ? 39 : 0, attrName, runeBuff.value); } else if (runeBuff.addType == 2) Util.SetText(twoText, (int)TextForMatType.RuneUIText, isInBigShowPanel ? 39 : 0, attrName, runeBuff.value.ToString("P2")); if (isFour) fourText.color = m_ColorGreen; else fourText.color = m_ColorNormal; var buff = ConfigManager.Get<BuffInfo>(runeBuff.buffId); if (buff != null) { if (!isInBigShowPanel) Util.SetText(fourText, (int)TextForMatType.RuneUIText, 1, buff.desc); else Util.SetText(fourText, buff.desc); } }
private void ShowSuiteWords(ushort suite, Text twoText, Text fourText, bool isTwo = false, bool isFour = false, bool isInBigShowPanel = false) { RuneBuffInfo runeBuff = ConfigManager.Get <RuneBuffInfo>(suite); if (runeBuff == null) { return; } string attrName = ConfigText.GetDefalutString(TextForMatType.AttributeUIText, (int)runeBuff.attrId); color_green = GeneralConfigInfo.defaultConfig.RuneConclude; color_normal = GeneralConfigInfo.defaultConfig.RuneNormal; if (isTwo) { twoText.color = color_green; } else { twoText.color = color_normal; } if (runeBuff.addType == 1) { if (runeBuff.attrId == 9 || runeBuff.attrId == 10 || runeBuff.attrId == 11 || runeBuff.attrId == 12 || runeBuff.attrId == 13) { Util.SetText(twoText, (int)TextForMatType.RuneUIText, isInBigShowPanel ? 39 : 0, attrName, runeBuff.value.ToString("P2")); } else { Util.SetText(twoText, (int)TextForMatType.RuneUIText, isInBigShowPanel ? 39 : 0, attrName, runeBuff.value); } } else if (runeBuff.addType == 2) { Util.SetText(twoText, (int)TextForMatType.RuneUIText, isInBigShowPanel ? 39 : 0, attrName, runeBuff.value.ToString("P2")); } if (isFour) { fourText.color = color_green; } else { fourText.color = color_normal; } var buff = ConfigManager.Get <BuffInfo>(runeBuff.buffId); if (buff != null) { if (!isInBigShowPanel) { Util.SetText(fourText, (int)TextForMatType.RuneUIText, 1, buff.desc); } else { Util.SetText(fourText, buff.desc); } } }