Removed script select from the robotlist and added current script name to display.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
[ext_resource type="Script" uid="uid://dcxom1paffp0p" path="res://Scripts/Robot/RobotDisplay.cs" id="1_ltmdd"]
|
||||
|
||||
[node name="Robot" type="PanelContainer" unique_id=247502695 node_paths=PackedStringArray("listItem")]
|
||||
[node name="Robot" type="PanelContainer" unique_id=247502695 node_paths=PackedStringArray("listItem", "currentScript")]
|
||||
anchors_preset = 14
|
||||
anchor_top = 0.5
|
||||
anchor_right = 1.0
|
||||
@@ -12,6 +12,7 @@ grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_ltmdd")
|
||||
listItem = NodePath("HBoxContainer/ListItem")
|
||||
currentScript = NodePath("HBoxContainer/CurrentScript")
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="." unique_id=906487472]
|
||||
layout_mode = 2
|
||||
@@ -20,6 +21,7 @@ alignment = 1
|
||||
|
||||
[node name="ListItem" type="RichTextLabel" parent="HBoxContainer" unique_id=46246913]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "Robot #1"
|
||||
fit_content = true
|
||||
autowrap_mode = 0
|
||||
@@ -28,18 +30,16 @@ vertical_alignment = 1
|
||||
|
||||
[node name="Jump" type="Button" parent="HBoxContainer" unique_id=391426419]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "Jump to"
|
||||
|
||||
[node name="CurrentScript" type="RichTextLabel" parent="HBoxContainer" unique_id=425408407]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "Scriptname"
|
||||
fit_content = true
|
||||
autowrap_mode = 0
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="ScriptSelect" type="MenuButton" parent="HBoxContainer" unique_id=63458827]
|
||||
layout_mode = 2
|
||||
text = "Select script..."
|
||||
|
||||
[connection signal="pressed" from="HBoxContainer/Jump" to="." method="OnJumpToClicked"]
|
||||
|
||||
Reference in New Issue
Block a user