Improved UI textbox

This commit is contained in:
2026-06-12 11:56:30 -05:00
parent f6a0bb156e
commit 2f3a4eab66
39 changed files with 574 additions and 706 deletions
+19
View File
@@ -7,6 +7,25 @@ var hasFadedOut:bool = false
var playerDestinationNodeName:String
var newMapLoaded:bool = false
var _dialogueEntities:Dictionary = {}
var _playerEntity:Entity = null
func registerDialogueEntity(entity:Entity) -> void:
_dialogueEntities[entity.dialogueName.to_lower()] = entity
if entity.movementType == Entity.MovementType.PLAYER:
_playerEntity = entity
func unregisterDialogueEntity(entity:Entity) -> void:
_dialogueEntities.erase(entity.dialogueName.to_lower())
if _playerEntity == entity:
_playerEntity = null
func getEntityByDialogueName(dialogueName:String) -> Entity:
return _dialogueEntities.get(dialogueName.to_lower(), null)
func getPlayerEntity() -> Entity:
return _playerEntity
func isMapChanging() -> bool:
return newMapPath != ""