Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Changelog

## v2.1 (Upcoming)
### Willow1 Mod Menu v1.1
- Fixed that Boolean and Slider options didn't properly detect changes.

## v2.0: Support Gunner
- Initial Release

## Older
A few v1.x versions were released as ad hoc prereleases, while BL1 support was being properly merged
into unrealsdk.
2 changes: 1 addition & 1 deletion manager_pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

[project]
name = "willow1_mod_manager"
version = "2.0"
version = "2.1"
authors = [{ name = "bl-sdk" }]

[tool.sdkmod]
Expand Down
4 changes: 3 additions & 1 deletion pick_release_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@
"Wildcat",
]

PREVIOUS_RELEASE_NAMES = []
PREVIOUS_RELEASE_NAMES = [
"Support Gunner",
]


@cache
Expand Down
2 changes: 1 addition & 1 deletion src/willow1_mod_menu/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"__version_info__",
]

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

Expand Down
2 changes: 1 addition & 1 deletion src/willow1_mod_menu/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def play_sound(

# The same sound is used for both sliders and spinners.
focused = find_focused_item(obj)
if populator.is_spinner(idx):
if not populator.is_slider(idx):
# We can do spinners more easily first
choice: float = obj.GetVariableNumber(focused + ".mChoice")
populator.on_spinner_change(obj, idx, int(choice))
Expand Down
8 changes: 4 additions & 4 deletions src/willow1_mod_menu/populators/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,17 +166,17 @@ def draw_slider(
)
self.drawn_options.append(option)

def is_spinner(self, idx: int) -> bool:
def is_slider(self, idx: int) -> bool:
"""
Checks if the option drawn at a given index is a spinner.
Checks if the option drawn at a given index is a slider.

Args:
idx: The index to check.
Returns:
True if the option is a spinner.
True if the option is a slider.
"""
try:
return isinstance(self.drawn_options[idx], SpinnerOption)
return isinstance(self.drawn_options[idx], SliderOption)
except IndexError:
return False

Expand Down