Compare commits
No commits in common. "40fb724000f101e1a5823ee40546342c11e4dd88" and "3f2281a155d18a4b64e34f04dea1d85bb2b806c9" have entirely different histories.
40fb724000
...
3f2281a155
@ -60,9 +60,6 @@ func update_cardview(new_card = null):
|
|||||||
for i in input_dice_views:
|
for i in input_dice_views:
|
||||||
i.bold = true
|
i.bold = true
|
||||||
|
|
||||||
#TODO: same dice UI support
|
|
||||||
#TODO: hover UI support maybe
|
|
||||||
|
|
||||||
|
|
||||||
# add an input_dice_view to the array (for easy management)
|
# add an input_dice_view to the array (for easy management)
|
||||||
# and to the autogrid
|
# and to the autogrid
|
||||||
@ -74,11 +71,6 @@ func add_input_dice_view():
|
|||||||
|
|
||||||
# this is run once the card emits card_removed
|
# this is run once the card emits card_removed
|
||||||
func card_view_run():
|
func card_view_run():
|
||||||
|
|
||||||
# play the disappearing input dice animation
|
|
||||||
for i in input_dice_views:
|
|
||||||
yield(i.run_disappear_animation(), "completed")
|
|
||||||
|
|
||||||
# play the using animation
|
# play the using animation
|
||||||
$AnimationPlayer.play("Fly Off")
|
$AnimationPlayer.play("Fly Off")
|
||||||
yield($AnimationPlayer, "animation_finished")
|
yield($AnimationPlayer, "animation_finished")
|
||||||
|
@ -23,8 +23,3 @@ func set_bold(is_bold : bool = true):
|
|||||||
$Sprite.texture = load("res://Assets/DiceInput.png")
|
$Sprite.texture = load("res://Assets/DiceInput.png")
|
||||||
|
|
||||||
bold = is_bold
|
bold = is_bold
|
||||||
|
|
||||||
|
|
||||||
func run_disappear_animation():
|
|
||||||
$AnimationPlayer.play("Disappear")
|
|
||||||
yield($AnimationPlayer, "animation_finished")
|
|
||||||
|
@ -33,7 +33,7 @@ font_data = ExtResource( 1 )
|
|||||||
|
|
||||||
[sub_resource type="Animation" id=8]
|
[sub_resource type="Animation" id=8]
|
||||||
resource_name = "Disappear"
|
resource_name = "Disappear"
|
||||||
length = 0.8
|
length = 0.5
|
||||||
step = 0.01
|
step = 0.01
|
||||||
tracks/0/type = "value"
|
tracks/0/type = "value"
|
||||||
tracks/0/path = NodePath("Sprite:rect_scale")
|
tracks/0/path = NodePath("Sprite:rect_scale")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user