From cba2fd2e8080dc999c0473ca09ba23d30fe8cf42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Wed, 19 Jan 2022 16:09:52 +0100 Subject: Revert "Add new scaling modes for splash screen" This reverts commit fcc9f5ce396ff921ed8253f657a8c9c38e7a878d. The feature is good but the implementation still needs more work. A new PR will be made with a rework of this commit. --- doc/classes/ProjectSettings.xml | 6 +++--- doc/classes/RenderingServer.xml | 22 ++-------------------- 2 files changed, 5 insertions(+), 23 deletions(-) (limited to 'doc/classes') diff --git a/doc/classes/ProjectSettings.xml b/doc/classes/ProjectSettings.xml index bcd576d7ab..357186b917 100644 --- a/doc/classes/ProjectSettings.xml +++ b/doc/classes/ProjectSettings.xml @@ -196,6 +196,9 @@ Background color for the boot splash. + + If [code]true[/code], scale the boot splash image to the full window size (preserving the aspect ratio) when the engine starts. If [code]false[/code], the engine will leave it at the default pixel size. + Path to an image used as the boot splash. If left empty, the default Godot Engine splash will be displayed instead. [b]Note:[/b] Only effective if [member application/boot_splash/show_image] is [code]true[/code]. @@ -203,9 +206,6 @@ If [code]true[/code], displays the image specified in [member application/boot_splash/image] when the engine starts. If [code]false[/code], only displays the plain color specified in [member application/boot_splash/bg_color]. - - Specifies how the splash image will be stretched. See [enum RenderingServer.SplashStretchMode] constants for more information. - If [code]true[/code], applies linear filtering when scaling the image (recommended for high-resolution artwork). If [code]false[/code], uses nearest-neighbor interpolation (recommended for pixel art). diff --git a/doc/classes/RenderingServer.xml b/doc/classes/RenderingServer.xml index 9c41b7472b..9e78372013 100644 --- a/doc/classes/RenderingServer.xml +++ b/doc/classes/RenderingServer.xml @@ -2657,10 +2657,10 @@ - + - Sets a boot image. The color defines the background color. The value of [code]stretch_mode[/code] indicates how the image will be stretched (see [enum SplashStretchMode] for possible values). If [code]use_filter[/code] is [code]true[/code], the image will be scaled with linear interpolation. If [code]use_filter[/code] is [code]false[/code], the image will be scaled with nearest-neighbor interpolation. + Sets a boot image. The color defines the background color. If [code]scale[/code] is [code]true[/code], the image will be scaled to fit the screen size. If [code]use_filter[/code] is [code]true[/code], the image will be scaled with linear interpolation. If [code]use_filter[/code] is [code]false[/code], the image will be scaled with nearest-neighbor interpolation. @@ -4504,24 +4504,6 @@ - - The splash image uses its default pixel size. - - - If the window width is greater than its height, the splash image will be stretched to have the same height as the window. Otherwise, the image will be stretched to have the same width as the window. Both cases keep the original image's aspect ratio. - - - The splash image is stretched to have the same width as the window. It keeps the image's aspect ratio. - - - The splash image is stretched to have the same height as the window. It keeps the image's aspect ratio. - - - The splash image covers the window while keeping the aspect ratio. - - - The splash image covers the window without keeping the aspect ratio. - Hardware supports shaders. This enum is currently unused in Godot 3.x. -- cgit v1.2.3