last update

This commit is contained in:
2024-10-24 17:40:10 +08:00
parent 941ad46e09
commit 8fe13a42ca
7 changed files with 320 additions and 142 deletions
+31 -2
View File
@@ -1,9 +1,12 @@
[gd_scene load_steps=5 format=3 uid="uid://dxn87yj8qnfpp"]
[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")
@@ -13,7 +16,7 @@ turn_based_mode = false
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, 7, 65536, 2, 7, 65536, 3, 7, 65536, 4, 8, 65536, 5, 7, 65536, 6, 7, 65536, 7, 7, 65536, 8, 7, 65536, 9, 7, 65537, 0, 7, 65537, 1, 7, 65537, 2, 8, 65537, 3, 8, 65537, 4, 7, 65537, 5, 7, 65537, 6, 7, 65537, 7, 8, 65537, 8, 8, 65537, 9, 7, 65538, 0, 8, 65538, 1, 7, 65538, 2, 8, 65538, 3, 8, 65538, 4, 9, 65538, 5, 7, 65538, 6, 8, 65538, 7, 7, 65538, 8, 9, 65538, 9, 8, 65539, 0, 9, 65539, 1, 7, 65539, 2, 7, 65539, 3, 7, 65539, 4, 8, 65539, 5, 7, 65539, 6, 9, 65539, 7, 7, 65539, 8, 9, 65539, 9, 9, 65540, 0, 7, 65540, 1, 9, 65540, 2, 8, 65540, 3, 7, 65540, 4, 7, 65540, 5, 7, 65540, 6, 7, 65540, 7, 8, 65540, 8, 9, 65540, 9, 7, 65541, 0, 8, 65541, 1, 9, 65541, 2, 8, 65541, 3, 7, 65541, 4, 7, 65541, 5, 9, 65541, 6, 8, 65541, 7, 7, 65541, 8, 9, 65541, 9, 7, 65542, 0, 7, 65542, 1, 7, 65542, 2, 7, 65542, 3, 9, 65542, 4, 8, 65542, 5, 8, 65542, 6, 7, 65542, 7, 8, 65542, 8, 7, 65542, 9, 7, 65543, 0, 8, 65543, 1, 9, 65543, 2, 7, 65543, 3, 9, 65543, 4, 7, 65543, 5, 7, 65543, 6, 7, 65543, 7, 8, 65543, 8, 7, 65543, 9, 8, 65544, 0, 8, 65544, 1, 7, 65544, 2, 9, 65544, 3, 8, 65544, 4, 7, 65544, 5, 9, 65544, 6, 9, 65544, 7, 9, 65544, 8, 7, 65544, 9, 9, 65545, 0, 8, 65545, 1, 8, 65545, 2, 8, 65545, 3, 8, 65545, 4, 9, 65545, 5, 7, 65545, 6, 8, 65545, 7, 8, 65545, 8, 7, 65545, 9, 7)
"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
@@ -40,6 +43,7 @@ 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
@@ -74,13 +78,36 @@ 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="."]
@@ -95,6 +122,8 @@ 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