Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
Manually changing application icon for Windows
Windows applications use a Windows only format called ICO for their file icon and taskbar icon. Since Godot 4.1, Godot can create an ICO file for you based on the icon file defined in the Windows export preset. Supported formats are PNG, WebP, and SVG. If no icon is defined in the Windows export preset, the application/config/icon project setting is used automatically instead.
This means you no longer need to follow the steps in this section to manually create an ICO file, unless you wish to have control over the icon design depending on its displayed size.
Creating a custom ICO file
You can create your application icon in any program but you will have to convert it to an ICO file using a program such as GIMP.
`Tento videonávod <https://www.youtube.com/watch?v=uqV3UfM-n5Y>`_ popisuje, jak exportovat soubor ICO pomocí programu GIMP.
Obrázek PNG je také možné převést na soubor ICO vhodný pro hiDPI pomocí tohoto příkazu `ImageMagick <https://www.imagemagick.org/>;`_:
magick convert icon.png -define icon:auto-resize=256,128,64,48,32,16 icon.ico
Depending on which version of ImageMagick you installed, you might need to leave out the magick and run this command instead:
convert icon.png -define icon:auto-resize=256,128,64,48,32,16 icon.ico
Varování
Aby soubor ICO účinně nahradil výchozí ikonu Godot, musí obsahovat všechny velikosti obsažené ve výchozí ikoně Godot: 16×16, 32×32, 48×48, 64×64, 128×128, 256×256. Pokud soubor ICO neobsahuje všechny velikosti, bude výchozí ikona Godot zachována pro velikosti, které nebyly přepsány.
Výše uvedený příkaz ImageMagick to bere v úvahu.
Změna ikony hlavního panelu
Ikona hlavního panelu je ikona, která se zobrazí na hlavním panelu, když je projekt spuštěný.
To change the taskbar icon, go to
Project > Project Settings > Application > Config, make sure
Advanced Settings are enabled to see the setting, then go to
Windows Native Icon. Click on the folder icon and select your ICO file.
Toto nastavení změní ikonu exportované hry pouze v systému Windows. Chcete-li nastavit ikonu pro macOS, použijte Macos Native Icon. Pro ostatní platformy použijte nastavení Icon.
Změna ikony souboru
Ikona souboru je ikona spustitelného souboru, na kterou kliknete pro spuštění projektu.
To do that, you will need to specify the icon when exporting. Go to Project > Export. Assuming you have already created a Windows Desktop preset, select your icon in ICO format in the Application > Icon field.
Testování výsledku
Nyní můžete projekt exportovat. Pokud vše proběhlo správně, měli byste vidět toto:
Poznámka
If your icon isn't showing up properly try clearing the icon
cache. To do so, open the Run dialog and enter ie4uinit.exe
-ClearIconCache or ie4uinit.exe -show.