Skip to content
This repository was archived by the owner on Jan 1, 2025. It is now read-only.

Commit 0fbc337

Browse files
FromDarkHellFromDarkHell
authored andcommitted
Add deletion of mods in the replaced DLC mod manager.
1 parent edb26f7 commit 0fbc337

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Python/init.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,16 @@ def process_hook(caller: UObject, function: UFunction, params: FStruct, result:
6868
mod._Enabled = not mod._Enabled
6969
caller.RefreshDLC()
7070
return False
71+
if ukey == 'Delete' or ukey == 'BackSpace':
72+
if event == 0:
73+
selected_object = caller.GetSelectedObject()
74+
mod = selected_object.GetString(caller.Prop_offeringId)
75+
idx = int(mod)
76+
mod = bl2sdk.Mods[idx]
77+
mod.Disable()
78+
bl2sdk.Mods.pop(idx)
79+
caller.RefreshDLC()
80+
return False
7181
return True
7282

7383
RemoveEngineHook("WillowGame.MarketplaceGFxMovie.ShopInputKey", "OpenModMenu")

0 commit comments

Comments
 (0)