Skip to content

Commit

Permalink
Add deletion of mods in the replaced DLC mod manager.
Browse files Browse the repository at this point in the history
  • Loading branch information
FromDarkHell authored and FromDarkHell committed Apr 26, 2019
1 parent edb26f7 commit 0fbc337
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Python/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,16 @@ def process_hook(caller: UObject, function: UFunction, params: FStruct, result:
mod._Enabled = not mod._Enabled
caller.RefreshDLC()
return False
if ukey == 'Delete' or ukey == 'BackSpace':
if event == 0:
selected_object = caller.GetSelectedObject()
mod = selected_object.GetString(caller.Prop_offeringId)
idx = int(mod)
mod = bl2sdk.Mods[idx]
mod.Disable()
bl2sdk.Mods.pop(idx)
caller.RefreshDLC()
return False
return True

RemoveEngineHook("WillowGame.MarketplaceGFxMovie.ShopInputKey", "OpenModMenu")
Expand Down

0 comments on commit 0fbc337

Please sign in to comment.