feat: updated engine version to 4.4-rc1
This commit is contained in:
parent
ee00efde1f
commit
21ba8e33af
5459 changed files with 1128836 additions and 198305 deletions
|
|
@ -557,6 +557,19 @@
|
|||
Makes the [Window] appear. This enables interactions with the [Window] and doesn't change any of its property other than visibility (unlike e.g. [method popup]).
|
||||
</description>
|
||||
</method>
|
||||
<method name="start_drag">
|
||||
<return type="void" />
|
||||
<description>
|
||||
Starts an interactive drag operation on the window, using the current mouse position. Call this method when handling a mouse button being pressed to simulate a pressed event on the window's title bar. Using this method allows the window to participate in space switching, tiling, and other system features.
|
||||
</description>
|
||||
</method>
|
||||
<method name="start_resize">
|
||||
<return type="void" />
|
||||
<param index="0" name="edge" type="int" enum="DisplayServer.WindowResizeEdge" />
|
||||
<description>
|
||||
Starts an interactive resize operation on the window, using the current mouse position. Call this method when handling a mouse button being pressed to simulate a pressed event on the window's edge.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
<members>
|
||||
<member name="always_on_top" type="bool" setter="set_flag" getter="get_flag" default="false">
|
||||
|
|
@ -572,7 +585,7 @@
|
|||
Specifies how the content's aspect behaves when the [Window] is resized. The base aspect is determined by [member content_scale_size].
|
||||
</member>
|
||||
<member name="content_scale_factor" type="float" setter="set_content_scale_factor" getter="get_content_scale_factor" default="1.0">
|
||||
Specifies the base scale of [Window]'s content when its [member size] is equal to [member content_scale_size].
|
||||
Specifies the base scale of [Window]'s content when its [member size] is equal to [member content_scale_size]. See also [method Viewport.get_stretch_transform].
|
||||
</member>
|
||||
<member name="content_scale_mode" type="int" setter="set_content_scale_mode" getter="get_content_scale_mode" enum="Window.ContentScaleMode" default="0">
|
||||
Specifies how the content is scaled when the [Window] is resized.
|
||||
|
|
@ -586,6 +599,9 @@
|
|||
<member name="current_screen" type="int" setter="set_current_screen" getter="get_current_screen">
|
||||
The screen the window is currently on.
|
||||
</member>
|
||||
<member name="exclude_from_capture" type="bool" setter="set_flag" getter="get_flag" default="false">
|
||||
Windows is excluded from screenshots taken by [method DisplayServer.screen_get_image], [method DisplayServer.screen_get_image_rect], and [method DisplayServer.screen_get_pixel].
|
||||
</member>
|
||||
<member name="exclusive" type="bool" setter="set_exclusive" getter="is_exclusive" default="false">
|
||||
If [code]true[/code], the [Window] will be in exclusive mode. Exclusive windows are always on top of their parent and will block all input going to the parent [Window].
|
||||
Needs [member transient] enabled to work.
|
||||
|
|
@ -638,13 +654,13 @@
|
|||
[/gdscript]
|
||||
[csharp]
|
||||
// Set region, using Path2D node.
|
||||
GetNode<Window>("Window").MousePassthrough = GetNode<Path2D>("Path2D").Curve.GetBakedPoints();
|
||||
GetNode<Window>("Window").MousePassthroughPolygon = GetNode<Path2D>("Path2D").Curve.GetBakedPoints();
|
||||
|
||||
// Set region, using Polygon2D node.
|
||||
GetNode<Window>("Window").MousePassthrough = GetNode<Polygon2D>("Polygon2D").Polygon;
|
||||
GetNode<Window>("Window").MousePassthroughPolygon = GetNode<Polygon2D>("Polygon2D").Polygon;
|
||||
|
||||
// Reset region to default.
|
||||
GetNode<Window>("Window").MousePassthrough = new Vector2[] {};
|
||||
GetNode<Window>("Window").MousePassthroughPolygon = [];
|
||||
[/csharp]
|
||||
[/codeblocks]
|
||||
[b]Note:[/b] This property is ignored if [member mouse_passthrough] is set to [code]true[/code].
|
||||
|
|
@ -659,6 +675,11 @@
|
|||
If [member ProjectSettings.display/window/subwindows/embed_subwindows] is [code]false[/code], the position is in absolute screen coordinates. This typically applies to editor plugins. If the setting is [code]true[/code], the window's position is in the coordinates of its parent [Viewport].
|
||||
[b]Note:[/b] This property only works if [member initial_position] is set to [constant WINDOW_INITIAL_POSITION_ABSOLUTE].
|
||||
</member>
|
||||
<member name="sharp_corners" type="bool" setter="set_flag" getter="get_flag" default="false">
|
||||
If [code]true[/code], the [Window] will override the OS window style to display sharp corners.
|
||||
[b]Note:[/b] This property is implemented only on Windows (11).
|
||||
[b]Note:[/b] This property only works with native windows.
|
||||
</member>
|
||||
<member name="size" type="Vector2i" setter="set_size" getter="get_size" default="Vector2i(100, 100)">
|
||||
The window's size in pixels.
|
||||
</member>
|
||||
|
|
@ -720,15 +741,14 @@
|
|||
<param index="0" name="files" type="PackedStringArray" />
|
||||
<description>
|
||||
Emitted when files are dragged from the OS file manager and dropped in the game window. The argument is a list of file paths.
|
||||
Note that this method only works with native windows, i.e. the main window and [Window]-derived nodes when [member Viewport.gui_embed_subwindows] is disabled in the main viewport.
|
||||
Example usage:
|
||||
[codeblock]
|
||||
func _ready():
|
||||
get_viewport().files_dropped.connect(on_files_dropped)
|
||||
get_window().files_dropped.connect(on_files_dropped)
|
||||
|
||||
func on_files_dropped(files):
|
||||
print(files)
|
||||
[/codeblock]
|
||||
[b]Note:[/b] This signal only works with native windows, i.e. the main window and [Window]-derived nodes when [member Viewport.gui_embed_subwindows] is disabled in the main viewport.
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="focus_entered">
|
||||
|
|
@ -761,6 +781,11 @@
|
|||
Emitted when the [constant NOTIFICATION_THEME_CHANGED] notification is sent.
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="title_changed">
|
||||
<description>
|
||||
Emitted when window title bar text is changed.
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="titlebar_changed">
|
||||
<description>
|
||||
Emitted when window title bar decorations are changed, e.g. macOS window enter/exit full screen mode, or extend-to-title flag is changed.
|
||||
|
|
@ -801,6 +826,7 @@
|
|||
<constant name="MODE_FULLSCREEN" value="3" enum="Mode">
|
||||
Full screen mode with full multi-window support.
|
||||
Full screen window covers the entire display area of a screen and has no decorations. The display's video mode is not changed.
|
||||
[b]On Android:[/b] This enables immersive mode.
|
||||
[b]On Windows:[/b] Multi-window full-screen mode has a 1px border of the [member ProjectSettings.rendering/environment/defaults/default_clear_color] color.
|
||||
[b]On macOS:[/b] A new desktop is used to display the running project.
|
||||
[b]Note:[/b] Regardless of the platform, enabling full screen will change the window size to match the monitor's size. Therefore, make sure your project supports [url=$DOCS_URL/tutorials/rendering/multiple_resolutions.html]multiple resolutions[/url] when enabling full screen mode.
|
||||
|
|
@ -808,6 +834,7 @@
|
|||
<constant name="MODE_EXCLUSIVE_FULLSCREEN" value="4" enum="Mode">
|
||||
A single window full screen mode. This mode has less overhead, but only one window can be open on a given screen at a time (opening a child window or application switching will trigger a full screen transition).
|
||||
Full screen window covers the entire display area of a screen and has no border or decorations. The display's video mode is not changed.
|
||||
[b]On Android:[/b] This enables immersive mode.
|
||||
[b]On Windows:[/b] Depending on video driver, full screen transition might cause screens to go black for a moment.
|
||||
[b]On macOS:[/b] A new desktop is used to display the running project. Exclusive full screen mode prevents Dock and Menu from showing up when the mouse pointer is hovering the edge of the screen.
|
||||
[b]On Linux (X11):[/b] Exclusive full screen mode bypasses compositor.
|
||||
|
|
@ -842,7 +869,17 @@
|
|||
All mouse events are passed to the underlying window of the same application.
|
||||
[b]Note:[/b] This flag has no effect in embedded windows.
|
||||
</constant>
|
||||
<constant name="FLAG_MAX" value="8" enum="Flags">
|
||||
<constant name="FLAG_SHARP_CORNERS" value="8" enum="Flags">
|
||||
Window style is overridden, forcing sharp corners.
|
||||
[b]Note:[/b] This flag has no effect in embedded windows.
|
||||
[b]Note:[/b] This flag is implemented only on Windows (11).
|
||||
</constant>
|
||||
<constant name="FLAG_EXCLUDE_FROM_CAPTURE" value="9" enum="Flags">
|
||||
Windows is excluded from screenshots taken by [method DisplayServer.screen_get_image], [method DisplayServer.screen_get_image_rect], and [method DisplayServer.screen_get_pixel].
|
||||
[b]Note:[/b] This flag is implemented on macOS and Windows.
|
||||
[b]Note:[/b] Setting this flag will [b]NOT[/b] prevent other apps from capturing an image, it should not be used as a security measure.
|
||||
</constant>
|
||||
<constant name="FLAG_MAX" value="10" enum="Flags">
|
||||
Max value of the [enum Flags].
|
||||
</constant>
|
||||
<constant name="CONTENT_SCALE_MODE_DISABLED" value="0" enum="ContentScaleMode">
|
||||
|
|
@ -878,7 +915,7 @@
|
|||
<constant name="LAYOUT_DIRECTION_INHERITED" value="0" enum="LayoutDirection">
|
||||
Automatic layout direction, determined from the parent window layout direction.
|
||||
</constant>
|
||||
<constant name="LAYOUT_DIRECTION_LOCALE" value="1" enum="LayoutDirection">
|
||||
<constant name="LAYOUT_DIRECTION_APPLICATION_LOCALE" value="1" enum="LayoutDirection">
|
||||
Automatic layout direction, determined from the current locale.
|
||||
</constant>
|
||||
<constant name="LAYOUT_DIRECTION_LTR" value="2" enum="LayoutDirection">
|
||||
|
|
@ -887,6 +924,14 @@
|
|||
<constant name="LAYOUT_DIRECTION_RTL" value="3" enum="LayoutDirection">
|
||||
Right-to-left layout direction.
|
||||
</constant>
|
||||
<constant name="LAYOUT_DIRECTION_SYSTEM_LOCALE" value="4" enum="LayoutDirection">
|
||||
Automatic layout direction, determined from the system locale.
|
||||
</constant>
|
||||
<constant name="LAYOUT_DIRECTION_MAX" value="5" enum="LayoutDirection">
|
||||
Represents the size of the [enum LayoutDirection] enum.
|
||||
</constant>
|
||||
<constant name="LAYOUT_DIRECTION_LOCALE" value="1" enum="LayoutDirection" deprecated="Use [constant LAYOUT_DIRECTION_APPLICATION_LOCALE] instead.">
|
||||
</constant>
|
||||
<constant name="WINDOW_INITIAL_POSITION_ABSOLUTE" value="0" enum="WindowInitialPosition">
|
||||
Initial window position is determined by [member position].
|
||||
</constant>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue