mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-07 02:12:07 +03:00
Merge pull request #1237 from Rubonnek/replace-select-mode-tool
Replaced using the select mode tool by changing the Size property
This commit is contained in:
@@ -170,11 +170,11 @@ the ``Title`` and ``Number``, and drag and drop them onto
|
||||
By using the Background node as the two textures' parent, we take
|
||||
control away from the Count MarginContainer
|
||||
|
||||
Select the ``Title`` and in the Inspector, change its ``Stretch Mode``
|
||||
property to ``Keep Centered``. Resize it in the viewport with the
|
||||
``Select Mode`` tool so it only takes the left half of the background.
|
||||
Next, select the ``Number`` node. In the viewport, click the ``Layout``
|
||||
menu and click ``Full Rect``. The node will resize to fit
|
||||
Select the ``Title`` and in the Inspector, change its ``Stretch Mode`` property
|
||||
to ``Keep Centered``. Next find the ``Rect`` category in the Inspector and
|
||||
change the ``Size`` property to (50, 40) so it only takes the left half of
|
||||
the background. Next, select the ``Number`` node. In the viewport, click the
|
||||
``Layout`` menu and click ``Full Rect``. The node will resize to fit
|
||||
the ``Background``. Head to the Inspector and change its ``Align``
|
||||
property to ``Right``, and the ``VAlign`` property to ``Center``. The
|
||||
text should snap to the center of the ``Background``'s right edge.
|
||||
|
||||
Reference in New Issue
Block a user