remove wiggle code not being used iin postIt

This commit is contained in:
betalars 2023-06-29 17:34:02 +02:00
parent 1481a2b085
commit 6457d123e3
1 changed files with 1 additions and 5 deletions

View File

@ -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
@ -16,6 +13,7 @@ var modulate_tween
$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)
@export var highlighted: bool = false:
@ -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