summaryrefslogtreecommitdiff |
diff options
Diffstat (limited to 'src/roster-editor')
-rw-r--r-- | src/roster-editor/src/View/Character.elm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/roster-editor/src/View/Character.elm b/src/roster-editor/src/View/Character.elm index dd5649a..c55265d 100644 --- a/src/roster-editor/src/View/Character.elm +++ b/src/roster-editor/src/View/Character.elm @@ -7,6 +7,7 @@ module View.Character exposing -- Elm ------------------------------------------------------------------------- import Html import Html.Attributes +import Html.Events -- Roster Editor --------------------------------------------------------------- import Util.Html @@ -111,7 +112,12 @@ get_portrait_html char = (Html.div [ (Html.Attributes.class "character-portrait"), - (Html.Attributes.class "character-portrait-team-0") + (Html.Attributes.class "character-portrait-team-0"), + (Html.Events.onClick + (Struct.Event.ToggleCharacterBattleIndex + (Struct.Character.get_index char) + ) + ) ] [ (get_battle_index_html char), |