Refactor conversation stuff
This commit is contained in:
12
cutscene/conversation/ConversationAction.gd
Normal file
12
cutscene/conversation/ConversationAction.gd
Normal file
@@ -0,0 +1,12 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user