fix: cards are reset when no longer void
This commit is contained in:
parent
0b60ce6eba
commit
cddc0424b6
|
|
@ -19,8 +19,8 @@ var scale_tween
|
||||||
if !Engine.is_editor_hint():
|
if !Engine.is_editor_hint():
|
||||||
wiggle_pos = float(text.hash() % 100)
|
wiggle_pos = float(text.hash() % 100)
|
||||||
_handle_wiggle(0)
|
_handle_wiggle(0)
|
||||||
if get_children() != [] and !Engine.is_editor_hint() and text == "":
|
if get_children() != [] and !Engine.is_editor_hint():
|
||||||
$BackgroundSprite.void_active = true
|
$BackgroundSprite.void_active = text == ""
|
||||||
@export var wiggle_strength: float = 0.2
|
@export var wiggle_strength: float = 0.2
|
||||||
@export var wiggle_speed: float = 5
|
@export var wiggle_speed: float = 5
|
||||||
@export_range(1, 2) var scale_bump: float = 1.05
|
@export_range(1, 2) var scale_bump: float = 1.05
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue