extends Node
func _ready():
var label = Label.new()
label.set_name("label")
label.margin_right = 1920.0
label.margin_bottom = 1080.0 - 20
label.margin_left = 20.0
label.align = Label.ALIGN_LEFT
label.valign = Label.VALIGN_BOTTOM
var dynamic_font = DynamicFont.new()
dynamic_font.font_data = load("res://fonts/Lingo.ttf")
dynamic_font.size = 36
dynamic_font.outline_color = Color(0, 0, 0, 1)
dynamic_font.outline_size = 2
label.add_font_override("font", dynamic_font)
add_child(label)
func showMessage(text):
var label = self.get_node("label")
if !label.text == "":
label.text += "\n"
label.text += text
yield(get_tree().create_timer(10.0), "timeout")
var newline = label.text.find("\n")
if newline == -1:
label.text = ""
else:
label.text = label.text.substr(newline + 1)
d' value='a08b1b3443f451d3b2bfdbbcf4f97d4ba75e3e53'/>
blob: 28894e0cb8957a1bc129e9ac001ff4e132f270a1 (
plain) (
blame)
1
2
3
|
name: "Ending"
display_name: "Back Room"
# TODO: Yellow Ending
|