浏览代码

Document get_minimum_size not called in some nodes

(cherry picked from commit 7d5ee8f6947c03701e02b6ae751459d436f0442c)
kobewi 3 年之前
父节点
当前提交
4f284893a6
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      doc/classes/Control.xml

+ 1 - 0
doc/classes/Control.xml

@@ -32,6 +32,7 @@
 			<description>
 			<description>
 				Virtual method to be implemented by the user. Returns the minimum size for this control. Alternative to [member rect_min_size] for controlling minimum size via code. The actual minimum size will be the max value of these two (in each axis separately).
 				Virtual method to be implemented by the user. Returns the minimum size for this control. Alternative to [member rect_min_size] for controlling minimum size via code. The actual minimum size will be the max value of these two (in each axis separately).
 				If not overridden, defaults to [constant Vector2.ZERO].
 				If not overridden, defaults to [constant Vector2.ZERO].
+				[b]Note:[/b] This method will not be called when the script is attached to a [Control] node that already overrides its minimum size (e.g. [Label], [Button], [PanelContainer] etc.). It can only be used with most basic GUI nodes, like [Control], [Container], [Panel] etc.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="_gui_input" qualifiers="virtual">
 		<method name="_gui_input" qualifiers="virtual">