ancient chinese+black
This commit is contained in:
1 parent
edd2c160c7
commit
282f492c4a
5 files changed
+8
-36
No files matched your search
@@ -471,14 +471,7 @@ class BadukPanWidget(Widget):
|
||||
)
|
||||
if move_policy == best_move_policy:
|
||||
Color(*Theme.TOP_MOVE_BORDER_COLOR[:3], Theme.POLICY_ALPHA)
|
||||
Line(
|
||||
circle=(
|
||||
self.gridpos_x[x],
|
||||
self.gridpos_y[y],
|
||||
self.stone_size - dp(1.2),
|
||||
),
|
||||
width=dp(2),
|
||||
)
|
||||
Line(circle=(self.gridpos_x[x], self.gridpos_y[y], self.stone_size - dp(1.2)), width=dp(2))
|
||||
|
||||
with pass_btn.canvas.after:
|
||||
move_policy = policy[-1]
|
||||
|
||||
@@ -663,11 +663,7 @@ def cached_text_texture(text, font_name, markup, _cache={}, **kwargs):
|
||||
|
||||
def draw_text(pos, text, font_name=None, markup=False, **kwargs):
|
||||
texture = cached_text_texture(text, font_name, markup, **kwargs)
|
||||
Rectangle(
|
||||
texture=texture,
|
||||
pos=(pos[0] - texture.size[0] / 2, pos[1] - texture.size[1] / 2),
|
||||
size=texture.size,
|
||||
)
|
||||
Rectangle(texture=texture, pos=(pos[0] - texture.size[0] / 2, pos[1] - texture.size[1] / 2), size=texture.size)
|
||||
|
||||
|
||||
def draw_circle(pos, r, col):
|
||||
|
||||
@@ -71,11 +71,7 @@ class ProgressLoader(BoxLayout):
|
||||
Clock.schedule_once(self.animation_show, 1)
|
||||
|
||||
def animation_show(self, _dt):
|
||||
animation = Animation(
|
||||
opacity=1,
|
||||
d=0.2,
|
||||
t="out_quad",
|
||||
)
|
||||
animation = Animation(opacity=1, d=0.2, t="out_quad")
|
||||
animation.start(self)
|
||||
|
||||
def request_download_file(self, url, path):
|
||||
|
||||
Reference in new issue
Block a user