Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
        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);
        }