remove wiggle code not being used iin postIt
This commit is contained in:
parent
1481a2b085
commit
6457d123e3
|
|
@ -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
|
||||||
|
|
||||||
|
|
@ -16,6 +13,7 @@ var modulate_tween
|
||||||
$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)
|
||||||
@export var highlighted: bool = false:
|
@export var highlighted: bool = false:
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue