|
|
|
@@ -1,4 +1,4 @@
|
|
|
|
|
[gd_scene load_steps=31 format=3 uid="uid://cngf2h2a5ne4a"]
|
|
|
|
|
[gd_scene load_steps=32 format=3 uid="uid://cngf2h2a5ne4a"]
|
|
|
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://BITKit/Scripts/UX/UXPanel.cs" id="1_c78kh"]
|
|
|
|
|
[ext_resource type="PackedScene" uid="uid://d1po2qljd0jh2" path="res://Mods/教育平台/教程header.tscn" id="2_mn1rn"]
|
|
|
|
@@ -26,6 +26,7 @@
|
|
|
|
|
[ext_resource type="PackedScene" uid="uid://d1rpv4oovnljv" path="res://Mods/工业数据采集与分析应用分享/Templates/传感器数据模板.tscn" id="19_qxvds"]
|
|
|
|
|
[ext_resource type="PackedScene" uid="uid://cccx8fmmfttth" path="res://Mods/工业数据采集与分析应用分享/Templates/标识数据模板.tscn" id="20_kicyn"]
|
|
|
|
|
[ext_resource type="Script" path="res://Mods/工业数据采集与分析应用分享/Scripts/IDIS_UpdateService.cs" id="26_a6qku"]
|
|
|
|
|
[ext_resource type="Script" path="res://Mods/工业数据采集与分析应用分享/Scripts/温湿度Reader.cs" id="27_q8j7q"]
|
|
|
|
|
|
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_nfm72"]
|
|
|
|
|
bg_color = Color(0.172549, 0.168627, 0.188235, 1)
|
|
|
|
@@ -678,77 +679,122 @@ columns = 2
|
|
|
|
|
[node name="温湿度传感器" type="MarginContainer" parent="Layout/UX Window Service/Horizontal Layout/内容"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
theme_override_constants/margin_left = 64
|
|
|
|
|
theme_override_constants/margin_top = 64
|
|
|
|
|
theme_override_constants/margin_top = 100
|
|
|
|
|
theme_override_constants/margin_right = 64
|
|
|
|
|
theme_override_constants/margin_bottom = 64
|
|
|
|
|
|
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
size_flags_horizontal = 0
|
|
|
|
|
theme_override_constants/separation = 32
|
|
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer"]
|
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/VBoxContainer"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
theme_type_variation = &"HeaderLarge"
|
|
|
|
|
theme_override_colors/font_color = Color(0.509804, 0.509804, 0.509804, 1)
|
|
|
|
|
text = "已获取的传感器数据"
|
|
|
|
|
|
|
|
|
|
[node name="GridContainer" type="GridContainer" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer"]
|
|
|
|
|
[node name="GridContainer2" type="GridContainer" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/VBoxContainer"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
columns = 2
|
|
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/VBoxContainer/GridContainer2"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "IP:"
|
|
|
|
|
|
|
|
|
|
[node name="LineEdit" type="LineEdit" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/VBoxContainer/GridContainer2"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
|
placeholder_text = "传感器的IP"
|
|
|
|
|
|
|
|
|
|
[node name="Label2" type="Label" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/VBoxContainer/GridContainer2"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "Port:"
|
|
|
|
|
|
|
|
|
|
[node name="LineEdit2" type="LineEdit" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/VBoxContainer/GridContainer2"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
|
placeholder_text = "传感器的端口"
|
|
|
|
|
|
|
|
|
|
[node name="GridContainer" type="GridContainer" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/VBoxContainer"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
theme_override_constants/h_separation = 32
|
|
|
|
|
theme_override_constants/v_separation = 32
|
|
|
|
|
columns = 3
|
|
|
|
|
|
|
|
|
|
[node name="传感器数据模板" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/GridContainer" instance=ExtResource("19_qxvds")]
|
|
|
|
|
[node name="传感器数据模板" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/VBoxContainer/GridContainer" instance=ExtResource("19_qxvds")]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
|
|
[node name="传感器数据模板2" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/GridContainer" instance=ExtResource("19_qxvds")]
|
|
|
|
|
[node name="传感器数据模板2" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/VBoxContainer/GridContainer" instance=ExtResource("19_qxvds")]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
|
|
[node name="更新温湿度-button" type="Button" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer"]
|
|
|
|
|
[node name="Label" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/VBoxContainer/GridContainer/传感器数据模板2/VBoxContainer" index="0"]
|
|
|
|
|
text = "湿度"
|
|
|
|
|
|
|
|
|
|
[node name="Label2" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/VBoxContainer/GridContainer/传感器数据模板2/VBoxContainer/MarginContainer/HBoxContainer" index="1"]
|
|
|
|
|
text = "%"
|
|
|
|
|
|
|
|
|
|
[node name="RichTextLabel" type="RichTextLabel" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/VBoxContainer"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "正在等待连接到温湿度传感器..."
|
|
|
|
|
fit_content = true
|
|
|
|
|
|
|
|
|
|
[node name="更新温湿度-button" type="Button" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/VBoxContainer"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "更新温湿度"
|
|
|
|
|
|
|
|
|
|
[node name="Label2" type="Label" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer"]
|
|
|
|
|
[node name="VBoxContainer2" type="VBoxContainer" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
|
|
[node name="Label2" type="Label" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/VBoxContainer2"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
theme_type_variation = &"HeaderLarge"
|
|
|
|
|
theme_override_colors/font_color = Color(0.509804, 0.509804, 0.509804, 1)
|
|
|
|
|
text = "手动提交数据"
|
|
|
|
|
|
|
|
|
|
[node name="GridContainer2" type="GridContainer" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer"]
|
|
|
|
|
[node name="GridContainer2" type="GridContainer" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/VBoxContainer2"]
|
|
|
|
|
custom_minimum_size = Vector2(512, 0)
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
columns = 2
|
|
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/GridContainer2"]
|
|
|
|
|
[node name="Label" type="Label" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/VBoxContainer2/GridContainer2"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "标识码:"
|
|
|
|
|
|
|
|
|
|
[node name="LineEdit" type="LineEdit" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/GridContainer2"]
|
|
|
|
|
[node name="LineEdit" type="LineEdit" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/VBoxContainer2/GridContainer2"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
|
placeholder_text = "88.123.99/xxxxxxxxxxxxxxxx"
|
|
|
|
|
|
|
|
|
|
[node name="Label2" type="Label" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/GridContainer2"]
|
|
|
|
|
[node name="Label2" type="Label" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/VBoxContainer2/GridContainer2"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "温度:"
|
|
|
|
|
|
|
|
|
|
[node name="LineEdit2" type="LineEdit" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/GridContainer2"]
|
|
|
|
|
[node name="LineEdit2" type="LineEdit" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/VBoxContainer2/GridContainer2"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
|
placeholder_text = "42"
|
|
|
|
|
|
|
|
|
|
[node name="Label3" type="Label" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/GridContainer2"]
|
|
|
|
|
[node name="Label3" type="Label" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/VBoxContainer2/GridContainer2"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "湿度:"
|
|
|
|
|
|
|
|
|
|
[node name="LineEdit3" type="LineEdit" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/GridContainer2"]
|
|
|
|
|
[node name="LineEdit3" type="LineEdit" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/VBoxContainer2/GridContainer2"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
|
placeholder_text = "50"
|
|
|
|
|
|
|
|
|
|
[node name="更新温湿度-button2" type="Button" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer"]
|
|
|
|
|
[node name="更新温湿度-button2" type="Button" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/VBoxContainer2"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "更新温湿度标识"
|
|
|
|
|
|
|
|
|
|
[node name="Label3" type="Label" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer"]
|
|
|
|
|
[node name="Label3" type="RichTextLabel" parent="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/VBoxContainer2"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "等待更新中"
|
|
|
|
|
fit_content = true
|
|
|
|
|
|
|
|
|
|
[node name="Control" type="Control" parent="Layout/UX Window Service/Horizontal Layout"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
@@ -801,11 +847,21 @@ categoryTemplate = ExtResource("20_kicyn")
|
|
|
|
|
[node name="温湿度标识更新服务" type="Node" parent="." node_paths=PackedStringArray("service", "submitButton", "handleEdit", "temperatureEdit", "humidityEdit", "hintsLabel")]
|
|
|
|
|
script = ExtResource("26_a6qku")
|
|
|
|
|
service = NodePath("../标识解析服务")
|
|
|
|
|
submitButton = NodePath("../Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/更新温湿度-button2")
|
|
|
|
|
handleEdit = NodePath("../Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/GridContainer2/LineEdit")
|
|
|
|
|
temperatureEdit = NodePath("../Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/GridContainer2/LineEdit2")
|
|
|
|
|
humidityEdit = NodePath("../Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/GridContainer2/LineEdit3")
|
|
|
|
|
hintsLabel = NodePath("../Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/Label3")
|
|
|
|
|
submitButton = NodePath("../Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/VBoxContainer2/更新温湿度-button2")
|
|
|
|
|
handleEdit = NodePath("../Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/VBoxContainer2/GridContainer2/LineEdit")
|
|
|
|
|
temperatureEdit = NodePath("../Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/VBoxContainer2/GridContainer2/LineEdit2")
|
|
|
|
|
humidityEdit = NodePath("../Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/VBoxContainer2/GridContainer2/LineEdit3")
|
|
|
|
|
hintsLabel = NodePath("../Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/VBoxContainer2/Label3")
|
|
|
|
|
|
|
|
|
|
[node name="温湿度传感器Reader" type="Node" parent="." node_paths=PackedStringArray("temperatureContaier", "humidityContainer", "ipEdit", "portEdit", "hintsLabel")]
|
|
|
|
|
script = ExtResource("27_q8j7q")
|
|
|
|
|
temperatureContaier = NodePath("../Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/VBoxContainer/GridContainer/传感器数据模板")
|
|
|
|
|
humidityContainer = NodePath("../Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/VBoxContainer/GridContainer/传感器数据模板2")
|
|
|
|
|
ipEdit = NodePath("../Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/VBoxContainer/GridContainer2/LineEdit")
|
|
|
|
|
portEdit = NodePath("../Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/VBoxContainer/GridContainer2/LineEdit2")
|
|
|
|
|
hintsLabel = NodePath("../Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/VBoxContainer/RichTextLabel")
|
|
|
|
|
|
|
|
|
|
[connection signal="pressed" from="Layout/UX Window Service/Horizontal Layout/导航栏/MarginContainer/Layout/Button5" to="Layout/UX Window Service/Horizontal Layout/导航栏/MarginContainer/Layout/Button5" method="Return"]
|
|
|
|
|
[connection signal="draw" from="Layout/UX Window Service/Horizontal Layout/内容/标注注册" to="标识注册服务" method="Rebuild"]
|
|
|
|
|
|
|
|
|
|
[editable path="Layout/UX Window Service/Horizontal Layout/内容/温湿度传感器/VBoxContainer/VBoxContainer/GridContainer/传感器数据模板2"]
|
|
|
|
|