From 7139f622aaa8e1ce2515206d5a5b642706b850ae Mon Sep 17 00:00:00 2001 From: apple1417 Date: Sat, 14 Jun 2025 17:17:27 +1200 Subject: [PATCH 1/2] update release codenames --- pick_release_name.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pick_release_name.py b/pick_release_name.py index 3987d1e..77ab039 100644 --- a/pick_release_name.py +++ b/pick_release_name.py @@ -169,7 +169,9 @@ "Wildcat", ] -PREVIOUS_RELEASE_NAMES = [] +PREVIOUS_RELEASE_NAMES = [ + "Support Gunner", +] @cache From b1010ef864280bbcfaca958e5cc07f2455131bc7 Mon Sep 17 00:00:00 2001 From: apple1417 Date: Tue, 17 Jun 2025 17:35:59 +1200 Subject: [PATCH 2/2] fix boolean/dropdown option changes not being recognised since a number of different options types drew a spinner, flip the function to check for sliders --- changelog.md | 12 ++++++++++++ manager_pyproject.toml | 2 +- src/willow1_mod_menu/__init__.py | 2 +- src/willow1_mod_menu/options.py | 2 +- src/willow1_mod_menu/populators/__init__.py | 8 ++++---- 5 files changed, 19 insertions(+), 7 deletions(-) create mode 100644 changelog.md diff --git a/changelog.md b/changelog.md new file mode 100644 index 0000000..cd1bc0f --- /dev/null +++ b/changelog.md @@ -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. diff --git a/manager_pyproject.toml b/manager_pyproject.toml index b9f964d..5ec11e0 100644 --- a/manager_pyproject.toml +++ b/manager_pyproject.toml @@ -5,7 +5,7 @@ [project] name = "willow1_mod_manager" -version = "2.0" +version = "2.1" authors = [{ name = "bl-sdk" }] [tool.sdkmod] diff --git a/src/willow1_mod_menu/__init__.py b/src/willow1_mod_menu/__init__.py index c9608d1..5bf4aeb 100644 --- a/src/willow1_mod_menu/__init__.py +++ b/src/willow1_mod_menu/__init__.py @@ -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" diff --git a/src/willow1_mod_menu/options.py b/src/willow1_mod_menu/options.py index 2fd5ab7..3f9a882 100644 --- a/src/willow1_mod_menu/options.py +++ b/src/willow1_mod_menu/options.py @@ -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)) diff --git a/src/willow1_mod_menu/populators/__init__.py b/src/willow1_mod_menu/populators/__init__.py index 5560940..0c5de37 100644 --- a/src/willow1_mod_menu/populators/__init__.py +++ b/src/willow1_mod_menu/populators/__init__.py @@ -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