summaryrefslogtreecommitdiff
path: root/Dialogs/VisualNovelTextbox/autoadvance_indicator.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Dialogs/VisualNovelTextbox/autoadvance_indicator.gd')
-rw-r--r--Dialogs/VisualNovelTextbox/autoadvance_indicator.gd13
1 files changed, 13 insertions, 0 deletions
diff --git a/Dialogs/VisualNovelTextbox/autoadvance_indicator.gd b/Dialogs/VisualNovelTextbox/autoadvance_indicator.gd
new file mode 100644
index 0000000..fa8bbff
--- /dev/null
+++ b/Dialogs/VisualNovelTextbox/autoadvance_indicator.gd
@@ -0,0 +1,13 @@
+extends Range
+
+var enabled : bool = true
+
+func _process(_delta : float) -> void:
+ if !enabled:
+ hide()
+ return
+ if DialogicUtil.autoload().Inputs.auto_advance.get_progress() < 0:
+ hide()
+ else:
+ show()
+ value = DialogicUtil.autoload().Inputs.auto_advance.get_progress()