Files
Dawn-Godot/cutscene/conversation/ConversationAction.gd

12 lines
330 B
GDScript

class_name ConversationAction
static func textboxCallable(params:Dictionary) -> int:
assert(params.has('label'))
await UI.TEXTBOX.setTextAndWait(params['label'])
return Cutscene.CUTSCENE_CONTINUE
static func getTextboxCallable(label:String) -> Dictionary:
return {
"function": textboxCallable,
"label": label
}