Improved UI textbox
This commit is contained in:
@@ -14,9 +14,8 @@ enum InteractType {
|
||||
ONE_TIME_ITEM,
|
||||
CUTSCENE,
|
||||
BATTLE_TEST,
|
||||
CHATBOX,
|
||||
PROXIMITY_CHATBOX,
|
||||
};
|
||||
}
|
||||
|
||||
@export_category("Identification")
|
||||
@export var entityId:String = UUID.uuidv4()
|
||||
@@ -24,19 +23,30 @@ enum InteractType {
|
||||
var button := func():
|
||||
entityId = UUID.uuidv4()
|
||||
|
||||
# Movement settings
|
||||
@export_category("Dialogue")
|
||||
@export var dialogueName:String = ""
|
||||
@export var displayName:String = ""
|
||||
|
||||
@export_category("Movement")
|
||||
@export var movementType:MovementType = MovementType.NONE
|
||||
|
||||
# Interaction settings
|
||||
@export_category("Interactions")
|
||||
@export var interactType:InteractType = InteractType.NONE
|
||||
@export var dialogueResource:DialogueResource = null
|
||||
@export var dialogueBasePath:String = ""
|
||||
@export var dialogueTitle:String = "start"
|
||||
@export var oneTimeItem:ItemResource = null
|
||||
@export var cutscene:CutsceneResource = null
|
||||
@export var chatboxMessage:String = ""
|
||||
@export var chatboxDuration:float = 3.0
|
||||
|
||||
# TEST BATTLE
|
||||
@export_category("Test Battle")
|
||||
|
||||
func _enter_tree() -> void:
|
||||
if Engine.is_editor_hint():
|
||||
return
|
||||
if dialogueName != "":
|
||||
OVERWORLD.registerDialogueEntity(self)
|
||||
|
||||
func _exit_tree() -> void:
|
||||
if Engine.is_editor_hint():
|
||||
return
|
||||
if dialogueName != "":
|
||||
OVERWORLD.unregisterDialogueEntity(self)
|
||||
|
||||
Reference in New Issue
Block a user