Slowly fixing small ui bugs

This commit is contained in:
2026-06-12 22:03:51 -05:00
parent 3d01fcce86
commit 27d056fafa
4 changed files with 22 additions and 2 deletions
+14
View File
@@ -13,6 +13,7 @@ var activeConversation:bool = false
func _ready() -> void:
DialogueManager.dialogue_started.connect(_onDialogueStarted)
DialogueManager.dialogue_ended.connect(_onDialogueEnded)
SCENE.sceneChanged.connect(_onSceneChanged)
func _onDialogueStarted(_resource:DialogueResource) -> void:
dialogueActive = true
@@ -20,6 +21,19 @@ func _onDialogueStarted(_resource:DialogueResource) -> void:
func _onDialogueEnded(_resource:DialogueResource) -> void:
dialogueActive = false
func _onSceneChanged(_newScene:SceneSingleton.SceneType) -> void:
_cleanupDialogue()
func _cleanupDialogue() -> void:
if chatBoxContainer:
for child in chatBoxContainer.get_children():
if child is DialogueTextbox or child is DialogueChoiceBox:
child.queue_free()
activeConversation = false
dialogueActive = false
if INTERACT_INDICATOR:
INTERACT_INDICATOR.clear()
var INTERACT_INDICATOR:InteractIndicator:
get(): return interactIndicator
+1
View File
@@ -0,0 +1 @@
uid://cee1d1wrf0ypc
+1
View File
@@ -0,0 +1 @@
uid://bmcklt3xo3hk1