Merge branch 'master' into development
This commit is contained in:
@@ -51,11 +51,11 @@ class AmountChanger(wx.Dialog):
|
||||
fitID = mainFrame.getActiveFit()
|
||||
|
||||
if isinstance(self.thing, eos.types.Cargo):
|
||||
sFit.addCargo(fitID, self.thing.item.ID, int(self.input.GetLineText(0)), replace=True)
|
||||
sFit.addCargo(fitID, self.thing.item.ID, int(float(self.input.GetLineText(0))), replace=True)
|
||||
elif isinstance(self.thing, eos.types.Fit):
|
||||
sFit.changeAmount(fitID, self.thing, int(self.input.GetLineText(0)))
|
||||
sFit.changeAmount(fitID, self.thing, int(float(self.input.GetLineText(0))))
|
||||
elif isinstance(self.thing, eos.types.Fighter):
|
||||
sFit.changeActiveFighters(fitID, self.thing, int(self.input.GetLineText(0)))
|
||||
sFit.changeActiveFighters(fitID, self.thing, int(float(self.input.GetLineText(0))))
|
||||
|
||||
wx.PostEvent(mainFrame, GE.FitChanged(fitID=fitID))
|
||||
|
||||
|
||||
@@ -158,6 +158,8 @@ class CharacterEditor(wx.Frame):
|
||||
self.Bind(GE.CHAR_LIST_UPDATED, self.refreshCharacterList)
|
||||
self.entityEditor.Bind(wx.EVT_CHOICE, self.charChanged)
|
||||
|
||||
self.charChanged(None)
|
||||
|
||||
def btnRestrict(self):
|
||||
char = self.entityEditor.getActiveEntity()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user