diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2019-05-17 16:43:56 +0300 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2019-05-24 14:23:57 +0300 |
commit | 2b9ed68d6a261bdabf4a6a3e205e42471c38d443 (patch) | |
tree | 6037d6c38d26d45c3488241fa168672c696aa689 /doc/classes | |
parent | c088386c5b5e7631ce670cb4fa0e6563d29d0973 (diff) |
Add native window/taskbar icon support for Windows and macOS.
Co-authored-by: Markus Törnqvist <mjt@nysv.org>
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/OS.xml | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/doc/classes/OS.xml b/doc/classes/OS.xml index c9c83bc0e0..ec2ee78701 100644 --- a/doc/classes/OS.xml +++ b/doc/classes/OS.xml @@ -697,7 +697,19 @@ <argument index="0" name="icon" type="Image"> </argument> <description> - Sets the game's icon. + Sets the game's icon using an [Image] resource. + The same image is used for window caption, taskbar/dock and window selection dialog. Image is scaled as needed. + </description> + </method> + <method name="set_native_icon"> + <return type="void"> + </return> + <argument index="0" name="filename" type="String"> + </argument> + <description> + Sets the game's icon using a multi-size platform-specific icon file ([code]*.ico[/code] on Windows and [code]*.icns[/code] on macOS). + Appropriate size sub-icons are used for window caption, taskbar/dock and window selection dialog. + Note: This method is only implemented on macOS and Windows. </description> </method> <method name="set_ime_active"> |