WolfHUD
WolfHUD copied to clipboard
Update PrePlanManager.lua
crash fix while loading saved preplanning remove overlapping "buy all assets" button.
Description
'_get_type_cost' renamed to 'get_type_cost' 'BuyAllAsset.lua' shoulde be removed as its now implemented by the game 199.6 update.
Probably instead of deleting the BuyAllAsset code altogether we still should use the asset cost calculation stuff so that the functionality stays the same as before (displaying the total cost next to the button text).
Also MenuManager.show_confirm_mission_asset_buy_all = expect_yes
should be added to MenuTweaks.lua to skip the dialog
L796 of MenuTweaks?
L796 of MenuTweaks?
doesn't matter which order but yes in that location
You can remove BuyAllAsset.lua and change _get_type_cost
to get_type_cost
in PrePlanManager.lua by yourself. Also MenuManager.show_confirm_mission_asset_buy = expect_yes
is already in MenuTweaks.lua
You're right, it's buy_all, I miswrote that. Updated the comment.
This is due months, any plans to merge Kamikaze?
I have forked this project and merged your PR to the fork. It looks like Kamikaze has dropped this project so for now, if you'd like to get this in, you can use this fork until Kamikaze gets back.
https://github.com/wolfhud/WolfHUD
@bscout9956 @TRTSC @PhantomGamers @soumaxetuirk