Skip to content

Feature Request: Client Icon In Launcher #40

@Jorbori

Description

@Jorbori

What feature would you like to see?

Super simple change and one extra file:

  1. 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

  2. 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")))

  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions