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):
|
func textbox(id: String, left_bust: Texture = null, right_bust: Texture = null):
|
||||||
var textbox = RPGH_DefaultTextbox.new()
|
var textbox = RPGH_DefaultTextbox.new()
|
||||||
var text = text_data["tb"][id].eng
|
var text = text_data[id].eng
|
||||||
textbox.text = text
|
var name = text_data[id].name
|
||||||
|
textbox.text = name + "\n" + text
|
||||||
if !left_bust == null:
|
if !left_bust == null:
|
||||||
textbox.left_artwork = left_bust
|
textbox.left_artwork = left_bust
|
||||||
if !right_bust == null:
|
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):
|
func screen_text(id: String):
|
||||||
var screen_text = RPGH_ScreenText.new()
|
var screen_text = RPGH_ScreenText.new()
|
||||||
var text = text_data["tb"][id].eng
|
var text = text_data[id].eng
|
||||||
screen_text.text = text
|
screen_text.text = text
|
||||||
|
|
||||||
var is_no_textbox_opened = _current_textbox == null
|
var is_no_textbox_opened = _current_textbox == null
|
||||||
|
|
Loading…
Reference in New Issue
Block a user