private void RefreshPropertyRow(Property property, CharacterInfoRow row) { row.SetLabel(property.Name); row.SetValue(property.ValueString()); if (property.HasNegativeModifiers()) { row.SetValueColor(this.negativeColor); } else { row.SetValueColor(property.HasModifiers() ? this.positiveColor : this.defaultColor); } }
private void RefreshAttributeRow(Attribute attribute, CharacterInfoRow row) { row.SetLabel(attribute.Name); row.SetValue(((int)attribute.Value()).ToString()); row.SetTooltip(attribute.Description); if (attribute.HasNegativeModifiers()) { row.SetValueColor(this.negativeColor); return; } row.SetValueColor(attribute.HasModifiers() ? this.positiveColor : this.defaultColor); }