| summaryrefslogtreecommitdiff |
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2022-01-30 00:37:05 +0100 |
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2022-01-30 00:37:05 +0100 |
| commit | b1d6d8af0e31123d46e102bc68fcfd02d3b51256 (patch) | |
| tree | 9caad859acaf7481d248d3d5e0de9d3c9114a0b2 /src/View/PlayerInput.elm | |
| parent | 0705fbf7c20c5002c26a2c9faa9663b047189e39 (diff) | |
...
Diffstat (limited to 'src/View/PlayerInput.elm')
| -rw-r--r-- | src/View/PlayerInput.elm | 38 |
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 [ |


