ソースを参照

Mention size flag in main screen plugin tutorial

Also re-flow some of the text over lines and mention adding a Label.
Aaron Franke 5 年 前
コミット
0b1acc49a2
1 ファイル変更6 行追加5 行削除
  1. 6 5
      tutorials/plugins/editor/making_main_screen_plugins.rst

+ 6 - 5
tutorials/plugins/editor/making_main_screen_plugins.rst

@@ -103,13 +103,14 @@ scenes.
 Main screen scene
 -----------------
 
-Create a new scene with a ``Panel`` root node. Select this root node and, in the
-viewport, click the ``Layout`` menu and select ``Full Rect``. The panel now uses
-all the space available in the viewport. Now, let's add a new script on the root
-node. Name it ``main_panel.gd``.
+Create a new scene with a ``Panel`` root node. Select this root node,
+and in the viewport, click the ``Layout`` menu and select ``Full Rect``.
+You also need to enable the ``Expand`` vertical size flag in the inspector.
+The panel now uses all the space available in the viewport.
+Now, let's add a new script on the root node. Name it ``main_panel.gd``.
 
 We then add 2 children to this Panel node: first a ``Button`` node. Place it
-anywhere on the Panel.
+anywhere on the Panel. Then add a ``Label`` node.
 
 Now we need to define a behaviour when this button is pressed. This is covered
 by the :ref:`Handling a signal <doc_scripting_handling_a_signal>` page, so this