Skip to content

Commit 203b30c

Browse files
authored
Merge pull request #1 from apple1417/master
fix boolean/dropdown option changes not being recognised
2 parents 8d305ba + b1010ef commit 203b30c

File tree

6 files changed

+22
-8
lines changed

6 files changed

+22
-8
lines changed

changelog.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Changelog
2+
3+
## v2.1 (Upcoming)
4+
### Willow1 Mod Menu v1.1
5+
- Fixed that Boolean and Slider options didn't properly detect changes.
6+
7+
## v2.0: Support Gunner
8+
- Initial Release
9+
10+
## Older
11+
A few v1.x versions were released as ad hoc prereleases, while BL1 support was being properly merged
12+
into unrealsdk.

manager_pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
[project]
77
name = "willow1_mod_manager"
8-
version = "2.0"
8+
version = "2.1"
99
authors = [{ name = "bl-sdk" }]
1010

1111
[tool.sdkmod]

pick_release_name.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,9 @@
169169
"Wildcat",
170170
]
171171

172-
PREVIOUS_RELEASE_NAMES = []
172+
PREVIOUS_RELEASE_NAMES = [
173+
"Support Gunner",
174+
]
173175

174176

175177
@cache

src/willow1_mod_menu/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"__version_info__",
99
]
1010

11-
__version_info__: tuple[int, int] = (1, 0)
11+
__version_info__: tuple[int, int] = (1, 1)
1212
__version__: str = f"{__version_info__[0]}.{__version_info__[1]}"
1313
__author__: str = "bl-sdk"
1414

src/willow1_mod_menu/options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def play_sound(
218218

219219
# The same sound is used for both sliders and spinners.
220220
focused = find_focused_item(obj)
221-
if populator.is_spinner(idx):
221+
if not populator.is_slider(idx):
222222
# We can do spinners more easily first
223223
choice: float = obj.GetVariableNumber(focused + ".mChoice")
224224
populator.on_spinner_change(obj, idx, int(choice))

src/willow1_mod_menu/populators/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,17 +166,17 @@ def draw_slider(
166166
)
167167
self.drawn_options.append(option)
168168

169-
def is_spinner(self, idx: int) -> bool:
169+
def is_slider(self, idx: int) -> bool:
170170
"""
171-
Checks if the option drawn at a given index is a spinner.
171+
Checks if the option drawn at a given index is a slider.
172172
173173
Args:
174174
idx: The index to check.
175175
Returns:
176-
True if the option is a spinner.
176+
True if the option is a slider.
177177
"""
178178
try:
179-
return isinstance(self.drawn_options[idx], SpinnerOption)
179+
return isinstance(self.drawn_options[idx], SliderOption)
180180
except IndexError:
181181
return False
182182

0 commit comments

Comments
 (0)