Browse Source

add info about presets to GUI size and anchors page

eddex 4 years ago
parent
commit
994cace55f
2 changed files with 10 additions and 0 deletions
  1. BIN
      tutorials/gui/img/presets.png
  2. 10 0
      tutorials/gui/size_and_anchors.rst

BIN
tutorials/gui/img/presets.png


+ 10 - 0
tutorials/gui/size_and_anchors.rst

@@ -63,3 +63,13 @@ a TextureRect can be centered in its parent:
 Setting each anchor to 0.5 moves the reference point for the margins to
 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 center of its parent. From there, we set negative margins so that
 the control gets its natural size.
 the control gets its natural size.
+
+Presets
+-------
+
+Instead of manually adjusting the margin or anchor values, you can achieve
+the same by using the presets provided by the editor. Presets can be accessed
+in the top bar of the editor. Besides centering a control, there are also
+many other options available.
+
+.. image:: img/presets.png