diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-05-27 12:09:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-27 12:09:42 +0200 |
commit | e8fbb28e207de4b3e6a50b4f683bbff0673360ab (patch) | |
tree | 3592784a29fee57e4e9f774ae68278f4288debf5 /doc/classes | |
parent | d4e26fd588e2d136b19b4616a743d67f600c6192 (diff) | |
parent | 2b9ed68d6a261bdabf4a6a3e205e42471c38d443 (diff) |
Merge pull request #29119 from bruvzg/native_icon_support
Add native window/taskbar icon support for Windows and macOS.
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"> |