Merge pull request #71718 from Calinou/doc-custom-mouse-cursor-max-size-web

Document image size restrictions for custom mouse cursors in HTML5
This commit is contained in:
Rémi Verschelde 2023-01-20 12:10:18 +01:00
commit 6d15948c68
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -297,6 +297,7 @@
[param hotspot] must be within [param image]'s size. [param hotspot] must be within [param image]'s size.
[b]Note:[/b] [AnimatedTexture]s aren't supported as custom mouse cursors. If using an [AnimatedTexture], only the first frame will be displayed. [b]Note:[/b] [AnimatedTexture]s aren't supported as custom mouse cursors. If using an [AnimatedTexture], only the first frame will be displayed.
[b]Note:[/b] Only images imported with the [b]Lossless[/b], [b]Lossy[/b] or [b]Uncompressed[/b] compression modes are supported. The [b]Video RAM[/b] compression mode can't be used for custom cursors. [b]Note:[/b] Only images imported with the [b]Lossless[/b], [b]Lossy[/b] or [b]Uncompressed[/b] compression modes are supported. The [b]Video RAM[/b] compression mode can't be used for custom cursors.
[b]Note:[/b] On the web platform, the maximum allowed cursor image size is 128×128. Cursor images larger than 32×32 will also only be displayed if the mouse cursor image is entirely located within the page for [url=https://chromestatus.com/feature/5825971391299584]security reasons[/url].
</description> </description>
</method> </method>
<method name="set_default_cursor_shape"> <method name="set_default_cursor_shape">