Moved robots to separate folders and a dedicated robotlist in the UI

This commit is contained in:
=
2026-04-29 14:08:02 +02:00
parent 17057487d6
commit 832fb47ec0
15 changed files with 176 additions and 47 deletions
+17
View File
@@ -0,0 +1,17 @@
[gd_scene format=3 uid="uid://dciwxejdji2lg"]
[ext_resource type="PackedScene" uid="uid://cjae60v4c60vb" path="res://Prefabs/Robot/RobotVisual.tscn" id="2_3hvm5"]
[ext_resource type="Script" uid="uid://e0pgy7jya41y" path="res://Scripts/Robot/Robot.cs" id="2_j80uv"]
[sub_resource type="BoxShape3D" id="BoxShape3D_vquur"]
size = Vector3(1.1176758, 0.7307129, 1.0234375)
[node name="RobotBase" type="CharacterBody3D" unique_id=2075379542]
collision_layer = 2
script = ExtResource("2_j80uv")
[node name="RobotVisual" parent="." unique_id=516119901 instance=ExtResource("2_3hvm5")]
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=1405728816]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.05883789, 0.29821777, -0.01171875)
shape = SubResource("BoxShape3D_vquur")
+45
View File
@@ -0,0 +1,45 @@
[gd_scene format=3 uid="uid://dribqey54i62n"]
[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")]
anchors_preset = 14
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_bottom = 31.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_ltmdd")
listItem = NodePath("HBoxContainer/ListItem")
[node name="HBoxContainer" type="HBoxContainer" parent="." unique_id=906487472]
layout_mode = 2
theme_override_constants/separation = 20
alignment = 1
[node name="ListItem" type="RichTextLabel" parent="HBoxContainer" unique_id=46246913]
layout_mode = 2
text = "Robot #1"
fit_content = true
autowrap_mode = 0
horizontal_alignment = 1
vertical_alignment = 1
[node name="Jump" type="Button" parent="HBoxContainer" unique_id=391426419]
layout_mode = 2
text = "Jump to"
[node name="CurrentScript" type="RichTextLabel" parent="HBoxContainer" unique_id=425408407]
layout_mode = 2
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"]
+5
View File
@@ -0,0 +1,5 @@
[gd_scene format=3 uid="uid://cjae60v4c60vb"]
[ext_resource type="PackedScene" uid="uid://bccs6xik7xv8s" path="res://Assets/Objects/Robot.glb" id="1_wvvfd"]
[node name="Robot" unique_id=516119901 instance=ExtResource("1_wvvfd")]