circle
This commit is contained in:
1 parent
d7f65bd79f
commit
731baa8bf4
2 files changed
+13
-13
No files matched your search
+10
-5
@@ -118,7 +118,7 @@ class BadukPanWidget(Widget):
|
||||
]
|
||||
if nodes_here and max(yd, xd) < self.grid_size / 2: # load old comment
|
||||
if touch.is_double_tap: # navigate to move
|
||||
katrain.game.set_current_node(nodes_here[-1])
|
||||
katrain.game.set_current_node(nodes_here[-1].parent)
|
||||
katrain.update_state()
|
||||
else: # load comments & pv
|
||||
katrain.log(f"\nAnalysis:\n{nodes_here[-1].analysis}", OUTPUT_DEBUG)
|
||||
@@ -418,9 +418,7 @@ class BadukPanWidget(Widget):
|
||||
move = Move.from_gtp(move_dict["move"])
|
||||
if move.coords is not None:
|
||||
alpha, scale = GHOST_ALPHA, 1.0
|
||||
if i == 0:
|
||||
alpha += TOP_MOVE_ALPHA
|
||||
elif move_dict["visits"] < VISITS_FRAC_SMALL * hint_moves[0]["visits"]:
|
||||
if move_dict["visits"] < VISITS_FRAC_SMALL * hint_moves[0]["visits"]:
|
||||
scale = 0.8
|
||||
if "pv" in move_dict:
|
||||
self.active_pv_moves.append((move.coords, move_dict["pv"], current_node))
|
||||
@@ -433,7 +431,14 @@ class BadukPanWidget(Widget):
|
||||
)
|
||||
if i == 0:
|
||||
Color(*TOP_MOVE_BORDER_COLOR)
|
||||
Line(circle=(self.gridpos_x[move.coords[0]], self.gridpos_y[move.coords[1]],self.stone_size * scale),width=1.1)
|
||||
Line(
|
||||
circle=(
|
||||
self.gridpos_x[move.coords[0]],
|
||||
self.gridpos_y[move.coords[1]],
|
||||
self.stone_size * scale - 1.2,
|
||||
),
|
||||
width=dp(1.2),
|
||||
)
|
||||
|
||||
# hover next move ghost stone
|
||||
if self.ghost_stone:
|
||||
|
||||
+3
-8
@@ -14,18 +14,13 @@ a = Analysis(
|
||||
datas=[
|
||||
("..\\katrain\\gui.kv", "katrain"),
|
||||
("..\\katrain\\popups.kv", "katrain"),
|
||||
("..\\katrain\\countdownbeep.wav", "katrain"),
|
||||
("..\\katrain\\stone1.wav", "katrain"),
|
||||
("..\\katrain\\stone2.wav", "katrain"),
|
||||
("..\\katrain\\stone3.wav", "katrain"),
|
||||
("..\\katrain\\stone4.wav", "katrain"),
|
||||
("..\\katrain\\stone5.wav", "katrain"),
|
||||
("..\\katrain\\config.json", "katrain"),
|
||||
("..\\katrain\\KataGo", "katrain\\KataGo"),
|
||||
("..\\katrain\img", "katrain\\img"),
|
||||
("..\\katrain\\models", "katrain\\models"),
|
||||
("..\\katrain\\i18n", "katrain\\i18n"),
|
||||
("..\\katrain\\sounds", "katrain\\sounds"),
|
||||
("..\\katrain\img", "katrain\\img"),
|
||||
("..\\katrain\\fonts", "katrain\\fonts"),
|
||||
("..\\katrain\\i18n", "katrain\\i18n"),
|
||||
],
|
||||
hiddenimports=["win32file", "win32timezone"], # FileChooser in kivy loads this conditionally
|
||||
hookspath=[kivymd_hooks_path],
|
||||
|
||||
Reference in new issue
Block a user