温湿度传感器更新
现在可以手动更新温湿度了
This commit is contained in:
@@ -4,9 +4,11 @@
|
||||
[ext_resource type="Texture2D" uid="uid://dyxw5ocfiamgi" path="res://Mods/工业数据采集与分析应用分享/Arts/Images/标准ModbusRTU图片.jpg" id="1_yd6oj"]
|
||||
[ext_resource type="PackedScene" uid="uid://dghty7km181mc" path="res://Mods/工业数据采集与分析应用分享/Templates/关联标识.tscn" id="2_so2ho"]
|
||||
|
||||
[node name="TrackContainer" type="PanelContainer"]
|
||||
[node name="TrackContainer" type="PanelContainer" node_paths=PackedStringArray("labels", "lineEdits")]
|
||||
custom_minimum_size = Vector2(1280, 512)
|
||||
script = ExtResource("1_4faap")
|
||||
labels = []
|
||||
lineEdits = []
|
||||
|
||||
[node name="VFlex" type="VBoxContainer" parent="."]
|
||||
layout_mode = 2
|
||||
@@ -89,36 +91,44 @@ layout_mode = 2
|
||||
theme_type_variation = &"WhitePanel"
|
||||
text = "订单信息"
|
||||
|
||||
[node name="关联标识" parent="VFlex/MarginContainer/HBoxContainer/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer" instance=ExtResource("2_so2ho")]
|
||||
[node name="关联标识" parent="VFlex/MarginContainer/HBoxContainer/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer" node_paths=PackedStringArray("labels") instance=ExtResource("2_so2ho")]
|
||||
layout_mode = 2
|
||||
labels = []
|
||||
|
||||
[node name="Label2" type="Label" parent="VFlex/MarginContainer/HBoxContainer/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"WhitePanel"
|
||||
text = "生产设备"
|
||||
|
||||
[node name="关联标识2" parent="VFlex/MarginContainer/HBoxContainer/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer" instance=ExtResource("2_so2ho")]
|
||||
[node name="关联标识2" parent="VFlex/MarginContainer/HBoxContainer/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer" node_paths=PackedStringArray("labels") instance=ExtResource("2_so2ho")]
|
||||
layout_mode = 2
|
||||
labels = []
|
||||
|
||||
[node name="关联标识3" parent="VFlex/MarginContainer/HBoxContainer/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer" instance=ExtResource("2_so2ho")]
|
||||
[node name="关联标识3" parent="VFlex/MarginContainer/HBoxContainer/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer" node_paths=PackedStringArray("labels") instance=ExtResource("2_so2ho")]
|
||||
layout_mode = 2
|
||||
labels = []
|
||||
|
||||
[node name="Label3" type="Label" parent="VFlex/MarginContainer/HBoxContainer/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"WhitePanel"
|
||||
text = "生产环境"
|
||||
|
||||
[node name="关联标识4" parent="VFlex/MarginContainer/HBoxContainer/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer" instance=ExtResource("2_so2ho")]
|
||||
[node name="关联标识4" parent="VFlex/MarginContainer/HBoxContainer/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer" node_paths=PackedStringArray("labels") instance=ExtResource("2_so2ho")]
|
||||
layout_mode = 2
|
||||
labels = []
|
||||
|
||||
[node name="关联标识5" parent="VFlex/MarginContainer/HBoxContainer/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer" instance=ExtResource("2_so2ho")]
|
||||
[node name="关联标识5" parent="VFlex/MarginContainer/HBoxContainer/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer" node_paths=PackedStringArray("labels") instance=ExtResource("2_so2ho")]
|
||||
layout_mode = 2
|
||||
labels = []
|
||||
|
||||
[node name="关联标识6" parent="VFlex/MarginContainer/HBoxContainer/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer" instance=ExtResource("2_so2ho")]
|
||||
[node name="关联标识6" parent="VFlex/MarginContainer/HBoxContainer/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer" node_paths=PackedStringArray("labels") instance=ExtResource("2_so2ho")]
|
||||
layout_mode = 2
|
||||
labels = []
|
||||
|
||||
[node name="关联标识7" parent="VFlex/MarginContainer/HBoxContainer/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer" instance=ExtResource("2_so2ho")]
|
||||
[node name="关联标识7" parent="VFlex/MarginContainer/HBoxContainer/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer" node_paths=PackedStringArray("labels") instance=ExtResource("2_so2ho")]
|
||||
layout_mode = 2
|
||||
labels = []
|
||||
|
||||
[node name="关联标识8" parent="VFlex/MarginContainer/HBoxContainer/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer" instance=ExtResource("2_so2ho")]
|
||||
[node name="关联标识8" parent="VFlex/MarginContainer/HBoxContainer/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer" node_paths=PackedStringArray("labels") instance=ExtResource("2_so2ho")]
|
||||
layout_mode = 2
|
||||
labels = []
|
||||
|
34
Mods/工业数据采集与分析应用分享/Templates/传感器数据模板.tscn
Normal file
34
Mods/工业数据采集与分析应用分享/Templates/传感器数据模板.tscn
Normal file
@@ -0,0 +1,34 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://d1rpv4oovnljv"]
|
||||
|
||||
[ext_resource type="Script" path="res://BITKit/Scripts/UX/UXContainer.cs" id="1_6fjlu"]
|
||||
|
||||
[node name="传感器数据模板" type="PanelContainer" node_paths=PackedStringArray("label", "titleLabel", "labels", "lineEdits")]
|
||||
script = ExtResource("1_6fjlu")
|
||||
label = NodePath("")
|
||||
titleLabel = NodePath("")
|
||||
labels = []
|
||||
lineEdits = []
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 0
|
||||
|
||||
[node name="Label" type="Label" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"Header"
|
||||
text = "温度"
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"Margin_16px"
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/MarginContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="VBoxContainer/MarginContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "50"
|
||||
|
||||
[node name="Label2" type="Label" parent="VBoxContainer/MarginContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "摄氏度"
|
@@ -2,89 +2,66 @@
|
||||
|
||||
[ext_resource type="Script" path="res://BITKit/Scripts/UX/UXContainer.cs" id="1_312jo"]
|
||||
|
||||
[node name="关联标识" type="HBoxContainer" node_paths=PackedStringArray("label", "titleLabel", "button", "updateTimeLabel", "createTimeLabel")]
|
||||
[node name="关联标识" type="HBoxContainer" node_paths=PackedStringArray("label", "titleLabel", "updateTimeLabel", "createTimeLabel", "labels", "lineEdits")]
|
||||
offset_right = 651.0
|
||||
offset_bottom = 64.0
|
||||
theme_override_constants/separation = 8
|
||||
script = ExtResource("1_312jo")
|
||||
label = NodePath("VBoxContainer/Label2")
|
||||
titleLabel = NodePath("VBoxContainer/Label")
|
||||
button = NodePath("Button")
|
||||
updateTimeLabel = NodePath("VBoxContainer2/HBoxContainer/Label2")
|
||||
createTimeLabel = NodePath("VBoxContainer2/HBoxContainer2/Label2")
|
||||
label = NodePath("GridContainer/Labels[1]")
|
||||
titleLabel = NodePath("GridContainer/Labels[0]")
|
||||
updateTimeLabel = NodePath("GridContainer/HBoxContainer/label[2]")
|
||||
createTimeLabel = NodePath("GridContainer/HBoxContainer2/labels[3]")
|
||||
labels = [NodePath("GridContainer/Labels[0]"), NodePath("GridContainer/Labels[1]"), NodePath("GridContainer/HBoxContainer/label[2]"), NodePath("GridContainer/HBoxContainer2/labels[3]")]
|
||||
lineEdits = []
|
||||
|
||||
[node name="Control" type="Control" parent="."]
|
||||
custom_minimum_size = Vector2(64, 0)
|
||||
[node name="Control3" type="Control" parent="."]
|
||||
custom_minimum_size = Vector2(16, 0)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="Control"]
|
||||
custom_minimum_size = Vector2(24, 24)
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -12.0
|
||||
offset_top = -12.0
|
||||
offset_right = 12.0
|
||||
offset_bottom = 12.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
custom_minimum_size = Vector2(4, 48)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 4
|
||||
color = Color(0.0588235, 1, 1, 1)
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
[node name="GridContainer" type="GridContainer" parent="."]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
columns = 2
|
||||
|
||||
[node name="Label" type="Label" parent="VBoxContainer"]
|
||||
[node name="Labels[0]" type="Label" parent="GridContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_type_variation = &"HeaderSmall"
|
||||
text = "订单信息"
|
||||
|
||||
[node name="Label2" type="Label" parent="VBoxContainer"]
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="GridContainer"]
|
||||
layout_mode = 2
|
||||
text = "20230701232464"
|
||||
|
||||
[node name="VSeparator" type="VSeparator" parent="."]
|
||||
visible = false
|
||||
[node name="Label" type="Label" parent="GridContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "最后更新时间:"
|
||||
|
||||
[node name="label[2]" type="Label" parent="GridContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "2023年7月4日23:35:48"
|
||||
|
||||
[node name="Labels[1]" type="Label" parent="GridContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "20230701232464"
|
||||
|
||||
[node name="HBoxContainer2" type="HBoxContainer" parent="GridContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="GridContainer/HBoxContainer2"]
|
||||
layout_mode = 2
|
||||
text = "创建标识时间:"
|
||||
|
||||
[node name="labels[3]" type="Label" parent="GridContainer/HBoxContainer2"]
|
||||
layout_mode = 2
|
||||
text = "2023年7月4日23:35:48"
|
||||
|
||||
[node name="Control2" type="Control" parent="."]
|
||||
custom_minimum_size = Vector2(16, 0)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="VBoxContainer2" type="VBoxContainer" parent="."]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="VBoxContainer2/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "最后更新时间:"
|
||||
|
||||
[node name="Label2" type="Label" parent="VBoxContainer2/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "2023年7月4日23:35:48"
|
||||
|
||||
[node name="HBoxContainer2" type="HBoxContainer" parent="VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="VBoxContainer2/HBoxContainer2"]
|
||||
layout_mode = 2
|
||||
text = "创建标识时间:"
|
||||
|
||||
[node name="Label2" type="Label" parent="VBoxContainer2/HBoxContainer2"]
|
||||
layout_mode = 2
|
||||
text = "2023年7月4日23:35:48"
|
||||
|
||||
[node name="VSeparator2" type="VSeparator" parent="."]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="Button" type="Button" parent="."]
|
||||
layout_mode = 2
|
||||
text = "查询关联"
|
||||
|
19
Mods/工业数据采集与分析应用分享/Templates/标识引用模板.tscn
Normal file
19
Mods/工业数据采集与分析应用分享/Templates/标识引用模板.tscn
Normal file
@@ -0,0 +1,19 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://42locm7i2wvy"]
|
||||
|
||||
[ext_resource type="Script" path="res://BITKit/Scripts/UX/UXContainer.cs" id="1_v6r4n"]
|
||||
|
||||
[node name="标识引用模板" type="HBoxContainer" node_paths=PackedStringArray("label", "button", "labels", "lineEdits")]
|
||||
script = ExtResource("1_v6r4n")
|
||||
label = NodePath("Label")
|
||||
button = NodePath("Button")
|
||||
labels = []
|
||||
lineEdits = []
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
layout_mode = 2
|
||||
text = "88.123.99/xxxxxxxxxxxxxxxx"
|
||||
|
||||
[node name="Button" type="Button" parent="."]
|
||||
custom_minimum_size = Vector2(128, 0)
|
||||
layout_mode = 2
|
||||
text = "查询"
|
29
Mods/工业数据采集与分析应用分享/Templates/标识数据模板.tscn
Normal file
29
Mods/工业数据采集与分析应用分享/Templates/标识数据模板.tscn
Normal file
@@ -0,0 +1,29 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://cccx8fmmfttth"]
|
||||
|
||||
[ext_resource type="Script" path="res://BITKit/Scripts/UX/UXContainer.cs" id="1_fp0bm"]
|
||||
|
||||
[node name="标识数据模板" type="PanelContainer" node_paths=PackedStringArray("label", "contextContainer", "labels", "lineEdits")]
|
||||
custom_minimum_size = Vector2(512, 100)
|
||||
size_flags_horizontal = 3
|
||||
script = ExtResource("1_fp0bm")
|
||||
label = NodePath("Layout/Label")
|
||||
contextContainer = NodePath("Layout/MarginContainer/UXContainer-Container")
|
||||
labels = []
|
||||
lineEdits = []
|
||||
|
||||
[node name="Layout" type="VBoxContainer" parent="."]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="Layout"]
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"Header"
|
||||
text = "标识数据"
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="Layout"]
|
||||
layout_mode = 2
|
||||
theme_type_variation = &"Margin_16px"
|
||||
theme_override_constants/margin_left = 0
|
||||
|
||||
[node name="UXContainer-Container" type="VBoxContainer" parent="Layout/MarginContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 8
|
@@ -11,7 +11,7 @@ grow_vertical = 2
|
||||
script = ExtResource("1_dre1u")
|
||||
button = NodePath("HBoxContainer/delete-button")
|
||||
labels = []
|
||||
lineEdits = [NodePath("HBoxContainer/name-edit"), NodePath("HBoxContainer/hint-edit")]
|
||||
lineEdits = [NodePath("HBoxContainer/name-edit"), NodePath("HBoxContainer/hint-edit"), NodePath("HBoxContainer/category-edit")]
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
||||
layout_mode = 2
|
||||
@@ -25,6 +25,7 @@ text = "数据名称:"
|
||||
custom_minimum_size = Vector2(128, 0)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
placeholder_text = "数据格式"
|
||||
|
||||
[node name="hint-label" type="Label" parent="HBoxContainer"]
|
||||
visible = false
|
||||
@@ -35,6 +36,13 @@ text = "提示:"
|
||||
custom_minimum_size = Vector2(128, 0)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
placeholder_text = "提示或默认值"
|
||||
|
||||
[node name="category-edit" type="LineEdit" parent="HBoxContainer"]
|
||||
custom_minimum_size = Vector2(128, 0)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
placeholder_text = "分类,默认为空"
|
||||
|
||||
[node name="delete-button" type="Button" parent="HBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
Reference in New Issue
Block a user