This commit is contained in:
Sander Land committed 2020-06-07 16:36:32 +02:00
1 parent bb3f0055f8
commit fd8fefd62f
3 files changed
+14 -8

No files matched your search

-1
View File
@@ -160,7 +160,6 @@ class KaTrainGui(Screen, KaTrainBase):
return
cn = self.game.current_node
last_player, next_player = self.players_info[cn.player], self.players_info[cn.next_player]
print('update state',self.play_analyze_mode == MODE_PLAY , self.nav_drawer.state != "open" , self.popup_open is None)
if self.play_analyze_mode == MODE_PLAY and self.nav_drawer.state != "open" and self.popup_open is None:
teaching_undo = cn.player and last_player.being_taught and cn.parent
if (
+14 -7
View File
@@ -826,13 +826,20 @@
AnalysisToggle:
id: ownership
text: i18n._('analysis:territory')
AutoSizedRectangleButton:
background_color: BOX_BACKGROUND_COLOR
size_hint_y: 0.5
id: analysis_button
on_release: root.toggle_dropdown()
text: i18n._("btn:Analyze")
pos_hint: {'center_y':0.5}
MDFloatLayout:
AutoSizedRectangleButton:
background_color: BOX_BACKGROUND_COLOR
size_hint_y: 0.5
pos_hint: {'center_y': 0.5, 'x': 0}
id: analysis_button
on_release: root.toggle_dropdown()
text: ' ' + i18n._("btn:Analyze")
Image:
pos_hint: {'center_y': 0.5, 'x': 0}
size_hint: None, 0.5
width: self.height/2
source: 'img/menu.png'
mipmap: True
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB