Files
Super-Mario-Bros.-Remastere…/Scenes/Prefabs/Editor/EditorProperties/TilePropertyIntRange.tscn
2025-09-13 16:30:32 +01:00

50 lines
1.3 KiB
Plaintext

[gd_scene load_steps=2 format=3 uid="uid://4pi0tdru3c4v"]
[sub_resource type="GDScript" id="GDScript_ok74a"]
script/source = "extends TilePropertyContainer
func _ready() -> void:
%Label.text = (tile_property_name).replace(\"_\", \" \") + \":\"
$HSlider.min_value = min_value
$HSlider.step = property_step
$HSlider.max_value = max_value
func _process(_delta: float) -> void:
%Value.text = str(int($HSlider.value))
"
[node name="TilePropertyIntRange" type="HBoxContainer"]
anchors_preset = 10
anchor_right = 1.0
offset_bottom = 16.0
grow_horizontal = 2
script = SubResource("GDScript_ok74a")
[node name="Label" type="Label" parent="."]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 2
text = "PROPERTY_NAME:"
uppercase = true
[node name="HSlider" type="HSlider" parent="."]
unique_name_in_owner = true
custom_minimum_size = Vector2(96, 0)
layout_mode = 2
size_flags_horizontal = 10
[node name="Value" type="Label" parent="HSlider"]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
text = "0"
horizontal_alignment = 1
vertical_alignment = 1
[connection signal="start_value_changed" from="." to="HSlider" method="set_value_no_signal"]
[connection signal="value_changed" from="HSlider" to="." method="set_value"]