This commit is contained in:
CortexCore 2023-07-08 14:03:19 +08:00
parent 506d2b2c72
commit 6fc4279878
3 changed files with 107 additions and 81 deletions

View File

@ -23,9 +23,6 @@ public partial class IDIS_RegisterService : Node
templateList.AddItem(x.TemplateName); templateList.AddItem(x.TemplateName);
} }
var lineEdit = new LineEdit();
lineEdit.PlaceholderText = "请输入标识名称";
templateList.ItemClicked += OnItemClicked; templateList.ItemClicked += OnItemClicked;
registerButton.Pressed += Register; registerButton.Pressed += Register;
@ -34,6 +31,9 @@ public partial class IDIS_RegisterService : Node
{ {
handleEdit.Text = $"88.123.99/{Mathf.Abs(Guid.NewGuid().GetHashCode())}"; handleEdit.Text = $"88.123.99/{Mathf.Abs(Guid.NewGuid().GetHashCode())}";
}; };
handleEdit.Editable = false;
registerButton.Disabled = true;
} }
private void OnItemClicked(long index, Vector2 atPosition, long mouseButtonIndex) private void OnItemClicked(long index, Vector2 atPosition, long mouseButtonIndex)
@ -72,6 +72,9 @@ public partial class IDIS_RegisterService : Node
grid.AddChild(label); grid.AddChild(label);
grid.AddChild(lineEdit); grid.AddChild(lineEdit);
} }
handleEdit.Editable = true;
registerButton.Disabled = false;
} }
private void Register() private void Register()

View File

@ -11,7 +11,8 @@
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_clkje"] [sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_clkje"]
[node name="标识注册与解析" type="VBoxContainer"] [node name="标识注册与解析" type="Control"]
layout_mode = 3
anchors_preset = 15 anchors_preset = 15
anchor_right = 1.0 anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
@ -21,102 +22,120 @@ script = ExtResource("1_c78kh")
allowCursor = true allowCursor = true
allowInput = true allowInput = true
[node name="教程Header" parent="." instance=ExtResource("2_mn1rn")] [node name="Background-Image" type="ColorRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.14902, 0.160784, 0.176471, 0.784314)
[node name="Layout" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="教程Header" parent="Layout" instance=ExtResource("2_mn1rn")]
layout_mode = 2 layout_mode = 2
[node name="UX Window Service" type="MarginContainer" parent="." node_paths=PackedStringArray("tabs", "windows")] [node name="UX Window Service" type="MarginContainer" parent="Layout" node_paths=PackedStringArray("tabs", "windows")]
layout_mode = 2 layout_mode = 2
size_flags_vertical = 3 size_flags_vertical = 3
theme_type_variation = &"Margin_16px" theme_type_variation = &"Margin_16px"
script = ExtResource("3_sfip0") script = ExtResource("3_sfip0")
tabs = [NodePath("Horizontal Layout/导航栏/标识模板-button"), NodePath("Horizontal Layout/导航栏/标注注册-button"), NodePath("Horizontal Layout/导航栏/Button2"), NodePath("Horizontal Layout/导航栏/Button4"), NodePath("Horizontal Layout/导航栏/Button5"), NodePath("Horizontal Layout/导航栏/Button6")] tabs = [NodePath("Horizontal Layout/导航栏/标识模板-button"), NodePath("Horizontal Layout/导航栏/Button3"), NodePath("Horizontal Layout/导航栏/Button2"), NodePath("Horizontal Layout/导航栏/Button4"), NodePath("Horizontal Layout/导航栏/Button5"), NodePath("Horizontal Layout/导航栏/Button6")]
windows = [NodePath("Horizontal Layout/内容/标识模板"), NodePath("Horizontal Layout/内容/标注注册"), NodePath("Horizontal Layout/内容/Container2"), NodePath("Horizontal Layout/内容/Container3"), NodePath("Horizontal Layout/内容/Container4"), NodePath("Horizontal Layout/内容/Container5")] windows = [NodePath("Horizontal Layout/内容/标识模板"), NodePath("Horizontal Layout/内容/标注注册"), NodePath("Horizontal Layout/内容/Container2"), NodePath("Horizontal Layout/内容/Container3"), NodePath("Horizontal Layout/内容/Container4"), NodePath("Horizontal Layout/内容/Container5")]
[node name="Horizontal Layout" type="HBoxContainer" parent="UX Window Service"] [node name="Horizontal Layout" type="HBoxContainer" parent="Layout/UX Window Service"]
layout_mode = 2 layout_mode = 2
theme_override_constants/separation = 16 theme_override_constants/separation = 16
[node name="导航栏" type="VBoxContainer" parent="UX Window Service/Horizontal Layout"] [node name="导航栏" type="VBoxContainer" parent="Layout/UX Window Service/Horizontal Layout"]
custom_minimum_size = Vector2(256, 0) custom_minimum_size = Vector2(256, 0)
layout_mode = 2 layout_mode = 2
[node name="Label" type="Label" parent="UX Window Service/Horizontal Layout/导航栏"] [node name="Label" type="Label" parent="Layout/UX Window Service/Horizontal Layout/导航栏"]
layout_mode = 2 layout_mode = 2
theme_type_variation = &"HeaderMedium" theme_type_variation = &"HeaderMedium"
text = "管理" text = "管理"
[node name="标识模板-button" type="Button" parent="UX Window Service/Horizontal Layout/导航栏"] [node name="标识模板-button" type="Button" parent="Layout/UX Window Service/Horizontal Layout/导航栏"]
layout_mode = 2 layout_mode = 2
toggle_mode = true toggle_mode = true
button_group = ExtResource("3_wv1s6") button_group = ExtResource("3_wv1s6")
text = "管理标识模板" text = "管理标识模板"
[node name="Label3" type="Label" parent="UX Window Service/Horizontal Layout/导航栏"] [node name="Label3" type="Label" parent="Layout/UX Window Service/Horizontal Layout/导航栏"]
layout_mode = 2 layout_mode = 2
theme_type_variation = &"HeaderMedium" theme_type_variation = &"HeaderMedium"
text = "准备生产" text = "准备生产"
[node name="标注注册-button" type="Button" parent="UX Window Service/Horizontal Layout/导航栏"] [node name="Button3" type="Button" parent="Layout/UX Window Service/Horizontal Layout/导航栏"]
layout_mode = 2 layout_mode = 2
toggle_mode = true toggle_mode = true
button_group = ExtResource("3_wv1s6") button_group = ExtResource("3_wv1s6")
text = "注册设备" text = "注册设备"
[node name="Label4" type="Label" parent="UX Window Service/Horizontal Layout/导航栏"] [node name="Label4" type="Label" parent="Layout/UX Window Service/Horizontal Layout/导航栏"]
layout_mode = 2 layout_mode = 2
theme_type_variation = &"HeaderMedium" theme_type_variation = &"HeaderMedium"
text = "开始生产" text = "开始生产"
[node name="Button2" type="Button" parent="UX Window Service/Horizontal Layout/导航栏"] [node name="Button2" type="Button" parent="Layout/UX Window Service/Horizontal Layout/导航栏"]
layout_mode = 2 layout_mode = 2
toggle_mode = true toggle_mode = true
button_group = ExtResource("3_wv1s6") button_group = ExtResource("3_wv1s6")
text = "注册订单" text = "注册订单"
[node name="Button4" type="Button" parent="UX Window Service/Horizontal Layout/导航栏"] [node name="Button4" type="Button" parent="Layout/UX Window Service/Horizontal Layout/导航栏"]
layout_mode = 2 layout_mode = 2
toggle_mode = true toggle_mode = true
button_group = ExtResource("3_wv1s6") button_group = ExtResource("3_wv1s6")
text = "内容1" text = "内容1"
[node name="Button5" type="Button" parent="UX Window Service/Horizontal Layout/导航栏"] [node name="Button5" type="Button" parent="Layout/UX Window Service/Horizontal Layout/导航栏"]
layout_mode = 2 layout_mode = 2
toggle_mode = true toggle_mode = true
button_group = ExtResource("3_wv1s6") button_group = ExtResource("3_wv1s6")
text = "内容1" text = "内容1"
[node name="Button6" type="Button" parent="UX Window Service/Horizontal Layout/导航栏"] [node name="Button6" type="Button" parent="Layout/UX Window Service/Horizontal Layout/导航栏"]
layout_mode = 2 layout_mode = 2
toggle_mode = true toggle_mode = true
button_group = ExtResource("3_wv1s6") button_group = ExtResource("3_wv1s6")
text = "内容1" text = "内容1"
[node name="内容" type="PanelContainer" parent="UX Window Service/Horizontal Layout"] [node name="内容" type="PanelContainer" parent="Layout/UX Window Service/Horizontal Layout"]
layout_mode = 2 layout_mode = 2
size_flags_horizontal = 3 size_flags_horizontal = 3
theme_override_styles/panel = SubResource("StyleBoxEmpty_clkje") theme_override_styles/panel = SubResource("StyleBoxEmpty_clkje")
[node name="标识模板" type="MarginContainer" parent="UX Window Service/Horizontal Layout/内容"] [node name="标识模板" type="MarginContainer" parent="Layout/UX Window Service/Horizontal Layout/内容"]
visible = false
layout_mode = 2 layout_mode = 2
theme_type_variation = &"Margin_16px" theme_type_variation = &"Margin_16px"
[node name="VBoxContainer" type="VBoxContainer" parent="UX Window Service/Horizontal Layout/内容/标识模板"] [node name="VBoxContainer" type="VBoxContainer" parent="Layout/UX Window Service/Horizontal Layout/内容/标识模板"]
layout_mode = 2 layout_mode = 2
[node name="HBoxContainer" type="HBoxContainer" parent="UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer"] [node name="HBoxContainer" type="HBoxContainer" parent="Layout/UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer"]
layout_mode = 2 layout_mode = 2
size_flags_vertical = 3 size_flags_vertical = 3
[node name="VBoxContainer" type="VBoxContainer" parent="UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer"] [node name="VBoxContainer" type="VBoxContainer" parent="Layout/UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer"]
layout_mode = 2 layout_mode = 2
size_flags_horizontal = 3 size_flags_horizontal = 3
[node name="Label" type="Label" parent="UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer"] [node name="Label" type="Label" parent="Layout/UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer"]
layout_mode = 2 layout_mode = 2
theme_type_variation = &"HeaderLarge" theme_type_variation = &"HeaderLarge"
text = "标识注册模板" text = "标识注册模板"
[node name="ItemList" type="ItemList" parent="UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer"] [node name="ItemList" type="ItemList" parent="Layout/UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer"]
layout_mode = 2 layout_mode = 2
size_flags_vertical = 3 size_flags_vertical = 3
auto_height = true auto_height = true
@ -125,140 +144,139 @@ item_0/text = "1"
item_1/text = "2" item_1/text = "2"
item_2/text = "3" item_2/text = "3"
[node name="HSeparator" type="HSeparator" parent="UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer"] [node name="HSeparator" type="HSeparator" parent="Layout/UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer"]
layout_mode = 2 layout_mode = 2
[node name="Button" type="Button" parent="UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer"] [node name="Button" type="Button" parent="Layout/UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer"]
layout_mode = 2 layout_mode = 2
text = "创建新的注册模板" text = "创建新的注册模板"
[node name="VSeparator" type="VSeparator" parent="UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer"] [node name="VSeparator" type="VSeparator" parent="Layout/UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer"]
layout_mode = 2 layout_mode = 2
theme_override_constants/separation = 64 theme_override_constants/separation = 64
[node name="VBoxContainer2" type="VBoxContainer" parent="UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer"] [node name="VBoxContainer2" type="VBoxContainer" parent="Layout/UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer"]
layout_mode = 2 layout_mode = 2
size_flags_horizontal = 3 size_flags_horizontal = 3
[node name="VBoxContainer" type="VBoxContainer" parent="UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2"] [node name="VBoxContainer" type="VBoxContainer" parent="Layout/UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2"]
layout_mode = 2 layout_mode = 2
size_flags_vertical = 3 size_flags_vertical = 3
[node name="Label2" type="Label" parent="UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer"] [node name="Label2" type="Label" parent="Layout/UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer"]
layout_mode = 2 layout_mode = 2
theme_type_variation = &"HeaderLarge" theme_type_variation = &"HeaderLarge"
text = "模板信息" text = "模板信息"
[node name="name-edit" type="LineEdit" parent="UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer"] [node name="name-edit" type="LineEdit" parent="Layout/UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer"]
layout_mode = 2 layout_mode = 2
placeholder_text = "标识模板名称" placeholder_text = "标识模板名称"
caret_blink = true caret_blink = true
caret_blink_interval = 0.5 caret_blink_interval = 0.5
[node name="Label3" type="Label" parent="UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer"] [node name="Label3" type="Label" parent="Layout/UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer"]
layout_mode = 2 layout_mode = 2
theme_type_variation = &"HeaderLarge" theme_type_variation = &"HeaderLarge"
text = "模板属性" text = "模板属性"
[node name="description-edit" type="LineEdit" parent="UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer"] [node name="description-edit" type="LineEdit" parent="Layout/UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer"]
layout_mode = 2 layout_mode = 2
placeholder_text = "该模板用于xxx" placeholder_text = "该模板用于xxx"
caret_blink = true caret_blink = true
caret_blink_interval = 0.5 caret_blink_interval = 0.5
[node name="GridContainer" type="GridContainer" parent="UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer"] [node name="GridContainer" type="GridContainer" parent="Layout/UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer"]
layout_mode = 2 layout_mode = 2
columns = 2 columns = 2
[node name="Label5" type="Label" parent="UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer/GridContainer"] [node name="Label5" type="Label" parent="Layout/UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer/GridContainer"]
layout_mode = 2 layout_mode = 2
text = "创建时间:" text = "创建时间:"
[node name="Label6" type="Label" parent="UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer/GridContainer"] [node name="Label6" type="Label" parent="Layout/UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer/GridContainer"]
layout_mode = 2 layout_mode = 2
text = "2023年7月7日23:42:40" text = "2023年7月7日23:42:40"
[node name="Label7" type="Label" parent="UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer/GridContainer"] [node name="Label7" type="Label" parent="Layout/UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer/GridContainer"]
layout_mode = 2 layout_mode = 2
text = "更新时间:" text = "更新时间:"
[node name="Label8" type="Label" parent="UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer/GridContainer"] [node name="Label8" type="Label" parent="Layout/UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer/GridContainer"]
layout_mode = 2 layout_mode = 2
text = "2023年7月7日23:42:40" text = "2023年7月7日23:42:40"
[node name="HSeparator" type="HSeparator" parent="UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer"] [node name="HSeparator" type="HSeparator" parent="Layout/UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer"]
visible = false visible = false
layout_mode = 2 layout_mode = 2
theme_type_variation = &"HSeparator_8px" theme_type_variation = &"HSeparator_8px"
[node name="Label" type="Label" parent="UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer"] [node name="Label" type="Label" parent="Layout/UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer"]
layout_mode = 2 layout_mode = 2
theme_type_variation = &"HeaderLarge" theme_type_variation = &"HeaderLarge"
text = "模板格式" text = "模板格式"
[node name="Label4" type="Label" parent="UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer"] [node name="Label4" type="Label" parent="Layout/UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer"]
layout_mode = 2 layout_mode = 2
text = "数据名称/提示" text = "数据名称/提示"
[node name="Format-Container" type="VBoxContainer" parent="UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer"] [node name="Format-Container" type="VBoxContainer" parent="Layout/UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer"]
layout_mode = 2 layout_mode = 2
[node name="标识模板格式" parent="UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer/Format-Container" instance=ExtResource("3_gmthc")] [node name="标识模板格式" parent="Layout/UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer/Format-Container" instance=ExtResource("3_gmthc")]
layout_mode = 2 layout_mode = 2
[node name="标识模板格式2" parent="UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer/Format-Container" node_paths=PackedStringArray("lineEdits") instance=ExtResource("3_gmthc")] [node name="标识模板格式2" parent="Layout/UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer/Format-Container" node_paths=PackedStringArray("lineEdits") instance=ExtResource("3_gmthc")]
layout_mode = 2 layout_mode = 2
lineEdits = [NodePath("../标识模板格式/HBoxContainer/name-edit"), NodePath("../标识模板格式/HBoxContainer/hint-edit")] lineEdits = [NodePath("../标识模板格式/HBoxContainer/name-edit"), NodePath("../标识模板格式/HBoxContainer/hint-edit")]
[node name="标识模板格式3" parent="UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer/Format-Container" node_paths=PackedStringArray("lineEdits") instance=ExtResource("3_gmthc")] [node name="标识模板格式3" parent="Layout/UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer/Format-Container" node_paths=PackedStringArray("lineEdits") instance=ExtResource("3_gmthc")]
layout_mode = 2 layout_mode = 2
lineEdits = [NodePath("../标识模板格式/HBoxContainer/name-edit"), NodePath("../标识模板格式/HBoxContainer/hint-edit")] lineEdits = [NodePath("../标识模板格式/HBoxContainer/name-edit"), NodePath("../标识模板格式/HBoxContainer/hint-edit")]
[node name="标识模板格式4" parent="UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer/Format-Container" node_paths=PackedStringArray("lineEdits") instance=ExtResource("3_gmthc")] [node name="标识模板格式4" parent="Layout/UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer/Format-Container" node_paths=PackedStringArray("lineEdits") instance=ExtResource("3_gmthc")]
layout_mode = 2 layout_mode = 2
lineEdits = [NodePath("../标识模板格式/HBoxContainer/name-edit"), NodePath("../标识模板格式/HBoxContainer/hint-edit")] lineEdits = [NodePath("../标识模板格式/HBoxContainer/name-edit"), NodePath("../标识模板格式/HBoxContainer/hint-edit")]
[node name="标识模板格式5" parent="UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer/Format-Container" node_paths=PackedStringArray("lineEdits") instance=ExtResource("3_gmthc")] [node name="标识模板格式5" parent="Layout/UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer/Format-Container" node_paths=PackedStringArray("lineEdits") instance=ExtResource("3_gmthc")]
layout_mode = 2 layout_mode = 2
lineEdits = [NodePath("../标识模板格式/HBoxContainer/name-edit"), NodePath("../标识模板格式/HBoxContainer/hint-edit")] lineEdits = [NodePath("../标识模板格式/HBoxContainer/name-edit"), NodePath("../标识模板格式/HBoxContainer/hint-edit")]
[node name="标识模板格式6" parent="UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer/Format-Container" node_paths=PackedStringArray("lineEdits") instance=ExtResource("3_gmthc")] [node name="标识模板格式6" parent="Layout/UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer/Format-Container" node_paths=PackedStringArray("lineEdits") instance=ExtResource("3_gmthc")]
layout_mode = 2 layout_mode = 2
lineEdits = [NodePath("../标识模板格式/HBoxContainer/name-edit"), NodePath("../标识模板格式/HBoxContainer/hint-edit")] lineEdits = [NodePath("../标识模板格式/HBoxContainer/name-edit"), NodePath("../标识模板格式/HBoxContainer/hint-edit")]
[node name="标识模板格式7" parent="UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer/Format-Container" node_paths=PackedStringArray("lineEdits") instance=ExtResource("3_gmthc")] [node name="标识模板格式7" parent="Layout/UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer/Format-Container" node_paths=PackedStringArray("lineEdits") instance=ExtResource("3_gmthc")]
layout_mode = 2 layout_mode = 2
lineEdits = [NodePath("../标识模板格式/HBoxContainer/name-edit"), NodePath("../标识模板格式/HBoxContainer/hint-edit")] lineEdits = [NodePath("../标识模板格式/HBoxContainer/name-edit"), NodePath("../标识模板格式/HBoxContainer/hint-edit")]
[node name="Button" type="Button" parent="UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer"] [node name="Button" type="Button" parent="Layout/UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer"]
layout_mode = 2 layout_mode = 2
text = "添加新的格式" text = "添加新的格式"
[node name="HSeparator" type="HSeparator" parent="UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2"] [node name="HSeparator" type="HSeparator" parent="Layout/UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2"]
layout_mode = 2 layout_mode = 2
[node name="Button" type="Button" parent="UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2"] [node name="Button" type="Button" parent="Layout/UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2"]
layout_mode = 2 layout_mode = 2
text = "保存注册模板" text = "保存注册模板"
[node name="标注注册" type="MarginContainer" parent="UX Window Service/Horizontal Layout/内容"] [node name="标注注册" type="MarginContainer" parent="Layout/UX Window Service/Horizontal Layout/内容"]
visible = false
layout_mode = 2 layout_mode = 2
theme_type_variation = &"Margin_16px" theme_type_variation = &"Margin_16px"
[node name="HBoxContainer" type="HBoxContainer" parent="UX Window Service/Horizontal Layout/内容/标注注册"] [node name="HBoxContainer" type="HBoxContainer" parent="Layout/UX Window Service/Horizontal Layout/内容/标注注册"]
layout_mode = 2 layout_mode = 2
[node name="VBoxContainer" type="VBoxContainer" parent="UX Window Service/Horizontal Layout/内容/标注注册/HBoxContainer"] [node name="VBoxContainer" type="VBoxContainer" parent="Layout/UX Window Service/Horizontal Layout/内容/标注注册/HBoxContainer"]
layout_mode = 2 layout_mode = 2
size_flags_horizontal = 3 size_flags_horizontal = 3
[node name="Label" type="Label" parent="UX Window Service/Horizontal Layout/内容/标注注册/HBoxContainer/VBoxContainer"] [node name="Label" type="Label" parent="Layout/UX Window Service/Horizontal Layout/内容/标注注册/HBoxContainer/VBoxContainer"]
layout_mode = 2 layout_mode = 2
theme_type_variation = &"HeaderLarge" theme_type_variation = &"HeaderLarge"
text = "选择标识模板" text = "选择标识模板"
[node name="ItemList" type="ItemList" parent="UX Window Service/Horizontal Layout/内容/标注注册/HBoxContainer/VBoxContainer"] [node name="ItemList" type="ItemList" parent="Layout/UX Window Service/Horizontal Layout/内容/标注注册/HBoxContainer/VBoxContainer"]
layout_mode = 2 layout_mode = 2
size_flags_vertical = 3 size_flags_vertical = 3
auto_height = true auto_height = true
@ -268,58 +286,63 @@ item_1/text = "2"
item_2/text = "3" item_2/text = "3"
item_3/text = "4" item_3/text = "4"
[node name="VBoxContainer2" type="VBoxContainer" parent="UX Window Service/Horizontal Layout/内容/标注注册/HBoxContainer"] [node name="VBoxContainer2" type="VBoxContainer" parent="Layout/UX Window Service/Horizontal Layout/内容/标注注册/HBoxContainer"]
layout_mode = 2 layout_mode = 2
size_flags_horizontal = 3 size_flags_horizontal = 3
[node name="Label" type="Label" parent="UX Window Service/Horizontal Layout/内容/标注注册/HBoxContainer/VBoxContainer2"] [node name="Label" type="Label" parent="Layout/UX Window Service/Horizontal Layout/内容/标注注册/HBoxContainer/VBoxContainer2"]
layout_mode = 2 layout_mode = 2
theme_type_variation = &"HeaderLarge" theme_type_variation = &"HeaderLarge"
text = "在这里填写注册表单" text = "在这里填写注册表单"
[node name="HBoxContainer" type="HBoxContainer" parent="UX Window Service/Horizontal Layout/内容/标注注册/HBoxContainer/VBoxContainer2"] [node name="HBoxContainer" type="HBoxContainer" parent="Layout/UX Window Service/Horizontal Layout/内容/标注注册/HBoxContainer/VBoxContainer2"]
layout_mode = 2 layout_mode = 2
[node name="handle-edit" type="LineEdit" parent="UX Window Service/Horizontal Layout/内容/标注注册/HBoxContainer/VBoxContainer2/HBoxContainer"] [node name="handle-edit" type="LineEdit" parent="Layout/UX Window Service/Horizontal Layout/内容/标注注册/HBoxContainer/VBoxContainer2/HBoxContainer"]
layout_mode = 2 layout_mode = 2
size_flags_horizontal = 3 size_flags_horizontal = 3
placeholder_text = "需要注册的标识码" placeholder_text = "需要注册的标识码"
caret_blink = true caret_blink = true
caret_blink_interval = 0.5 caret_blink_interval = 0.5
[node name="generate-button" type="Button" parent="UX Window Service/Horizontal Layout/内容/标注注册/HBoxContainer/VBoxContainer2/HBoxContainer"] [node name="generate-button" type="Button" parent="Layout/UX Window Service/Horizontal Layout/内容/标注注册/HBoxContainer/VBoxContainer2/HBoxContainer"]
layout_mode = 2 layout_mode = 2
text = "生成标识" text = "生成标识"
[node name="register-container" type="VBoxContainer" parent="UX Window Service/Horizontal Layout/内容/标注注册/HBoxContainer/VBoxContainer2"] [node name="MarginContainer" type="MarginContainer" parent="Layout/UX Window Service/Horizontal Layout/内容/标注注册/HBoxContainer/VBoxContainer2"]
layout_mode = 2
size_flags_vertical = 3
theme_type_variation = &"Margin_16px"
[node name="register-container" type="VBoxContainer" parent="Layout/UX Window Service/Horizontal Layout/内容/标注注册/HBoxContainer/VBoxContainer2/MarginContainer"]
layout_mode = 2 layout_mode = 2
size_flags_horizontal = 3 size_flags_horizontal = 3
size_flags_vertical = 3 size_flags_vertical = 3
[node name="register-button" type="Button" parent="UX Window Service/Horizontal Layout/内容/标注注册/HBoxContainer/VBoxContainer2"] [node name="register-button" type="Button" parent="Layout/UX Window Service/Horizontal Layout/内容/标注注册/HBoxContainer/VBoxContainer2"]
layout_mode = 2 layout_mode = 2
text = "注册标识" text = "注册标识"
[node name="Container2" type="Container" parent="UX Window Service/Horizontal Layout/内容"] [node name="Container2" type="Container" parent="Layout/UX Window Service/Horizontal Layout/内容"]
visible = false visible = false
layout_mode = 2 layout_mode = 2
[node name="Container3" type="Container" parent="UX Window Service/Horizontal Layout/内容"] [node name="Container3" type="Container" parent="Layout/UX Window Service/Horizontal Layout/内容"]
visible = false visible = false
layout_mode = 2 layout_mode = 2
[node name="Container4" type="Container" parent="UX Window Service/Horizontal Layout/内容"] [node name="Container4" type="Container" parent="Layout/UX Window Service/Horizontal Layout/内容"]
visible = false visible = false
layout_mode = 2 layout_mode = 2
[node name="Container5" type="Container" parent="UX Window Service/Horizontal Layout/内容"] [node name="Container5" type="Container" parent="Layout/UX Window Service/Horizontal Layout/内容"]
visible = false visible = false
layout_mode = 2 layout_mode = 2
[node name="标识解析服务" type="Node" parent="."] [node name="标识解析服务" type="Node" parent="Layout"]
script = ExtResource("3_xbtmk") script = ExtResource("3_xbtmk")
[node name="标识模板服务" type="Node" parent="." node_paths=PackedStringArray("createButton", "newFormatButton", "itemList", "templateNameEdit", "templateDescriptionEdit", "container")] [node name="标识模板服务" type="Node" parent="Layout" node_paths=PackedStringArray("createButton", "newFormatButton", "itemList", "templateNameEdit", "templateDescriptionEdit", "container")]
script = ExtResource("4_oj8cs") script = ExtResource("4_oj8cs")
createButton = NodePath("../UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer/Button") createButton = NodePath("../UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer/Button")
newFormatButton = NodePath("../UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer/Button") newFormatButton = NodePath("../UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer/Button")
@ -329,12 +352,12 @@ templateDescriptionEdit = NodePath("../UX Window Service/Horizontal Layout/内
container = NodePath("../UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer/Format-Container") container = NodePath("../UX Window Service/Horizontal Layout/内容/标识模板/VBoxContainer/HBoxContainer/VBoxContainer2/VBoxContainer/Format-Container")
templateContainer = ExtResource("3_gmthc") templateContainer = ExtResource("3_gmthc")
[node name="标识注册服务" type="Node" parent="." node_paths=PackedStringArray("service", "templateService", "templateList", "handleEdit", "generateHandleButton", "container", "registerButton")] [node name="标识注册服务" type="Node" parent="Layout" node_paths=PackedStringArray("service", "templateService", "templateList", "handleEdit", "generateHandleButton", "container", "registerButton")]
script = ExtResource("8_6uwr0") script = ExtResource("8_6uwr0")
service = NodePath("../标识解析服务") service = NodePath("../标识解析服务")
templateService = NodePath("../标识模板服务") templateService = NodePath("../标识模板服务")
templateList = NodePath("../UX Window Service/Horizontal Layout/内容/标注注册/HBoxContainer/VBoxContainer/ItemList") templateList = NodePath("../UX Window Service/Horizontal Layout/内容/标注注册/HBoxContainer/VBoxContainer/ItemList")
handleEdit = NodePath("../UX Window Service/Horizontal Layout/内容/标注注册/HBoxContainer/VBoxContainer2/HBoxContainer/handle-edit") handleEdit = NodePath("../UX Window Service/Horizontal Layout/内容/标注注册/HBoxContainer/VBoxContainer2/HBoxContainer/handle-edit")
generateHandleButton = NodePath("../UX Window Service/Horizontal Layout/内容/标注注册/HBoxContainer/VBoxContainer2/HBoxContainer/generate-button") generateHandleButton = NodePath("../UX Window Service/Horizontal Layout/内容/标注注册/HBoxContainer/VBoxContainer2/HBoxContainer/generate-button")
container = NodePath("../UX Window Service/Horizontal Layout/内容/标注注册/HBoxContainer/VBoxContainer2/register-container") container = NodePath("../UX Window Service/Horizontal Layout/内容/标注注册/HBoxContainer/VBoxContainer2/MarginContainer/register-container")
registerButton = NodePath("../UX Window Service/Horizontal Layout/内容/标注注册/HBoxContainer/VBoxContainer2/register-button") registerButton = NodePath("../UX Window Service/Horizontal Layout/内容/标注注册/HBoxContainer/VBoxContainer2/register-button")

View File

@ -42,20 +42,20 @@
] ]
``` ```
## RoadMap ## RoadMap
- [ ] ⭐编写计划文档(该文档) - [x] ⭐编写计划文档(该文档)
- [ ] 搭建基本的`UI框架` - [x] 搭建基本的`UI框架`
- [ ] 左侧导航栏 - [x] 左侧导航栏
- [ ] 右侧内容区 - [x] 右侧内容区
- [ ] 智能导航 - [ ] 智能导航
- [ ] 下一步 - [ ] 下一步
- [ ] 上一步 - [ ] 上一步
- [ ] 智能提示 - [ ] 智能提示
- [ ] 根据现有的`标识数据结构`进行简化 - [x] 根据现有的`标识数据结构`进行简化
- [ ] 创建`标识模板管理`页面 - [x] 创建`标识模板管理`页面
- [ ] 创建 - [ ] 创建
- [ ] 删除 - [ ] 删除
- [ ] 编辑 - [ ] 编辑
- [ ] 创建根据模板注册标识的`标识注册`页面 - [x] 创建根据模板注册标识的`标识注册`页面
- [ ] 根据生产步骤,基于`标识模板` `注册`需要的标识 - [ ] 根据生产步骤,基于`标识模板` `注册`需要的标识
- [ ] 接入已有的温湿度传感器检测模板 - [ ] 接入已有的温湿度传感器检测模板
- [ ] 添加`自动更新温湿度标识`的按钮 - [ ] 添加`自动更新温湿度标识`的按钮