summaryrefslogtreecommitdiff |
diff options
Diffstat (limited to 'src/roster-editor')
-rw-r--r-- | src/roster-editor/src/Struct/UI.elm | 12 | ||||
-rw-r--r-- | src/roster-editor/src/View/MainMenu.elm | 5 |
2 files changed, 16 insertions, 1 deletions
diff --git a/src/roster-editor/src/Struct/UI.elm b/src/roster-editor/src/Struct/UI.elm index 33e1181..1bc86bb 100644 --- a/src/roster-editor/src/Struct/UI.elm +++ b/src/roster-editor/src/Struct/UI.elm @@ -7,6 +7,7 @@ module Struct.UI exposing get_displayed_tab, set_displayed_tab, reset_displayed_tab, + tab_to_class_name, -- Which glyph slot is being edited? set_glyph_slot, get_glyph_slot @@ -55,6 +56,17 @@ set_displayed_tab tab ui = {ui | displayed_tab = tab} reset_displayed_tab : Type -> Type reset_displayed_tab ui = {ui | displayed_tab = CharacterSelectionTab} +tab_to_class_name : Tab -> String +tab_to_class_name tab = + case tab of + CharacterSelectionTab -> "characters" + PortraitSelectionTab -> "portraits" + WeaponSelectionTab -> "weapons" + ArmorSelectionTab -> "armors" + GlyphSelectionTab -> "glyphes" + GlyphBoardSelectionTab -> "glyphboards" + GlyphManagementTab -> "glyphmanagement" + get_glyph_slot : Type -> (Int, Int) get_glyph_slot ui = ui.glyph_slot diff --git a/src/roster-editor/src/View/MainMenu.elm b/src/roster-editor/src/View/MainMenu.elm index b40d706..d79e05c 100644 --- a/src/roster-editor/src/View/MainMenu.elm +++ b/src/roster-editor/src/View/MainMenu.elm @@ -21,7 +21,10 @@ import Struct.UI get_main_menu_button_html : (Html.Html Struct.Event.Type) get_main_menu_button_html = (Html.button - [ (Html.Events.onClick Struct.Event.GoToMainMenu) ] + [ + (Html.Events.onClick Struct.Event.GoToMainMenu), + (Html.Attributes.class "main-menu") + ] [ (Html.text "Main Menu") ] ) |