Cache graph values on GUI graphs so they do not get recalculated when graph options are changed
This commit is contained in:
@@ -29,6 +29,7 @@ class FitCapAmountVsTimeGraph(Graph):
|
||||
name = 'Cap Amount vs Time'
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.eosGraph = EosGraph()
|
||||
|
||||
@property
|
||||
|
||||
@@ -29,6 +29,7 @@ class FitCapRegenVsCapPercGraph(Graph):
|
||||
name = 'Cap Regen vs Cap Amount'
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.eosGraph = EosGraph()
|
||||
|
||||
@property
|
||||
|
||||
@@ -30,6 +30,7 @@ class FitDmgVsTimeGraph(Graph):
|
||||
name = 'Damage vs Time'
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.eosGraphDmg = EosGraphDmg()
|
||||
self.eosGraphDps = EosGraphDps()
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@ class FitDpsVsRangeGraph(Graph):
|
||||
name = 'DPS vs Range'
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.eosGraph = EosGraph()
|
||||
|
||||
@property
|
||||
|
||||
@@ -30,6 +30,7 @@ class FitMobilityVsTimeGraph(Graph):
|
||||
name = 'Mobility vs Time'
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.eosGraphSpeed = EosGraphSpeed()
|
||||
self.eosGraphDistance = EosGraphDistance()
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@ class FitShieldAmountVsTimeGraph(Graph):
|
||||
name = 'Shield Amount vs Time'
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.eosGraph = EosGraph()
|
||||
self.mainFrame = gui.mainFrame.MainFrame.getInstance()
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@ class FitShieldRegenVsShieldPercGraph(Graph):
|
||||
name = 'Shield Regen vs Shield Amount'
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.eosGraph = EosGraph()
|
||||
self.mainFrame = gui.mainFrame.MainFrame.getInstance()
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@ class FitWarpTimeVsDistanceGraph(Graph):
|
||||
name = 'Warp Time vs Distance'
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.eosGraph = EosGraph()
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user