Restructured files and worked on more complex quest progression

This commit is contained in:
2025-08-11 02:16:39 -04:00
parent 434216ca29
commit 95a7db036b
47 changed files with 475 additions and 53 deletions

View File

@@ -1,7 +1,10 @@
class_name Waypoint extends Control
var event : Quest.Event = null
var percent : float = 0
var filled: bool
var blink_tween : Tween
var blinking : bool = false
var fill: bool :
get:
return filled
@@ -9,10 +12,22 @@ var fill: bool :
if value != filled:
set_fill(value)
func blink(blnk : bool) -> void:
if blinking == blnk:
return
blinking = blnk
if blinking:
blink_tween = create_tween()
blink_tween.tween_property($Dot,"modulate:a", 0, .5)
blink_tween.tween_property($Dot,"modulate:a", 1, .5)
blink_tween.set_loops(-1)
else:
blink_tween.stop()
blink_tween = null
func set_fill(value : bool) -> void:
filled = value
if value:
if value and !blinking:
$Dot.visible = true
$Fill.modulate = Color.SEA_GREEN
else: