Dialog System
This commit is contained in:
parent
3f29cce686
commit
0a75950d8e
|
@ -36,8 +36,9 @@ func _json_parser():
|
|||
|
||||
func textbox(id: String, left_bust: Texture = null, right_bust: Texture = null):
|
||||
var textbox = RPGH_DefaultTextbox.new()
|
||||
var text = text_data["tb"][id].eng
|
||||
textbox.text = text
|
||||
var text = text_data[id].eng
|
||||
var name = text_data[id].name
|
||||
textbox.text = name + "\n" + text
|
||||
if !left_bust == null:
|
||||
textbox.left_artwork = left_bust
|
||||
if !right_bust == null:
|
||||
|
@ -51,7 +52,7 @@ func textbox(id: String, left_bust: Texture = null, right_bust: Texture = null):
|
|||
|
||||
func screen_text(id: String):
|
||||
var screen_text = RPGH_ScreenText.new()
|
||||
var text = text_data["tb"][id].eng
|
||||
var text = text_data[id].eng
|
||||
screen_text.text = text
|
||||
|
||||
var is_no_textbox_opened = _current_textbox == null
|
||||
|
|
Loading…
Reference in New Issue
Block a user