Files
tekton/scenes/main.tscn
T
2024-10-24 17:40:10 +08:00

136 lines
6.8 KiB
Plaintext

[gd_scene load_steps=7 format=3 uid="uid://dxn87yj8qnfpp"]
[ext_resource type="MeshLibrary" uid="uid://54tpx8cmksfc" path="res://addons/enhanced_gridmap/meshlibrary/default.tres" id="1_110wo"]
[ext_resource type="Script" path="res://scenes/main.gd" id="1_xcpe3"]
[ext_resource type="Script" path="res://addons/enhanced_gridmap/enhanced_gridmap.gd" id="2_hbe1v"]
[ext_resource type="Environment" uid="uid://jbptgqvstei3" path="res://assets/main-environment.tres" id="4_ky38j"]
[ext_resource type="StyleBox" uid="uid://dlw1ogamn741n" path="res://assets/styles/box_flat.tres" id="5_dvx6y"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_1cewu"]
[node name="Main" type="Node3D"]
script = ExtResource("1_xcpe3")
turn_based_mode = false
[node name="EnhancedGridMap" type="GridMap" parent="."]
mesh_library = ExtResource("1_110wo")
cell_size = Vector3(1, 1, 1)
data = {
"cells": PackedInt32Array(9, 0, 0, 9, 1, 0, 9, 2, 0, 9, 3, 0, 9, 4, 0, 9, 5, 0, 9, 8, 0, 9, 9, 0, 9, 7, 0, 9, 6, 0, 0, 0, 0, 0, 1, 0, 0, 2, 0, 0, 3, 0, 0, 4, 0, 0, 5, 0, 0, 6, 0, 0, 7, 0, 0, 8, 0, 0, 9, 0, 1, 0, 0, 1, 1, 0, 1, 2, 0, 1, 3, 0, 1, 4, 0, 1, 5, 0, 1, 6, 0, 1, 7, 0, 1, 8, 0, 1, 9, 0, 2, 0, 0, 2, 1, 0, 2, 2, 0, 2, 3, 0, 2, 4, 0, 2, 5, 0, 2, 6, 0, 2, 7, 0, 2, 8, 0, 2, 9, 0, 3, 0, 0, 3, 1, 0, 3, 2, 0, 3, 3, 0, 3, 4, 0, 3, 5, 0, 3, 6, 0, 3, 7, 0, 3, 8, 0, 3, 9, 0, 4, 0, 0, 4, 1, 0, 4, 2, 0, 4, 3, 0, 4, 4, 0, 4, 5, 0, 4, 6, 0, 4, 7, 0, 4, 8, 0, 4, 9, 0, 5, 0, 0, 5, 1, 0, 5, 2, 0, 5, 3, 0, 5, 4, 0, 5, 5, 0, 5, 6, 0, 5, 7, 0, 5, 8, 0, 5, 9, 0, 6, 0, 0, 6, 1, 0, 6, 2, 0, 6, 3, 0, 6, 4, 0, 6, 5, 0, 6, 6, 0, 6, 7, 0, 6, 8, 0, 6, 9, 0, 7, 0, 0, 7, 1, 0, 7, 2, 0, 7, 3, 0, 7, 4, 0, 7, 5, 0, 7, 6, 0, 7, 7, 0, 7, 8, 0, 7, 9, 0, 8, 0, 0, 8, 1, 0, 8, 2, 0, 8, 3, 0, 8, 4, 0, 8, 5, 0, 8, 6, 0, 8, 7, 0, 8, 8, 0, 8, 9, 0, 65536, 0, 7, 65536, 1, 10, 65536, 2, 9, 65536, 3, 9, 65536, 4, 8, 65536, 5, 7, 65536, 6, 9, 65536, 7, 9, 65536, 8, 10, 65536, 9, 8, 65537, 0, 9, 65537, 1, 8, 65537, 2, 10, 65537, 3, 9, 65537, 4, 7, 65537, 5, 10, 65537, 6, 9, 65537, 7, 9, 65537, 8, 10, 65537, 9, 10, 65538, 0, 7, 65538, 1, 10, 65538, 2, 9, 65538, 3, 8, 65538, 4, 9, 65538, 5, 10, 65538, 6, 9, 65538, 7, 8, 65538, 8, 9, 65538, 9, 10, 65539, 0, 9, 65539, 1, 10, 65539, 2, 9, 65539, 3, 10, 65539, 4, 9, 65539, 5, 9, 65539, 6, 10, 65539, 7, 10, 65539, 8, 9, 65539, 9, 9, 65540, 0, 7, 65540, 1, 7, 65540, 2, 7, 65540, 3, 10, 65540, 4, 9, 65540, 5, 7, 65540, 6, 9, 65540, 7, 9, 65540, 8, 7, 65540, 9, 8, 65541, 0, 8, 65541, 1, 7, 65541, 2, 7, 65541, 3, 10, 65541, 4, 10, 65541, 5, 8, 65541, 6, 7, 65541, 7, 7, 65541, 8, 8, 65541, 9, 9, 65542, 0, 10, 65542, 1, 10, 65542, 2, 9, 65542, 3, 7, 65542, 4, 8, 65542, 5, 9, 65542, 6, 10, 65542, 7, 9, 65542, 8, 10, 65542, 9, 9, 65543, 0, 7, 65543, 1, 8, 65543, 2, 10, 65543, 3, 8, 65543, 4, 7, 65543, 5, 10, 65543, 6, 10, 65543, 7, 7, 65543, 8, 10, 65543, 9, 8, 65544, 0, 9, 65544, 1, 9, 65544, 2, 8, 65544, 3, 8, 65544, 4, 8, 65544, 5, 7, 65544, 6, 8, 65544, 7, 9, 65544, 8, 10, 65544, 9, 10, 65545, 0, 10, 65545, 1, 8, 65545, 2, 10, 65545, 3, 8, 65545, 4, 8, 65545, 5, 7, 65545, 6, 9, 65545, 7, 9, 65545, 8, 9, 65545, 9, 9)
}
script = ExtResource("2_hbe1v")
floors = 2
non_walkable_items = Array[int]([4, 5])
metadata/_editor_floor_ = Vector3(0, 1, 0)
[node name="Camera3D" type="Camera3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0.422618, 0.906308, 0, -0.906308, 0.422618, 5, 15, 12.36)
environment = ExtResource("4_ky38j")
fov = 35.5
[node name="Camera3D200" type="Camera3D" parent="."]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 5, 30, 5)
visible = false
environment = ExtResource("4_ky38j")
fov = 35.5
[node name="Panel" type="Panel" parent="."]
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -77.0
offset_top = 6.0
offset_right = 77.0
offset_bottom = 59.0
grow_horizontal = 2
theme_override_styles/panel = ExtResource("5_dvx6y")
[node name="NetworkInfo" type="VBoxContainer" parent="."]
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -58.0
offset_top = 7.0
offset_right = 58.0
offset_bottom = 57.0
grow_horizontal = 2
[node name="NetworkSideDisplay" type="Label" parent="NetworkInfo"]
layout_mode = 2
text = "Network Side"
horizontal_alignment = 1
[node name="UniquePeerID" type="Label" parent="NetworkInfo"]
layout_mode = 2
text = "Unique Peer ID"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Menu" type="VBoxContainer" parent="."]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -85.0
offset_top = -33.0
offset_right = 85.0
offset_bottom = 33.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/separation = 20
[node name="Host" type="Button" parent="Menu"]
layout_mode = 2
theme_override_styles/focus = ExtResource("5_dvx6y")
theme_override_styles/disabled_mirrored = ExtResource("5_dvx6y")
theme_override_styles/disabled = ExtResource("5_dvx6y")
theme_override_styles/hover_pressed_mirrored = ExtResource("5_dvx6y")
theme_override_styles/hover_pressed = ExtResource("5_dvx6y")
theme_override_styles/hover_mirrored = ExtResource("5_dvx6y")
theme_override_styles/hover = ExtResource("5_dvx6y")
theme_override_styles/pressed_mirrored = ExtResource("5_dvx6y")
theme_override_styles/pressed = ExtResource("5_dvx6y")
theme_override_styles/normal_mirrored = ExtResource("5_dvx6y")
theme_override_styles/normal = ExtResource("5_dvx6y")
text = "Host"
[node name="Join" type="Button" parent="Menu"]
layout_mode = 2
theme_override_styles/focus = ExtResource("5_dvx6y")
theme_override_styles/disabled_mirrored = ExtResource("5_dvx6y")
theme_override_styles/disabled = ExtResource("5_dvx6y")
theme_override_styles/hover_pressed_mirrored = ExtResource("5_dvx6y")
theme_override_styles/hover_pressed = ExtResource("5_dvx6y")
theme_override_styles/hover_mirrored = ExtResource("5_dvx6y")
theme_override_styles/hover = ExtResource("5_dvx6y")
theme_override_styles/pressed_mirrored = ExtResource("5_dvx6y")
theme_override_styles/pressed = ExtResource("5_dvx6y")
theme_override_styles/normal_mirrored = ExtResource("5_dvx6y")
theme_override_styles/normal = ExtResource("5_dvx6y")
text = "Join"
[node name="MessageInput" type="LineEdit" parent="."]
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -210.0
offset_top = -46.0
offset_right = 210.0
offset_bottom = -15.0
grow_horizontal = 2
grow_vertical = 0
theme_override_styles/focus = SubResource("StyleBoxFlat_1cewu")
theme_override_styles/normal = ExtResource("5_dvx6y")
placeholder_text = "Chat"
alignment = 1
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = ExtResource("4_ky38j")
[connection signal="pressed" from="Menu/Host" to="." method="_on_host_pressed"]
[connection signal="pressed" from="Menu/Join" to="." method="_on_join_pressed"]
[connection signal="text_submitted" from="MessageInput" to="." method="_on_message_input_text_submitted"]