summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/roster-editor')
-rw-r--r--src/roster-editor/src/View/CharacterCard.elm57
-rw-r--r--src/roster-editor/src/View/MessageBoard/Help.elm10
-rw-r--r--src/roster-editor/src/View/MessageBoard/Help/Guide.elm11
3 files changed, 52 insertions, 26 deletions
diff --git a/src/roster-editor/src/View/CharacterCard.elm b/src/roster-editor/src/View/CharacterCard.elm
index 7febc9f..f7c9513 100644
--- a/src/roster-editor/src/View/CharacterCard.elm
+++ b/src/roster-editor/src/View/CharacterCard.elm
@@ -30,6 +30,7 @@ import BattleCharacters.Struct.GlyphBoard
-- Local Module ----------------------------------------------------------------
import Struct.Character
import Struct.Event
+import Struct.HelpRequest
import Struct.UI
import View.Character
@@ -80,7 +81,15 @@ get_health_bar char_stats =
(String.fromInt (Battle.Struct.Statistics.get_max_health char_stats))
)
100.0
- [(Html.Attributes.class "character-card-health")]
+ [
+ (Html.Attributes.class "character-card-health"),
+ (Html.Attributes.class "clickable"),
+ (Html.Events.onClick
+ (Struct.Event.RequestedHelp
+ (Struct.HelpRequest.Statistic Battle.Struct.Statistics.MaxHealth)
+ )
+ )
+ ]
[]
[]
)
@@ -112,7 +121,17 @@ get_movement_bar char_stats =
)
)
100.0
- [(Html.Attributes.class "character-card-movement")]
+ [
+ (Html.Attributes.class "character-card-movement"),
+ (Html.Attributes.class "clickable"),
+ (Html.Events.onClick
+ (Struct.Event.RequestedHelp
+ (Struct.HelpRequest.Statistic
+ Battle.Struct.Statistics.MovementPoints
+ )
+ )
+ )
+ ]
[]
[]
)
@@ -315,16 +334,16 @@ get_glyph_board_details : (
get_glyph_board_details damage_modifier board =
(Html.div
[
- (Html.Attributes.class "character-card-glyph-board"),
- (Html.Attributes.class "clickable"),
- (Html.Events.onClick
- (Struct.Event.TabSelected Struct.UI.GlyphBoardSelectionTab)
- )
+ (Html.Attributes.class "character-card-glyph-board")
]
[
(Html.div
[
- (Html.Attributes.class "character-card-glyph-board-name")
+ (Html.Attributes.class "character-card-glyph-board-name"),
+ (Html.Attributes.class "clickable"),
+ (Html.Events.onClick
+ (Struct.Event.TabSelected Struct.UI.GlyphBoardSelectionTab)
+ )
]
[
(Html.text (BattleCharacters.Struct.GlyphBoard.get_name board))
@@ -333,6 +352,17 @@ get_glyph_board_details damage_modifier board =
(Battle.View.Omnimods.get_html_with_modifier
damage_modifier
(BattleCharacters.Struct.GlyphBoard.get_omnimods board)
+ ),
+ (Html.div
+ [
+ (Html.Attributes.class "clickable"),
+ (Html.Events.onClick
+ (Struct.Event.TabSelected Struct.UI.GlyphManagementTab)
+ )
+ ]
+ [
+ (Html.text "[PH] Select Glyphs")
+ ]
)
]
)
@@ -345,10 +375,7 @@ get_relevant_stats stats =
(Html.div
[
(Html.Attributes.class "character-card-stats"),
- (Html.Attributes.class "clickable"),
- (Html.Events.onClick
- (Struct.Event.TabSelected Struct.UI.GlyphManagementTab)
- )
+ (Html.Attributes.class "clickable")
]
(Battle.View.Statistic.get_all_but_gauges_html stats)
)
@@ -360,11 +387,7 @@ get_attributes : (
get_attributes atts =
(Html.div
[
- (Html.Attributes.class "character-card-atts"),
- (Html.Attributes.class "clickable"),
- (Html.Events.onClick
- (Struct.Event.TabSelected Struct.UI.GlyphManagementTab)
- )
+ (Html.Attributes.class "character-card-atts")
]
(Battle.View.Attribute.get_all_html atts)
)
diff --git a/src/roster-editor/src/View/MessageBoard/Help.elm b/src/roster-editor/src/View/MessageBoard/Help.elm
index dbd0412..dde800c 100644
--- a/src/roster-editor/src/View/MessageBoard/Help.elm
+++ b/src/roster-editor/src/View/MessageBoard/Help.elm
@@ -4,6 +4,10 @@ module View.MessageBoard.Help exposing (get_html)
import Html
import Html.Attributes
+-- Battle ----------------------------------------------------------------------
+import Battle.View.Help.Attribute
+import Battle.View.Help.Statistic
+
-- Local Module ----------------------------------------------------------------
import Struct.Event
import Struct.HelpRequest
@@ -30,6 +34,12 @@ get_html model =
Struct.HelpRequest.None ->
(View.MessageBoard.Help.Guide.get_html_contents model)
+ (Struct.HelpRequest.Attribute att_cat) ->
+ (Battle.View.Help.Attribute.get_html_contents att_cat)
+
+ (Struct.HelpRequest.Statistic stat_cat) ->
+ (Battle.View.Help.Statistic.get_html_contents stat_cat)
+
_ -> (View.MessageBoard.Help.Guide.get_html_contents model)
)
)
diff --git a/src/roster-editor/src/View/MessageBoard/Help/Guide.elm b/src/roster-editor/src/View/MessageBoard/Help/Guide.elm
index c271f78..bc95510 100644
--- a/src/roster-editor/src/View/MessageBoard/Help/Guide.elm
+++ b/src/roster-editor/src/View/MessageBoard/Help/Guide.elm
@@ -28,15 +28,8 @@ get_header_html title =
get_default_html_contents : (List (Html.Html Struct.Event.Type))
get_default_html_contents =
[
- (get_header_html "Selecting a Character"),
- (Html.text
- (
- "Click once on a character to focus them. This will show you"
- ++ " their stats, equipment, and other infos. If they are in"
- ++ " your team and active (the pulsating characters),"
- ++ " clicking on them again will let you take control."
- )
- )
+ (get_header_html "Modifying the Character Roster"),
+ (Html.text "The guide for this module is not yet available.")
]
--------------------------------------------------------------------------------