Breakpoint

This commit is contained in:
CortexCore
2023-07-04 04:08:18 +08:00
parent 4af38a021c
commit d12e53739d
24 changed files with 1411 additions and 342 deletions

View File

@@ -15,7 +15,14 @@ custom_minimum_size = Vector2(384, 512)
[node name="BaseComponent" type="VBoxContainer" parent="."]
layout_mode = 2
[node name="Name" type="Button" parent="BaseComponent"]
custom_minimum_size = Vector2(0, 48)
layout_mode = 2
theme_override_styles/normal = SubResource("StyleBoxFlat_tg46m")
text = "准备环境"
[node name="Label" type="Label" parent="BaseComponent"]
visible = false
custom_minimum_size = Vector2(0, 48)
layout_mode = 2
theme_type_variation = &"HeaderMedium"
@@ -35,6 +42,7 @@ theme_type_variation = &"HeaderMedium"
text = "准备一些工具"
[node name="ColorRect" type="ColorRect" parent="BaseComponent"]
visible = false
custom_minimum_size = Vector2(0, 256)
layout_mode = 2
color = Color(0.0196078, 0.0196078, 0.0196078, 1)
@@ -52,6 +60,17 @@ grow_vertical = 2
texture = ExtResource("1_hpoox")
metadata/_edit_lock_ = true
[node name="Label" type="Label" parent="BaseComponent/ColorRect"]
layout_mode = 0
offset_left = -2.0
offset_top = 169.0
offset_right = 383.0
offset_bottom = 217.0
text = "这是图标占位符"
horizontal_alignment = 1
vertical_alignment = 1
metadata/_edit_lock_ = true
[node name="TextureRect" type="TextureRect" parent="BaseComponent/ColorRect"]
layout_mode = 1
anchors_preset = 15

View File

@@ -0,0 +1,209 @@
[gd_scene load_steps=6 format=3 uid="uid://n3v64dkgpccy"]
[sub_resource type="Animation" id="Animation_d44nr"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("ProgressBar:value")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.0]
}
[sub_resource type="Animation" id="Animation_ct3is"]
resource_name = "Start"
length = 10.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("ProgressBar:value")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 8),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [0.0, 100.0]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("HBoxContainer/2:visible")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 2),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [false, true]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("HBoxContainer/3:visible")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 4),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [false, true]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("HBoxContainer/4:visible")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0, 6),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [false, true]
}
tracks/4/type = "value"
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/path = NodePath("HBoxContainer/5:visible")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"times": PackedFloat32Array(0, 8),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [false, true]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_xn1ws"]
_data = {
"RESET": SubResource("Animation_d44nr"),
"Start": SubResource("Animation_ct3is")
}
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_gdc24"]
bg_color = Color(0.317647, 0.639216, 0.827451, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_wrsde"]
bg_color = Color(0.282353, 0.698039, 0.4, 1)
[node name="手动注册与更新标识" type="ReferenceRect"]
custom_minimum_size = Vector2(1024, 384)
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_right = -896.0
offset_bottom = -696.0
grow_horizontal = 2
grow_vertical = 2
metadata/_edit_lock_ = true
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_xn1ws")
}
[node name="ProgressBar" type="ProgressBar" parent="."]
layout_mode = 0
offset_top = 192.0
offset_right = 1024.0
offset_bottom = 224.0
[node name="HBoxContainer" type="HBoxContainer" parent="."]
layout_mode = 0
offset_top = 224.0
offset_right = 1024.0
offset_bottom = 384.0
[node name="1" type="PanelContainer" parent="HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer/1"]
layout_mode = 2
alignment = 1
[node name="Label" type="Label" parent="HBoxContainer/1/VBoxContainer"]
layout_mode = 2
text = "正在准备注册标识"
horizontal_alignment = 1
[node name="2" type="PanelContainer" parent="HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer/2"]
layout_mode = 2
[node name="Label" type="Label" parent="HBoxContainer/2/VBoxContainer"]
layout_mode = 2
theme_type_variation = &"HeaderSmall"
theme_override_styles/normal = SubResource("StyleBoxFlat_gdc24")
text = "标识码"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Label2" type="Label" parent="HBoxContainer/2/VBoxContainer"]
layout_mode = 2
text = "88.123.99/02020220225008"
[node name="Label3" type="Label" parent="HBoxContainer/2/VBoxContainer"]
layout_mode = 2
theme_type_variation = &"HeaderSmall"
theme_override_styles/normal = SubResource("StyleBoxFlat_gdc24")
text = "标识值"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Label4" type="Label" parent="HBoxContainer/2/VBoxContainer"]
layout_mode = 2
text = "t.h.sensor"
[node name="3" type="PanelContainer" parent="HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer/3"]
layout_mode = 2
alignment = 1
[node name="Label" type="Label" parent="HBoxContainer/3/VBoxContainer"]
layout_mode = 2
text = "已提交标识"
horizontal_alignment = 1
[node name="4" type="PanelContainer" parent="HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer/4"]
layout_mode = 2
alignment = 1
[node name="Label" type="Label" parent="HBoxContainer/4/VBoxContainer"]
layout_mode = 2
text = "正在等待返回标识解析结果"
horizontal_alignment = 1
[node name="5" type="PanelContainer" parent="HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer/5"]
layout_mode = 2
alignment = 1
[node name="Label" type="Label" parent="HBoxContainer/5/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
theme_type_variation = &"HeaderLarge"
theme_override_styles/normal = SubResource("StyleBoxFlat_wrsde")
text = "已注册标识"
horizontal_alignment = 1
vertical_alignment = 1
[connection signal="hidden" from="." to="AnimationPlayer" method="stop" binds= [false]]

View File

@@ -0,0 +1,198 @@
[gd_scene load_steps=5 format=3 uid="uid://dv3ugwbqu3t77"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_cpr2j"]
bg_color = Color(0.317647, 0.639216, 0.827451, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_gtj8f"]
bg_color = Color(0.282353, 0.698039, 0.4, 1)
[sub_resource type="Animation" id="Animation_tewal"]
resource_name = "Start"
length = 6.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("VBoxContainer/ProgressBar:value")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 6),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [0.0, 100.0]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("VBoxContainer/HBoxContainer/提交温度标识:visible")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 2),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [false, true]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("VBoxContainer/HBoxContainer/提交湿度标识:visible")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 4),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [false, true]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("VBoxContainer/HBoxContainer/已完成提交:visible")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0, 6),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [false, true]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_ul3u4"]
_data = {
"Start": SubResource("Animation_tewal")
}
[node name="更新温湿度传感器的标识" type="Control"]
custom_minimum_size = Vector2(512, 384)
layout_mode = 3
anchors_preset = 0
offset_right = 1024.0
offset_bottom = 384.0
[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 2
offset_right = 1024.0
offset_bottom = 384.0
[node name="ProgressBar" type="ProgressBar" parent="VBoxContainer"]
layout_mode = 2
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
[node name="收集数据" type="Label" parent="VBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_type_variation = &"HeaderLarge"
text = "正在收集数据与标识"
horizontal_alignment = 1
vertical_alignment = 1
[node name="提交温度标识" type="VBoxContainer" parent="VBoxContainer/HBoxContainer"]
visible = false
layout_mode = 2
size_flags_horizontal = 3
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer/提交温度标识"]
layout_mode = 2
text = "正在提交温度标识"
[node name="Label2" type="Label" parent="VBoxContainer/HBoxContainer/提交温度标识"]
layout_mode = 2
theme_type_variation = &"HeaderSmall"
theme_override_styles/normal = SubResource("StyleBoxFlat_cpr2j")
text = "标识码"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Label3" type="Label" parent="VBoxContainer/HBoxContainer/提交温度标识"]
layout_mode = 2
text = "88.123.99/02020220225008"
[node name="Label4" type="Label" parent="VBoxContainer/HBoxContainer/提交温度标识"]
layout_mode = 2
theme_type_variation = &"HeaderSmall"
theme_override_styles/normal = SubResource("StyleBoxFlat_cpr2j")
text = "标识Id"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Label5" type="Label" parent="VBoxContainer/HBoxContainer/提交温度标识"]
layout_mode = 2
text = "t.h.sensor.temperature"
[node name="Label6" type="Label" parent="VBoxContainer/HBoxContainer/提交温度标识"]
layout_mode = 2
theme_type_variation = &"HeaderSmall"
theme_override_styles/normal = SubResource("StyleBoxFlat_cpr2j")
text = "标识值"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Label7" type="Label" parent="VBoxContainer/HBoxContainer/提交温度标识"]
layout_mode = 2
text = "42℃"
[node name="提交湿度标识" type="VBoxContainer" parent="VBoxContainer/HBoxContainer"]
visible = false
layout_mode = 2
size_flags_horizontal = 3
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer/提交湿度标识"]
layout_mode = 2
text = "正在提交湿度标识"
[node name="Label2" type="Label" parent="VBoxContainer/HBoxContainer/提交湿度标识"]
layout_mode = 2
theme_type_variation = &"HeaderSmall"
theme_override_styles/normal = SubResource("StyleBoxFlat_cpr2j")
text = "标识码"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Label3" type="Label" parent="VBoxContainer/HBoxContainer/提交湿度标识"]
layout_mode = 2
text = "88.123.99/02020220225008"
[node name="Label4" type="Label" parent="VBoxContainer/HBoxContainer/提交湿度标识"]
layout_mode = 2
theme_type_variation = &"HeaderSmall"
theme_override_styles/normal = SubResource("StyleBoxFlat_cpr2j")
text = "标识Id"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Label5" type="Label" parent="VBoxContainer/HBoxContainer/提交湿度标识"]
layout_mode = 2
text = "t.h.sensor.humidity"
[node name="Label6" type="Label" parent="VBoxContainer/HBoxContainer/提交湿度标识"]
layout_mode = 2
theme_type_variation = &"HeaderSmall"
theme_override_styles/normal = SubResource("StyleBoxFlat_cpr2j")
text = "标识值"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Label7" type="Label" parent="VBoxContainer/HBoxContainer/提交湿度标识"]
layout_mode = 2
text = "50%"
[node name="已完成提交" type="Label" parent="VBoxContainer/HBoxContainer"]
visible = false
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_type_variation = &"HeaderLarge"
theme_override_styles/normal = SubResource("StyleBoxFlat_gtj8f")
text = "标识已解析"
horizontal_alignment = 1
vertical_alignment = 1
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_ul3u4")
}

View File

@@ -0,0 +1,94 @@
[gd_scene load_steps=4 format=3 uid="uid://fybiswo7gltf"]
[ext_resource type="Texture2D" uid="uid://du6xc0u767362" path="res://Artists/Art/Shapes/shape_hexagon.png" id="1_2308n"]
[sub_resource type="Animation" id="Animation_ohv0y"]
resource_name = "Spawn"
length = 2.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Name:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(1, 1.5),
"transitions": PackedFloat32Array(2, 2),
"update": 0,
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Icon:custom_minimum_size")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0.5, 1),
"transitions": PackedFloat32Array(2, 2),
"update": 0,
"values": [Vector2(64, 0), Vector2(64, 64)]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = false
tracks/2/path = NodePath("Icon/IconText:self_modulate")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("Icon/IconText:theme_override_colors/font_color")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0, 0.5, 1),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(0.12549, 0.12549, 0.12549, 1)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_8iohj"]
_data = {
"Spawn": SubResource("Animation_ohv0y")
}
[node name="解析节点" type="HFlowContainer"]
offset_right = 40.0
offset_bottom = 40.0
alignment = 1
[node name="Icon" type="TextureRect" parent="."]
custom_minimum_size = Vector2(64, 0)
layout_mode = 2
texture = ExtResource("1_2308n")
expand_mode = 1
[node name="IconText" type="Label" parent="Icon"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_colors/font_color = Color(1, 1, 1, 0)
theme_override_font_sizes/font_size = 32
text = "R"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Name" type="Label" parent="."]
modulate = Color(1, 1, 1, 0)
layout_mode = 2
text = "国家顶级节点"
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_8iohj")
}