The Messenger: Add a Component Icon and Description (#4850)

Co-authored-by: qwint <qwint.42@gmail.com>
Co-authored-by: Exempt-Medic <60412657+Exempt-Medic@users.noreply.github.com>
This commit is contained in:
Aaron Wagener
2025-05-22 09:06:44 -05:00
committed by GitHub
parent 1d655a07cd
commit 45e3027f81
2 changed files with 11 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ from Options import Accessibility
from Utils import output_path
from settings import FilePath, Group
from worlds.AutoWorld import WebWorld, World
from worlds.LauncherComponents import Component, Type, components
from worlds.LauncherComponents import Component, Type, components, icon_paths
from .client_setup import launch_game
from .connections import CONNECTIONS, RANDOMIZED_CONNECTIONS, TRANSITIONS
from .constants import ALL_ITEMS, ALWAYS_LOCATIONS, BOSS_LOCATIONS, FILLER, NOTES, PHOBEKINS, PROG_ITEMS, TRAPS, \
@@ -20,9 +20,18 @@ from .subclasses import MessengerItem, MessengerRegion, MessengerShopLocation
from .transitions import disconnect_entrances, shuffle_transitions
components.append(
Component("The Messenger", component_type=Type.CLIENT, func=launch_game, game_name="The Messenger", supports_uri=True)
Component(
"The Messenger",
component_type=Type.CLIENT,
func=launch_game,
game_name="The Messenger",
supports_uri=True,
icon="The Messenger",
description="Launch The Messenger.\nInstalls and checks for updates for the randomizer.")
)
icon_paths["The Messenger"] = f"ap:{__name__}/assets/component_icon.png"
class MessengerSettings(Group):
class GamePath(FilePath):

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB