mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 07:28:14 +00:00
Added text alignment options to level editor labels
This commit is contained in:
@@ -9,9 +9,12 @@
|
||||
script/source = "extends Node2D
|
||||
|
||||
@export var text := \"\"
|
||||
@export_enum(\"Left\", \"Center\", \"Right\") var alignment := 0
|
||||
# guzlad: Do we even need the 4th option \"fill\"?
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
$TextLabel.text = text
|
||||
$TextLabel.horizontal_alignment = alignment
|
||||
"
|
||||
|
||||
[node name="TextLabelOBJ" type="Node2D"]
|
||||
@@ -26,7 +29,7 @@ offset_bottom = 8.0
|
||||
|
||||
[node name="EditorPropertyExposer" type="Node" parent="."]
|
||||
script = ExtResource("2_xh6kd")
|
||||
properties = Array[String](["text"])
|
||||
properties = Array[String](["text", "alignment"])
|
||||
metadata/_custom_type_script = "uid://ctfbuoxtnnl0q"
|
||||
|
||||
[node name="LevelEditorVisibleNode" type="Node2D" parent="."]
|
||||
|
Reference in New Issue
Block a user