Browse Source

Merge pull request #957 from godotengine/yfg_fixes

First Game: Fix outdated Anchor/Layout section
Chris Bradfield 7 years ago
parent
commit
c57fe00417

BIN
learning/step_by_step/img/ui_anchor.png


+ 8 - 8
learning/step_by_step/your_first_game.rst

@@ -606,12 +606,12 @@ placement, use the following settings:
 ScoreLabel
 ScoreLabel
 ~~~~~~~~~~
 ~~~~~~~~~~
 
 
--  ``Anchor``: "Center Top"
+-  ``Layout``: "Center Top"
 -  ``Margin``:
 -  ``Margin``:
 
 
-   -  Left: ``-240``
+   -  Left: ``-25``
    -  Top: ``0``
    -  Top: ``0``
-   -  Right: ``240``
+   -  Right: ``25``
    -  Bottom: ``100``
    -  Bottom: ``100``
 
 
 -  Text: ``0``
 -  Text: ``0``
@@ -619,20 +619,20 @@ ScoreLabel
 MessageLabel
 MessageLabel
 ~~~~~~~~~~~~
 ~~~~~~~~~~~~
 
 
--  ``Anchor``: "Center"
+-  ``Layout``: "Center Bottom"
 -  ``Margin``:
 -  ``Margin``:
 
 
-   -  Left: ``-240``
+   -  Left: ``-100``
    -  Top: ``-200``
    -  Top: ``-200``
-   -  Right: ``240``
-   -  Bottom: ``60``
+   -  Right: ``100``
+   -  Bottom: ``-100``
 
 
 -  Text: ``Dodge the Creeps!``
 -  Text: ``Dodge the Creeps!``
 
 
 StartButton
 StartButton
 ~~~~~~~~~~~
 ~~~~~~~~~~~
 
 
--  ``Anchor``: "Center"
+-  ``Layout``: "Center"
 -  ``Margin``:
 -  ``Margin``:
 
 
    -  Left: ``-60``
    -  Left: ``-60``