Remove the crap from meta swap that was already reimplemented, leaving only drones as a reminder on what needs to be done
This commit is contained in:
@@ -138,13 +138,7 @@ class MetaSwap(ContextMenu):
|
||||
self.mainFrame.command.Submit(cmd.GuiMetaSwapCommand(fitID, context, item.ID, self.selection))
|
||||
|
||||
# for selected_item in self.selection:
|
||||
# if isinstance(selected_item, Module):
|
||||
# pos = fit.modules.index(selected_item)
|
||||
# self.mainFrame.command.Submit(cmd.GuiModuleAddCommand(fitID, item.ID, pos))
|
||||
#
|
||||
#
|
||||
# sFit.changeModule(fitID, pos, item.ID)
|
||||
# wx.PostEvent(self.mainFrame, GE.FitChanged(fitID=fitID))
|
||||
|
||||
#
|
||||
# elif isinstance(selected_item, Drone):
|
||||
# drone_count = None
|
||||
@@ -157,51 +151,6 @@ class MetaSwap(ContextMenu):
|
||||
#
|
||||
# if drone_count:
|
||||
# sFit.addDrone(fitID, item.ID, drone_count, True)
|
||||
# wx.PostEvent(self.mainFrame, GE.FitChanged(fitID=fitID))
|
||||
#
|
||||
# elif isinstance(selected_item, Fighter):
|
||||
# fighter_count = None
|
||||
#
|
||||
# for idx, fighter_stack in enumerate(fit.fighters):
|
||||
# # Right now fighters always will have max stack size.
|
||||
# # Including this for future improvement, so if adjustable
|
||||
# # fighter stacks get added we're ready for it.
|
||||
# if fighter_stack is selected_item:
|
||||
# if fighter_stack.amount > 0:
|
||||
# fighter_count = fighter_stack.amount
|
||||
# elif fighter_stack.amount == -1:
|
||||
# fighter_count = fighter_stack.amountActive
|
||||
# else:
|
||||
# fighter_count.amount = 0
|
||||
#
|
||||
# sFit.removeFighter(fitID, idx, False)
|
||||
# break
|
||||
#
|
||||
# sFit.addFighter(fitID, item.ID, True)
|
||||
# wx.PostEvent(self.mainFrame, GE.FitChanged(fitID=fitID))
|
||||
#
|
||||
# elif isinstance(selected_item, Booster):
|
||||
# for idx, booster_stack in enumerate(fit.boosters):
|
||||
# if booster_stack is selected_item:
|
||||
# self.mainFrame.command.Submit(cmd.GuiRemoveBoosterCommand(fitID, idx))
|
||||
# self.mainFrame.command.Submit(cmd.GuiAddBoosterCommand(fitID, item.ID))
|
||||
# break
|
||||
#
|
||||
# elif isinstance(selected_item, Implant):
|
||||
# for idx, implant_stack in enumerate(fit.implants):
|
||||
# if implant_stack is selected_item:
|
||||
# self.mainFrame.command.Submit(cmd.GuiRemoveImplantCommand(fitID, idx))
|
||||
# self.mainFrame.command.Submit(cmd.GuiAddImplantCommand(fitID, item.ID))
|
||||
# break
|
||||
#
|
||||
# elif isinstance(selected_item, Cargo):
|
||||
# for idx, cargo_stack in enumerate(fit.cargo):
|
||||
# if cargo_stack is selected_item:
|
||||
# # todo: make a command to change varieance of all items, or maybe per item type, which would
|
||||
# # utilize the two fitting commands that we need to remove then add?
|
||||
# sFit.removeCargo(fitID, idx)
|
||||
# self.mainFrame.command.Submit(cmd.GuiAddCargoCommand(fitID, item.ID, cargo_stack.amount, True))
|
||||
# break
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user