summaryrefslogtreecommitdiff
path: root/src/View
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2022-01-30 00:37:05 +0100
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2022-01-30 00:37:05 +0100
commitb1d6d8af0e31123d46e102bc68fcfd02d3b51256 (patch)
tree9caad859acaf7481d248d3d5e0de9d3c9114a0b2 /src/View
parent0705fbf7c20c5002c26a2c9faa9663b047189e39 (diff)
...
Diffstat (limited to 'src/View')
-rw-r--r--src/View/PlayerInput.elm38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/View/PlayerInput.elm b/src/View/PlayerInput.elm
index 01d926c..e8004f4 100644
--- a/src/View/PlayerInput.elm
+++ b/src/View/PlayerInput.elm
@@ -41,6 +41,44 @@ get_html model =
then
case model.ui.input of
Struct.UI.NoInput -> (Html.div [] [])
+ Struct.UI.FloatInput ->
+ (Html.div
+ [
+ (Html.Attributes.class "tonkadur-input")
+ ]
+ [
+ (Html.div
+ [
+ (Html.Attributes.class "tonkadur-input-instruction")
+ ]
+ [
+ (Html.text
+ (
+ "A number between "
+ ++ (String.fromFloat model.ui.min_float)
+ ++ " and "
+ ++ (String.fromFloat model.ui.max_float)
+ ++ " is expected:"
+ )
+ )
+ ]
+ ),
+ (Html.input
+ [
+ (Html.Attributes.class "tonkadur-input-field"),
+ (Html.Attributes.min
+ (String.fromFloat model.ui.min_float)
+ ),
+ (Html.Attributes.max
+ (String.fromFloat model.ui.max_float)
+ )
+ ]
+ [
+ ]
+ )
+ ]
+ )
+
Struct.UI.IntegerInput ->
(Html.div
[