From 1bbc394c55332221798bd82a44c07caa24db9281 Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Thu, 6 Dec 2018 22:10:37 +0100 Subject: ... --- src/roster-editor/src/View/Character.elm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/roster-editor') 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), -- cgit v1.2.3-70-g09d2