From c8a316e4b8987dad963656a34665fa0e23dedcb1 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Mon, 22 Apr 2024 16:34:25 +0200 Subject: update --- Dialogs/VisualNovelTextbox/autoadvance_indicator.gd | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Dialogs/VisualNovelTextbox/autoadvance_indicator.gd (limited to 'Dialogs/VisualNovelTextbox/autoadvance_indicator.gd') 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() -- cgit v1.2.3