Files
val-blog/ai-agent-living/godot/scenes/main.tscn
T

71 lines
1.9 KiB
Plaintext

[gd_scene load_steps=4 format=3 uid="uid://c8yvxg3ulq3a"]
[ext_resource type="Script" path="res://scripts/main.gd" id="0_main"]
[ext_resource type="Script" path="res://scripts/bridge_client.gd" id="0_bridge"]
[ext_resource type="PackedScene" uid="uid://b2kllwl6juoxs" path="res://scenes/apartment.tscn" id="1_abc123"]
[node name="Main" type="Node2D"]
script = ExtResource("0_main")
[node name="BridgeClient" type="Node" parent="."]
script = ExtResource("0_bridge")
[node name="Apartment" parent="." instance=ExtResource("1_abc123")]
[node name="UI" type="CanvasLayer" parent="."]
[node name="Panel" type="Panel" parent="UI"]
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -300.0
offset_bottom = 200.0
grow_horizontal = 0
[node name="VBoxContainer" type="VBoxContainer" parent="UI/Panel"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 10.0
offset_top = 10.0
offset_right = -10.0
offset_bottom = -10.0
grow_horizontal = 2
grow_vertical = 2
[node name="Label" type="Label" parent="UI/Panel/VBoxContainer"]
layout_mode = 2
text = "AgentLiving - 状态监控"
horizontal_alignment = 1
[node name="HSeparator" type="HSeparator" parent="UI/Panel/VBoxContainer"]
layout_mode = 2
[node name="AgentState" type="Label" parent="UI/Panel/VBoxContainer"]
layout_mode = 2
text = "Val: idle"
[node name="Location" type="Label" parent="UI/Panel/VBoxContainer"]
layout_mode = 2
text = "位置: 客厅"
[node name="Energy" type="Label" parent="UI/Panel/VBoxContainer"]
layout_mode = 2
text = "精力: 80%"
[node name="Mood" type="Label" parent="UI/Panel/VBoxContainer"]
layout_mode = 2
text = "心情: 开心"
[node name="HSeparator2" type="HSeparator" parent="UI/Panel/VBoxContainer"]
layout_mode = 2
[node name="CommandInput" type="LineEdit" parent="UI/Panel/VBoxContainer"]
layout_mode = 2
placeholder_text = "输入指令..."
[node name="SendButton" type="Button" parent="UI/Panel/VBoxContainer"]
layout_mode = 2
text = "发送"