Bläddra i källkod

Edit info about the layout menu in tutorials/gui/size_and_anchors.rst

Nathan Lovato 4 år sedan
förälder
incheckning
e01c9a3258
2 ändrade filer med 9 tillägg och 0 borttagningar
  1. BIN
      tutorials/gui/img/layout_dropdown_menu.png
  2. 9 0
      tutorials/gui/size_and_anchors.rst

BIN
tutorials/gui/img/layout_dropdown_menu.png


+ 9 - 0
tutorials/gui/size_and_anchors.rst

@@ -63,3 +63,12 @@ a TextureRect can be centered in its parent:
 Setting each anchor to 0.5 moves the reference point for the margins to
 the center of its parent. From there, we set negative margins so that
 the control gets its natural size.
+
+Layout Presets
+--------------
+
+Instead of manually adjusting the margin and anchor values, you can use the
+toolbar's Layout menu, above the viewport. Besides centering, it gives you many
+options to align and resize control nodes.
+
+.. image:: img/layout_dropdown_menu.png