File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11UI
22--
33
4- Up next are the UI elements: The text messages at the beginning and end of the game and the
4+ Up next are the UI elements. The text messages at the beginning and end of the game and the
55clock at the top left of the screen.
66
77We need two more imports:
@@ -19,7 +19,7 @@ The start message is a constant and therefore defined with the models:
1919{% codesnippet "https://raw.githubusercontent.com/macrozone/elm-hexagon-tutorial/chapter/ui/src/Hexagon.elm", lines="67:67" %}{% endcodesnippet %}
2020
2121We need a helper function to transform the string to an `Element` type. The function is going to format
22- the text as well. The first argument of the function is the font size, the second argument the text
22+ the text as well. The first argument of the function is the font size, the second argument is the text
2323string.
2424
2525// makeTextBox
@@ -46,7 +46,7 @@ The value of the `message` box depends on the state of the game. It is either "G
4646"Pause" or empty.
4747
4848The `toForm` method turns an `Element` into a `Form` object. That way it can be modified later on.
49- In our case it is moved to the correct position on the screen.
49+ In this case it is moved to the correct position on the screen.
5050
5151// view
5252{% codesnippet "https://raw.githubusercontent.com/macrozone/elm-hexagon-tutorial/chapter/ui/src/Hexagon.elm", lines="338:370" %}{% endcodesnippet %}
You can’t perform that action at this time.
0 commit comments