-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path__init__.py
More file actions
31 lines (20 loc) · 796 Bytes
/
__init__.py
File metadata and controls
31 lines (20 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import argparse
from mods_base import command
from mods_base.mod_list import base_mod
from unrealsdk import logging
from .screens import start_interactive_menu
__all__: tuple[str, ...] = (
"__author__",
"__version__",
"__version_info__",
)
__version_info__: tuple[int, int] = (1, 6)
__version__: str = f"{__version_info__[0]}.{__version_info__[1]}"
__author__: str = "bl-sdk"
@command("mods", description="Opens the console mod menu.")
def mods_command(_: argparse.Namespace) -> None:
start_interactive_menu()
mods_command.add_argument("-v", "--version", action="version", version=__version__)
mods_command.enable()
logging.info("Console Mod Menu loaded. Type 'mods' to get started.")
base_mod.components.append(base_mod.ComponentInfo("Console Mod Menu", __version__))