-
Notifications
You must be signed in to change notification settings - Fork 5
Feature Request: Client Icon In Launcher #40
Description
What feature would you like to see?
Super simple change and one extra file:
-
In init.py, line 13, change:
from worlds.LauncherComponents import Component, SuffixIdentifier, Type, components, launch_subprocess
to:
from worlds.LauncherComponents import Component, SuffixIdentifier, Type, components, launch_subprocess, icon_paths -
In init.py, line 30-32, change:
components.append( Component("Super Mario Sunshine Client", func=run_client, component_type=Type.CLIENT, file_identifier=SuffixIdentifier(".apsms")))
to:
icon_paths["sms_ico"] = f"ap:{__name__}/icon.png" components.append( Component("Super Mario Sunshine Client", func=run_client, component_type=Type.CLIENT, icon="sms_ico" file_identifier=SuffixIdentifier(".apsms"))) -
Find a suitable image (I'd recommend this one), save it to the top level of the .apworld directory, and ensure the file name matches
And that's it! The client will now have a neat launcher icon