weather min cloud base; minor updates

This commit is contained in:
Vasyl Horbachenko
2018-06-21 04:39:37 +03:00
parent 73cf5c635f
commit 1a491bb814
4 changed files with 21 additions and 3 deletions

View File

@@ -17,10 +17,14 @@ class ConfigurationMenu(Menu):
self.takeoff_var = BooleanVar()
self.takeoff_var.set(self.game.settings.only_player_takeoff)
self.night_var = BooleanVar()
self.night_var.set(self.game.settings.night_disabled)
def dismiss(self):
self.game.settings.player_skill = self.player_skill_var.get()
self.game.settings.enemy_skill = self.enemy_skill_var.get()
self.game.settings.only_player_takeoff = self.takeoff_var.get()
self.game.settings.night_disabled = self.night_var.get()
super(ConfigurationMenu, self).dismiss()
def display(self):
@@ -33,9 +37,10 @@ class ConfigurationMenu(Menu):
OptionMenu(self.frame, self.enemy_skill_var, "Average", "Good", "High", "Excellent").grid(row=1, column=1)
Checkbutton(self.frame, text="Takeoff only for player group", variable=self.takeoff_var).grid(row=2, column=0, columnspan=2)
Checkbutton(self.frame, text="Disable night missions", variable=self.night_var).grid(row=3, column=0, columnspan=2)
Button(self.frame, text="Back", command=self.dismiss).grid(row=3, column=0, columnspan=1)
Button(self.frame, text="Cheat +200m", command=self.cheat_money).grid(row=4, column=0)
Button(self.frame, text="Back", command=self.dismiss).grid(row=4, column=0, columnspan=1)
Button(self.frame, text="Cheat +200m", command=self.cheat_money).grid(row=5, column=0)
def cheat_money(self):
self.game.budget += 200