|
@@ -14,8 +14,8 @@
|
|
|
[b]Note:[/b] Theme items are [i]not[/i] [Object] properties. This means you can't access their values using [method Object.get] and [method Object.set]. Instead, use [method get_color], [method get_constant], [method get_font], [method get_icon], [method get_stylebox], and the [code]add_*_override[/code] methods provided by this class.
|
|
|
</description>
|
|
|
<tutorials>
|
|
|
- <link title="GUI tutorial index">https://docs.godotengine.org/en/3.2/tutorials/gui/index.html</link>
|
|
|
- <link title="Custom drawing in 2D">https://docs.godotengine.org/en/3.2/tutorials/2d/custom_drawing_in_2d.html</link>
|
|
|
+ <link title="GUI tutorial index">https://docs.godotengine.org/en/3.3/tutorials/gui/index.html</link>
|
|
|
+ <link title="Custom drawing in 2D">https://docs.godotengine.org/en/3.3/tutorials/2d/custom_drawing_in_2d.html</link>
|
|
|
<link title="Control node gallery">https://docs.godotengine.org/en/latest/tutorials/ui/control_node_gallery.html</link>
|
|
|
<link title="All GUI Demos">https://github.com/godotengine/godot-demo-projects/tree/master/gui</link>
|
|
|
</tutorials>
|
|
@@ -872,6 +872,10 @@
|
|
|
theme.set_color("font_color", "TooltipLabel", Color(0, 1, 1))
|
|
|
[/codeblock]
|
|
|
</member>
|
|
|
+ <member name="input_pass_on_modal_close_click" type="bool" setter="set_pass_on_modal_close_click" getter="get_pass_on_modal_close_click" default="true">
|
|
|
+ Enables whether input should propagate when you close the control as modal.
|
|
|
+ If [code]false[/code], stops event handling at the viewport input event handling. The viewport first hides the modal and after marks the input as handled.
|
|
|
+ </member>
|
|
|
<member name="margin_bottom" type="float" setter="set_margin" getter="get_margin" default="0.0">
|
|
|
Distance between the node's bottom edge and its parent control, based on [member anchor_bottom].
|
|
|
Margins are often controlled by one or multiple parent [Container] nodes, so you should not modify them manually if your node is a direct child of a [Container]. Margins update automatically when you move or resize the node.
|
|
@@ -895,10 +899,6 @@
|
|
|
<member name="mouse_filter" type="int" setter="set_mouse_filter" getter="get_mouse_filter" enum="Control.MouseFilter" default="0">
|
|
|
Controls whether the control will be able to receive mouse button input events through [method _gui_input] and how these events should be handled. Also controls whether the control can receive the [signal mouse_entered], and [signal mouse_exited] signals. See the constants to learn what each does.
|
|
|
</member>
|
|
|
- <member name="input_pass_on_modal_close_click" type="bool" setter="set_pass_on_modal_close_click" getter="get_pass_on_modal_close_click" default="true">
|
|
|
- Enables whether input should propagate when you close the control as modal.
|
|
|
- If [code]false[/code], stops event handling at the viewport input event handling. The viewport first hides the modal and after marks the input as handled.
|
|
|
- </member>
|
|
|
<member name="rect_clip_content" type="bool" setter="set_clip_contents" getter="is_clipping_contents" default="false">
|
|
|
Enables whether rendering of [CanvasItem] based children should be clipped to this control's rectangle. If [code]true[/code], parts of a child which would be visibly outside of this control's rectangle will not be rendered.
|
|
|
</member>
|
|
@@ -919,7 +919,7 @@
|
|
|
</member>
|
|
|
<member name="rect_scale" type="Vector2" setter="set_scale" getter="get_scale" default="Vector2( 1, 1 )">
|
|
|
The node's scale, relative to its [member rect_size]. Change this property to scale the node around its [member rect_pivot_offset]. The Control's [member hint_tooltip] will also scale according to this value.
|
|
|
- [b]Note:[/b] This property is mainly intended to be used for animation purposes. Text inside the Control will look pixelated or blurry when the Control is scaled. To support multiple resolutions in your project, use an appropriate viewport stretch mode as described in the [url=https://docs.godotengine.org/en/3.2/tutorials/viewports/multiple_resolutions.html]documentation[/url] instead of scaling Controls individually.
|
|
|
+ [b]Note:[/b] This property is mainly intended to be used for animation purposes. Text inside the Control will look pixelated or blurry when the Control is scaled. To support multiple resolutions in your project, use an appropriate viewport stretch mode as described in the [url=https://docs.godotengine.org/en/3.3/tutorials/viewports/multiple_resolutions.html]documentation[/url] instead of scaling Controls individually.
|
|
|
[b]Note:[/b] If the Control node is a child of a [Container] node, the scale will be reset to [code]Vector2(1, 1)[/code] when the scene is instanced. To set the Control's scale when it's instanced, wait for one frame using [code]yield(get_tree(), "idle_frame")[/code] then set its [member rect_scale] property.
|
|
|
</member>
|
|
|
<member name="rect_size" type="Vector2" setter="_set_size" getter="get_size" default="Vector2( 0, 0 )">
|