summaryrefslogtreecommitdiff |
diff options
author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2019-09-14 13:00:05 +0200 |
---|---|---|
committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2019-09-14 13:00:05 +0200 |
commit | f7c53eb60d2cba92a9da97dc1a09f574e0f91fbb (patch) | |
tree | 4e5e1367e2462eddcb566f67b0973eb89d952ed3 /src | |
parent | c70d77cea8ef6d98c3c1f50728e45b655d7b2a54 (diff) |
Display proper color when attribute is negative.
It still does not check if things are okay when using the other weapon,
though.
Diffstat (limited to 'src')
-rw-r--r-- | src/css/src/roster-editor/controlled-panel.scss | 4 | ||||
-rw-r--r-- | src/roster-editor/src/View/CharacterCard.elm | 21 |
2 files changed, 15 insertions, 10 deletions
diff --git a/src/css/src/roster-editor/controlled-panel.scss b/src/css/src/roster-editor/controlled-panel.scss index c1480ce..bd7667c 100644 --- a/src/css/src/roster-editor/controlled-panel.scss +++ b/src/css/src/roster-editor/controlled-panel.scss @@ -25,13 +25,11 @@ } -.roster-editor-atts .omnimod-negative-value, +.roster-editor-character-attributes .omnimod-negative-value, .roster-editor-invalid-glyph { background-color: $RED-2; - border-radius: 6px; border: solid 1px $RED-0; - padding: 2px; } .roster-editor-atts > * diff --git a/src/roster-editor/src/View/CharacterCard.elm b/src/roster-editor/src/View/CharacterCard.elm index ef211e9..7dd9f7c 100644 --- a/src/roster-editor/src/View/CharacterCard.elm +++ b/src/roster-editor/src/View/CharacterCard.elm @@ -435,14 +435,21 @@ get_full_html current_tab char = ) (BattleCharacters.Struct.Equipment.get_glyph_board equipment) ), - (Battle.View.Omnimods.get_unsigned_html - (Battle.Struct.Omnimods.apply_damage_modifier - (Battle.Struct.Omnimods.get_attribute_mod - Battle.Struct.Attributes.DamageModifier - omnimods + (Html.div + [ + (Html.Attributes.class "roster-editor-character-attributes") + ] + [ + (Battle.View.Omnimods.get_unsigned_html + (Battle.Struct.Omnimods.apply_damage_modifier + (Battle.Struct.Omnimods.get_attribute_mod + Battle.Struct.Attributes.DamageModifier + omnimods + ) + omnimods + ) ) - omnimods - ) + ] ) ] ) |