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 extends Area2D
class_name PostIt class_name PostIt
var sibling var sibling
var wiggle_pos: float = randf_range(-100, 100)
var wiggle_intensity: float = 0
var noise: Noise = FastNoiseLite.new()
var shift_tween var shift_tween
var modulate_tween var modulate_tween
@ -15,6 +12,7 @@ var modulate_tween
$Content/Label.text = value $Content/Label.text = value
$Content/BackgroundSprite.frame = text.hash() % $Content/BackgroundSprite.sprite_frames.get_frame_count($Content/BackgroundSprite.animation) $Content/BackgroundSprite.frame = text.hash() % $Content/BackgroundSprite.sprite_frames.get_frame_count($Content/BackgroundSprite.animation)
text = value text = value
@export var shift_by: Vector2 = Vector2(-32, 0) @export var shift_by: Vector2 = Vector2(-32, 0)
@export_color_no_alpha var highlight_color: Color = Color(1.5, 1.5, 1.5) @export_color_no_alpha var highlight_color: Color = Color(1.5, 1.5, 1.5)
@ -39,10 +37,8 @@ var modulate_tween
else: else:
if highlighted: if highlighted:
modulate = Color(1, 1, 1) modulate = Color(1, 1, 1)
wiggle_intensity = 1
else: else:
modulate = Color(1, 1, 1) modulate = Color(1, 1, 1)
wiggle_intensity = 0
@export var voice_line: AudioStream = null @export var voice_line: AudioStream = null