Skip to content

Commit 71345ed

Browse files
authored
Merge pull request #49 from apple1417/master
pull in library updates, prep for new release
2 parents 4cfd48e + 2d17e9b commit 71345ed

File tree

5 files changed

+49
-10
lines changed

5 files changed

+49
-10
lines changed

changelog.md

+41
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,46 @@
11
# Changelog
22

3+
## v1.7 (Upcoming)
4+
5+
### Keybinds v2.5
6+
- Updated with new `mods_base` keybind interface.
7+
8+
### [Mods Base v1.8](https://github.com/bl-sdk/mods_base/blob/master/Readme.md#v18)
9+
> - The "Update Available" notification should now immediately go away upon updating, instead of
10+
> waiting a day for the next check.
11+
>
12+
> - Changed the functions the keybind implementation should overwrite from `KeybindType.enable` to
13+
> `KeybindType._enable` (+ same for disable). These functions don't need to set `is_enabled`.
14+
>
15+
> - Fixed that nested and grouped options' children would not get their `.mod` attribute set.
16+
17+
### [pyunrealsdk v1.6.0](https://github.com/bl-sdk/pyunrealsdk/blob/master/changelog.md#v160)
18+
> - `WrappedStruct` now supports being copied via the `copy` module.
19+
>
20+
> - Fixed that `WrappedArray.index` would not check the last item in the array. It also now accepts
21+
> start/stop indexes beyond the array bounds, like `list.index` does.
22+
>
23+
> - Hook return values and array access now have the same semantics as normal property accesses. In
24+
> practice this means:
25+
>
26+
> - Getting an enum property will convert it to a python `IntFlag` enum (rather than an int).
27+
> - Setting an array property will accept any sequence (rather than just wrapped arrays).
28+
>
29+
> All other property types had the same semantics already, so this is backwards compatible.
30+
>
31+
> - Added a `_get_address` method to `WrappedArray`, `WrappedMulticastDelegate`, and `WrappedStruct`.
32+
33+
### [unrealsdk v1.7.0](https://github.com/bl-sdk/unrealsdk/blob/master/changelog.md#v170)
34+
> - `unrealsdk::unreal::cast` now copies the const-ness of its input object to its callbacks.
35+
>
36+
> - Reworked `PropertyProxy` to be based on `UnrealPointer` (and reworked it too). This fixes some
37+
> issues with ownership and possible use after frees.
38+
>
39+
> *This breaks binary compatibility*, though existing code should work pretty much as is after a
40+
> recompile.
41+
>
42+
> - Handled `UClass::Interfaces` also having a different offset between BL2 and TPS.
43+
344
## v1.6: Reunion
445

546
### BL3 Mod Menu v1.5

manager_pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
[project]
77
name = "oak_mod_manager"
8-
version = "1.6"
8+
version = "1.7"
99
authors = [{ name = "bl-sdk" }]
1010

1111
[tool.sdkmod]

src/keybinds/__init__.py

+5-7
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,13 @@
1313
"__version_info__",
1414
)
1515

16-
__version_info__: tuple[int, int] = (2, 4)
16+
__version_info__: tuple[int, int] = (2, 5)
1717
__version__: str = f"{__version_info__[0]}.{__version_info__[1]}"
1818
__author__: str = "bl-sdk"
1919

2020

21-
@wraps(KeybindType.enable)
21+
@wraps(KeybindType._enable) # pyright: ignore[reportPrivateUsage]
2222
def enable_keybind(self: KeybindType) -> None:
23-
self.is_enabled = True
24-
2523
if self.key is None or self.callback is None:
2624
return
2725

@@ -44,10 +42,10 @@ def enable_keybind(self: KeybindType) -> None:
4442
self._kb_handle = handle # type: ignore
4543

4644

47-
KeybindType.enable = enable_keybind
45+
KeybindType._enable = enable_keybind # pyright: ignore[reportPrivateUsage]
4846

4947

50-
@wraps(KeybindType.disable)
48+
@wraps(KeybindType._disable) # pyright: ignore[reportPrivateUsage]
5149
def disable_keybind(self: KeybindType) -> None:
5250
self.is_enabled = False
5351

@@ -59,7 +57,7 @@ def disable_keybind(self: KeybindType) -> None:
5957
self._kb_handle = None # type: ignore
6058

6159

62-
KeybindType.disable = disable_keybind
60+
KeybindType._disable = disable_keybind # pyright: ignore[reportPrivateUsage]
6361

6462

6563
@wraps(KeybindType._rebind) # pyright: ignore[reportPrivateUsage]

0 commit comments

Comments
 (0)