mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 12:11:33 -06:00
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:
@@ -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):
|
||||
|
BIN
worlds/messenger/assets/component_icon.png
Normal file
BIN
worlds/messenger/assets/component_icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
Reference in New Issue
Block a user