Skip to content

Commit 60baff2

Browse files
authored
Merge pull request #2 from apple1417/master
support host only coop support
2 parents a3121e1 + 1a66b2f commit 60baff2

File tree

7 files changed

+44
-34
lines changed

7 files changed

+44
-34
lines changed

.cruft.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "[email protected]:bl-sdk/common_dotfiles.git",
3-
"commit": "d03eee713ad436d20033d0598eb88f1529c56ca8",
3+
"commit": "3d7189e61172cb95877261df8313ae595fe6c02d",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {
@@ -15,7 +15,8 @@
1515
"__project_slug": "console_mod_menu",
1616
"include_cpp": false,
1717
"include_py": true,
18-
"_template": "[email protected]:bl-sdk/common_dotfiles.git"
18+
"_template": "[email protected]:bl-sdk/common_dotfiles.git",
19+
"_commit": "3d7189e61172cb95877261df8313ae595fe6c02d"
1920
}
2021
},
2122
"directory": null

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.vs
22
.vscode
3+
.idea
34

45
__pycache__

Readme.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ a message as the second (both positionally), and show them in a temporary messag
2020

2121
# Changelog
2222

23+
### v1.5
24+
- Support host-only coop support value
25+
- Linting fixes
26+
2327
### v1.4
2428
- Improved suggestions when trying to bind a key by name, and misspelling it.
2529
- Swap known controller key names between UE3/UE4 versions, based on game.

__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from mods_base import command
44
from mods_base.mod_list import base_mod
5+
from unrealsdk import logging
56

67
from .screens import start_interactive_menu
78

@@ -11,7 +12,7 @@
1112
"__version_info__",
1213
)
1314

14-
__version_info__: tuple[int, int] = (1, 4)
15+
__version_info__: tuple[int, int] = (1, 5)
1516
__version__: str = f"{__version_info__[0]}.{__version_info__[1]}"
1617
__author__: str = "bl-sdk"
1718

@@ -24,7 +25,7 @@ def mods_command(_: argparse.Namespace) -> None:
2425
mods_command.add_argument("-v", "--version", action="version", version=__version__)
2526

2627
mods_command.enable()
27-
print("Console Mod Menu loaded. Type 'mods' to get started.")
28+
logging.info("Console Mod Menu loaded. Type 'mods' to get started.")
2829

2930

3031
base_mod.components.append(base_mod.ComponentInfo("Console Mod Menu", __version__))

draw.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from textwrap import TextWrapper
22

33
from mods_base import html_to_plain_text
4+
from unrealsdk import logging
45

56
wrapper = TextWrapper(width=100, expand_tabs=True, tabsize=2)
67

@@ -18,11 +19,11 @@ def draw(msg: str, indent: int = 0) -> None:
1819
prefix = "Mod Menu | " + (" " * indent)
1920

2021
if not msg:
21-
print("Mod Menu |")
22+
logging.info("Mod Menu |")
2223
return
2324

2425
for line in wrapper.fill(html_to_plain_text(msg)).splitlines():
25-
print(prefix, line)
26+
logging.info(prefix, line)
2627

2728

2829
def draw_description(description: str, indent: int = 0) -> None:

pyproject.toml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,9 @@ target-version = "py313"
1010
line-length = 100
1111

1212
[tool.ruff.lint]
13-
# Last time rules scrutinised: ruff 0.6.9 / 2024-10-08
13+
# Last time rules scrutinised: ruff 0.11.0 / 2025-03-20
1414
select = [
15-
"F",
16-
"W",
17-
"E",
18-
"C90",
19-
"I",
20-
"N",
21-
"D",
22-
"UP",
15+
"ERA",
2316
"YTT",
2417
"ANN",
2518
"ASYNC",
@@ -31,34 +24,51 @@ select = [
3124
"C4",
3225
"DTZ",
3326
"T10",
27+
"FIX",
3428
"FA",
29+
"INT",
3530
"ISC",
3631
"ICN",
3732
"LOG",
3833
"G",
3934
"PIE",
35+
"T20",
4036
"PYI",
4137
"Q",
4238
"RSE",
4339
"RET",
44-
"SLOT",
4540
"SIM",
41+
"SLOT",
4642
"TID",
47-
"TCH",
48-
"INT",
43+
"TD",
44+
"TC",
4945
"ARG",
5046
"PTH",
51-
"TD",
52-
"FIX",
53-
"ERA",
54-
"PGH",
55-
"PL",
5647
"FLY",
48+
"I",
49+
"C90",
50+
"N",
5751
"PERF",
52+
"E",
53+
"W",
54+
"D",
55+
"F",
56+
"PGH",
57+
"PL",
58+
"UP",
5859
"FURB",
5960
"RUF",
6061
]
6162
ignore = [
63+
"ANN401",
64+
"S101",
65+
"S603",
66+
"S607",
67+
"PYI011",
68+
"PYI021",
69+
"PYI029",
70+
"PYI044",
71+
"TC006",
6272
"D100",
6373
"D101",
6474
"D104",
@@ -76,16 +86,6 @@ ignore = [
7686
"D410",
7787
"D411",
7888
"D413",
79-
"ANN101",
80-
"ANN102",
81-
"ANN401",
82-
"S101",
83-
"S603",
84-
"S607",
85-
"PYI011",
86-
"PYI021",
87-
"PYI029",
88-
"PYI044",
8989
"PGH003",
9090
"PLR0904",
9191
"PLR0911",
@@ -100,4 +100,4 @@ ignore = [
100100
]
101101

102102
[tool.ruff.lint.per-file-ignores]
103-
"*.pyi" = ["D418", "A002", "A003"]
103+
"*.pyi" = ["A002", "A003", "D418"]

screens/mod.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ def draw_mod_header(self) -> None:
171171
draw("Coop Support: Requires All Players")
172172
case CoopSupport.ClientSide:
173173
draw("Coop Support: Client Side")
174+
case CoopSupport.HostOnly:
175+
draw("Coop Support: Host Only")
174176

175177
draw("")
176178

0 commit comments

Comments
 (0)