Skip to content

Commit

Permalink
chore(dynamic_bg_pattern.gd, level_button.gd): 修改以适应 Word 新标准
Browse files Browse the repository at this point in the history
  • Loading branch information
cutekibry committed Feb 8, 2024
1 parent 1e41c38 commit e861a12
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions bg/dynamic_bg/dynamic_bg_pattern/dynamic_bg_pattern.gd
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,10 @@ func _process(delta):
queue_free()

func _on_victory_change(v: bool):
$Word1.set_victory(v)
$Word2.set_victory(v)
if v:
$Word1.set_color_from_name("golden")
$Word2.set_color_from_name("golden")
else:
$Word1.set_color_from_name("default")
$Word2.set_color_from_name("default")

Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ script = ExtResource("1_wwqfn")
[node name="Word" parent="." index="0" instance=ExtResource("3_js2i2")]
position = Vector2(19, 19)
scale = Vector2(1.5, 1.5)
text_id = 0

0 comments on commit e861a12

Please sign in to comment.