: all by default
This commit is contained in:
Wiktor Mazur
2020-03-12 20:33:59 +01:00
parent f5e69f9e0d
commit 80d87ee230
3 changed files with 11 additions and 19 deletions
+3 -9
View File
@@ -50,7 +50,6 @@ class ViewTypeWidget(QComboBox):
def __init__(self):
QComboBox.__init__(self)
self.addItem(ViewType.DMG)
self.addItem(ViewType.DMG_ALL)
def get_view_type(self):
return self.currentText()
@@ -130,14 +129,9 @@ class MainWidget(QWidget):
def damage_stats(self):
stats = {
ViewType.DMG: {
StatsType.ZONE: functools.partial(engine.zone_stats, with_damage=True),
StatsType.LAST_FIGHT: functools.partial(engine.last_fight_stats, with_damage=True),
StatsType.OVERALL: functools.partial(engine.overall_stats, with_damage=True),
},
ViewType.DMG_ALL: {
StatsType.ZONE: functools.partial(engine.zone_stats, with_damage=False),
StatsType.LAST_FIGHT: functools.partial(engine.last_fight_stats, with_damage=False),
StatsType.OVERALL: functools.partial(engine.overall_stats, with_damage=False),
StatsType.ZONE: functools.partial(engine.zone_stats),
StatsType.LAST_FIGHT: functools.partial(engine.last_fight_stats),
StatsType.OVERALL: functools.partial(engine.overall_stats),
}
}
-1
View File
@@ -1,3 +1,2 @@
class ViewType:
DMG = 'Stats (damage)'
DMG_ALL = 'Stats (damage all)'