Improved UI textbox
This commit is contained in:
@@ -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 != ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user