remove wiggle code not being used iin postIt
This commit is contained in:
parent
1481a2b085
commit
6457d123e3
|
|
@ -3,9 +3,6 @@
|
|||
extends Area2D
|
||||
class_name PostIt
|
||||
var sibling
|
||||
var wiggle_pos: float = randf_range(-100, 100)
|
||||
var wiggle_intensity: float = 0
|
||||
var noise: Noise = FastNoiseLite.new()
|
||||
var shift_tween
|
||||
var modulate_tween
|
||||
|
||||
|
|
@ -15,6 +12,7 @@ var modulate_tween
|
|||
$Content/Label.text = value
|
||||
$Content/BackgroundSprite.frame = text.hash() % $Content/BackgroundSprite.sprite_frames.get_frame_count($Content/BackgroundSprite.animation)
|
||||
text = value
|
||||
|
||||
|
||||
@export var shift_by: Vector2 = Vector2(-32, 0)
|
||||
@export_color_no_alpha var highlight_color: Color = Color(1.5, 1.5, 1.5)
|
||||
|
|
@ -39,10 +37,8 @@ var modulate_tween
|
|||
else:
|
||||
if highlighted:
|
||||
modulate = Color(1, 1, 1)
|
||||
wiggle_intensity = 1
|
||||
else:
|
||||
modulate = Color(1, 1, 1)
|
||||
wiggle_intensity = 0
|
||||
|
||||
@export var voice_line: AudioStream = null
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue