添加了标识更新

但是只有界面没有功能
This commit is contained in:
CortexCore
2023-07-11 00:14:36 +08:00
parent d8d34766c0
commit ca824c3b32
21 changed files with 742 additions and 126 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 881 B

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cwecc0c326uwp"
path="res://.godot/imported/dashicons_update.png-a2c0bcc4086adb8b526fe8b615a06538.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Artists/Art/Icons/dashicons_update.png"
dest_files=["res://.godot/imported/dashicons_update.png-a2c0bcc4086adb8b526fe8b615a06538.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@@ -0,0 +1,6 @@
[gd_resource type="Resource" script_class="RegularExpressionResource" load_steps=2 format=3 uid="uid://jor5dw3bmy6k"]
[ext_resource type="Script" path="res://BITKit/Scripts/Text/RegularExpressionResource.cs" id="1_gfvy2"]
[resource]
script = ExtResource("1_gfvy2")

View File

@@ -0,0 +1,27 @@
[gd_scene load_steps=2 format=3 uid="uid://btc6smeueu517"]
[ext_resource type="Script" path="res://BITKit/Scripts/UX/UXContainer.cs" id="1_yrfyl"]
[node name="LineEditTemplate" type="PanelContainer" node_paths=PackedStringArray("label", "labels", "lineEdit", "lineEdits")]
script = ExtResource("1_yrfyl")
label = NodePath("MarginContainer/Layout/Label")
labels = []
lineEdit = NodePath("MarginContainer/Layout/LineEdit")
lineEdits = []
[node name="MarginContainer" type="MarginContainer" parent="."]
layout_mode = 2
theme_type_variation = &"Margin_16px"
[node name="Layout" type="HBoxContainer" parent="MarginContainer"]
layout_mode = 2
[node name="Label" type="Label" parent="MarginContainer/Layout"]
layout_mode = 2
size_flags_horizontal = 3
text = "格式 e.g.温湿度"
[node name="LineEdit" type="LineEdit" parent="MarginContainer/Layout"]
layout_mode = 2
size_flags_horizontal = 3
placeholder_text = "温湿度 e.g 42"

View File

@@ -0,0 +1,39 @@
[gd_scene load_steps=3 format=3 uid="uid://b57xrg2ye60dy"]
[ext_resource type="Script" path="res://BITKit/Scripts/UX/UXContainer.cs" id="1_vmd75"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_e8vip"]
bg_color = Color(1, 1, 1, 0.501961)
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
[node name="Option-Button" type="PanelContainer" node_paths=PackedStringArray("button", "labels", "lineEdits")]
offset_right = 40.0
offset_bottom = 40.0
script = ExtResource("1_vmd75")
button = NodePath("Button")
labels = []
lineEdits = []
[node name="Button" type="Button" parent="."]
custom_minimum_size = Vector2(384, 0)
layout_mode = 2
text = "模板类型"
alignment = 0
[node name="Panel" type="Panel" parent="Button"]
layout_mode = 1
anchors_preset = 6
anchor_left = 1.0
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_left = -35.0
offset_top = -4.0
offset_right = -27.0
offset_bottom = 4.0
grow_horizontal = 0
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_e8vip")

View File

@@ -0,0 +1,17 @@
[gd_scene format=3 uid="uid://dqd08tc6xidpy"]
[node name="标题栏Template" type="VBoxContainer"]
[node name="Title" type="Label" parent="."]
layout_mode = 2
theme_type_variation = &"HeaderLarge"
text = "标识更新"
[node name="Context" type="Label" parent="."]
layout_mode = 2
size_flags_horizontal = 0
text = "通常该过程是自动更新的,但有时候会有需要手动更新标识的情况"
[node name="占位符" type="Control" parent="."]
custom_minimum_size = Vector2(0, 100)
layout_mode = 2

View File

@@ -2,7 +2,7 @@
[resource]
bg_color = Color(1, 1, 1, 0.0313726)
corner_radius_top_left = 16
corner_radius_top_right = 16
corner_radius_bottom_right = 16
corner_radius_bottom_left = 16
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8

View File

@@ -72,6 +72,24 @@ layout_mode = 2
theme_type_variation = &"SideTab"
text = "SideBar 1"
[node name="VBoxContainer2" type="VBoxContainer" parent="Scroll/HBoxContainer/VBoxContainer"]
layout_mode = 2
[node name="Button" type="Button" parent="Scroll/HBoxContainer/VBoxContainer/VBoxContainer2"]
layout_mode = 2
theme_type_variation = &"Option"
text = "Option 1"
[node name="Button2" type="Button" parent="Scroll/HBoxContainer/VBoxContainer/VBoxContainer2"]
layout_mode = 2
theme_type_variation = &"Option"
text = "Option 1"
[node name="Button3" type="Button" parent="Scroll/HBoxContainer/VBoxContainer/VBoxContainer2"]
layout_mode = 2
theme_type_variation = &"Option"
text = "Option 1"
[node name="VBoxContainer2" type="VBoxContainer" parent="Scroll/HBoxContainer"]
custom_minimum_size = Vector2(512, 0)
layout_mode = 2

File diff suppressed because one or more lines are too long