ile-de-test/addons/waterways/gui/progress_window.gd

12 lines
293 B
GDScript3
Raw Normal View History

2023-10-05 18:02:23 +00:00
# Copyright © 2022 Kasper Arnklit Frandsen - MIT License
# See `LICENSE.md` included in the source distribution for details.
@tool
extends Window
@onready var _progress_bar = $ProgressBar
func show_progress(message, progress) -> void:
self.title = message
_progress_bar.ratio = progress