16 lines
304 B
GDScript
16 lines
304 B
GDScript
extends RichTextLabel
|
|
|
|
|
|
func _ready() -> void:
|
|
_update_head_text()
|
|
|
|
|
|
func _notification(what: int) -> void:
|
|
if what == NOTIFICATION_TRANSLATION_CHANGED:
|
|
_update_head_text()
|
|
|
|
|
|
func _update_head_text() -> void:
|
|
var scene_name = get_tree().current_scene.name
|
|
text = "/" + tr(String(scene_name)) + "/"
|