Move HP toggled event to global

This commit is contained in:
DarkPhoenix
2019-08-16 08:41:14 +03:00
parent 6baa9dd322
commit f3551ce570
3 changed files with 16 additions and 15 deletions

View File

@@ -19,11 +19,12 @@
# noinspection PyPackageRequirements
import wx
from gui.statsView import StatsView
from gui.bitmap_loader import BitmapLoader
from gui.utils.numberFormatter import formatAmount
import gui.globalEvents as GE
import gui.mainFrame
from gui.builtinStatsViews.resistancesViewFull import EFFECTIVE_HP_TOGGLED
from gui.bitmap_loader import BitmapLoader
from gui.statsView import StatsView
from gui.utils.numberFormatter import formatAmount
from service.fit import Fit
@@ -34,7 +35,7 @@ class RechargeViewFull(StatsView):
StatsView.__init__(self)
self.parent = parent
self.mainFrame = gui.mainFrame.MainFrame.getInstance()
self.mainFrame.Bind(EFFECTIVE_HP_TOGGLED, self.toggleEffective)
self.mainFrame.Bind(GE.EFFECTIVE_HP_TOGGLED, self.toggleEffective)
self.effective = True
def getHeaderText(self, fit):