This commit is contained in:
TsubakiLoL 2024-12-15 19:58:42 +08:00
parent 924c478b8d
commit a438dd0938
3 changed files with 23 additions and 6 deletions

View File

@ -122,3 +122,11 @@ func _on_update_accept_btn_on_click(_node: Variant) -> void:
#当用户点击检查更新时触发 #当用户点击检查更新时触发
func _on_update_button_on_click(_node: Variant) -> void: func _on_update_button_on_click(_node: Variant) -> void:
pass # Replace with function body. pass # Replace with function body.
func _on_color_mode_on_click(_node: Variant) -> void:
pass # Replace with function body.
func _on_view_mode_on_click(_node: Variant) -> void:
pass # Replace with function body.

View File

@ -425,7 +425,8 @@ theme_override_constants/separation = 0
layout_mode = 2 layout_mode = 2
theme_override_constants/separation = 19 theme_override_constants/separation = 19
[node name="Label" type="Label" parent="HBoxContainer/VBoxContainer/margin/VBoxContainer/HBoxContainer"] [node name="Temperature" type="Label" parent="HBoxContainer/VBoxContainer/margin/VBoxContainer/HBoxContainer"]
unique_name_in_owner = true
layout_mode = 2 layout_mode = 2
size_flags_horizontal = 10 size_flags_horizontal = 10
theme_override_font_sizes/font_size = 34 theme_override_font_sizes/font_size = 34
@ -435,12 +436,14 @@ text = "25℃"
custom_minimum_size = Vector2(86.18, 0) custom_minimum_size = Vector2(86.18, 0)
layout_mode = 2 layout_mode = 2
[node name="Label2" type="Label" parent="HBoxContainer/VBoxContainer/margin/VBoxContainer/HBoxContainer"] [node name="Date" type="Label" parent="HBoxContainer/VBoxContainer/margin/VBoxContainer/HBoxContainer"]
unique_name_in_owner = true
layout_mode = 2 layout_mode = 2
theme_override_font_sizes/font_size = 34 theme_override_font_sizes/font_size = 34
text = "2024-04-27" text = "2024-04-27"
[node name="Label3" type="Label" parent="HBoxContainer/VBoxContainer/margin/VBoxContainer/HBoxContainer"] [node name="Time" type="Label" parent="HBoxContainer/VBoxContainer/margin/VBoxContainer/HBoxContainer"]
unique_name_in_owner = true
layout_mode = 2 layout_mode = 2
theme_override_font_sizes/font_size = 34 theme_override_font_sizes/font_size = 34
text = "00:35:24" text = "00:35:24"
@ -462,9 +465,11 @@ layout_mode = 2
theme_override_font_sizes/font_size = 33 theme_override_font_sizes/font_size = 33
text = "显示模式" text = "显示模式"
[node name="TextureRect" type="TextureRect" parent="HBoxContainer/VBoxContainer/margin/VBoxContainer/HBoxContainer2/VBoxContainer"] [node name="ColorMode" type="TextureRect" parent="HBoxContainer/VBoxContainer/margin/VBoxContainer/HBoxContainer2/VBoxContainer"]
layout_mode = 2 layout_mode = 2
texture = ExtResource("6_xloj4") texture = ExtResource("6_xloj4")
script = ExtResource("15_od2fy")
is_Scale = true
[node name="VBoxContainer2" type="VBoxContainer" parent="HBoxContainer/VBoxContainer/margin/VBoxContainer/HBoxContainer2"] [node name="VBoxContainer2" type="VBoxContainer" parent="HBoxContainer/VBoxContainer/margin/VBoxContainer/HBoxContainer2"]
layout_mode = 2 layout_mode = 2
@ -475,9 +480,11 @@ layout_mode = 2
theme_override_font_sizes/font_size = 33 theme_override_font_sizes/font_size = 33
text = "视图切换" text = "视图切换"
[node name="TextureRect" type="TextureRect" parent="HBoxContainer/VBoxContainer/margin/VBoxContainer/HBoxContainer2/VBoxContainer2"] [node name="ViewMode" type="TextureRect" parent="HBoxContainer/VBoxContainer/margin/VBoxContainer/HBoxContainer2/VBoxContainer2"]
layout_mode = 2 layout_mode = 2
texture = ExtResource("7_vgc4b") texture = ExtResource("7_vgc4b")
script = ExtResource("15_od2fy")
is_Scale = true
[node name="tab2" type="Control" parent="HBoxContainer/VBoxContainer/margin/VBoxContainer"] [node name="tab2" type="Control" parent="HBoxContainer/VBoxContainer/margin/VBoxContainer"]
custom_minimum_size = Vector2(0, 53) custom_minimum_size = Vector2(0, 53)
@ -738,6 +745,8 @@ layout_mode = 2
[connection signal="on_click" from="HBoxContainer/margin/VBoxContainer/GridContainer/Download" to="." method="_on_download_on_click"] [connection signal="on_click" from="HBoxContainer/margin/VBoxContainer/GridContainer/Download" to="." method="_on_download_on_click"]
[connection signal="on_click" from="HBoxContainer/margin/VBoxContainer/GridContainer/Upload" to="." method="_on_upload_on_click"] [connection signal="on_click" from="HBoxContainer/margin/VBoxContainer/GridContainer/Upload" to="." method="_on_upload_on_click"]
[connection signal="Onclick" from="HBoxContainer/margin/VBoxContainer/GridContainer/Upload/uploadTabs" to="." method="_on_upload_tabs_onclick"] [connection signal="Onclick" from="HBoxContainer/margin/VBoxContainer/GridContainer/Upload/uploadTabs" to="." method="_on_upload_tabs_onclick"]
[connection signal="on_click" from="HBoxContainer/VBoxContainer/margin/VBoxContainer/HBoxContainer2/VBoxContainer/ColorMode" to="." method="_on_color_mode_on_click"]
[connection signal="on_click" from="HBoxContainer/VBoxContainer/margin/VBoxContainer/HBoxContainer2/VBoxContainer2/ViewMode" to="." method="_on_view_mode_on_click"]
[connection signal="Onclick" from="HBoxContainer/VBoxContainer/margin/VBoxContainer/HBoxContainer3/VBoxContainer/MarginContainer/LanguageTabs" to="." method="_on_language_tabs_onclick"] [connection signal="Onclick" from="HBoxContainer/VBoxContainer/margin/VBoxContainer/HBoxContainer3/VBoxContainer/MarginContainer/LanguageTabs" to="." method="_on_language_tabs_onclick"]
[connection signal="pressed" from="HBoxContainer/VBoxContainer/margin/VBoxContainer/HBoxContainer3/VBoxContainer2/HBoxContainer/WsConnectButton" to="." method="_on_ws_connect_button_pressed"] [connection signal="pressed" from="HBoxContainer/VBoxContainer/margin/VBoxContainer/HBoxContainer3/VBoxContainer2/HBoxContainer/WsConnectButton" to="." method="_on_ws_connect_button_pressed"]
[connection signal="on_click" from="HBoxContainer/VBoxContainer/RightBottonPanel/VBoxContainer/HBoxContainer2/UpdateButton" to="." method="_on_update_button_on_click"] [connection signal="on_click" from="HBoxContainer/VBoxContainer/RightBottonPanel/VBoxContainer/HBoxContainer2/UpdateButton" to="." method="_on_update_button_on_click"]

View File

@ -33,6 +33,6 @@ func _ready() -> void:
if !OnClickIsCooling: if !OnClickIsCooling:
SelectNode = _node SelectNode = _node
OnClickIsCooling = true OnClickIsCooling = true
Onclick.emit(_node.get_child(0).index) Onclick.emit(_node.get_child(0).get_index())
) )
pass # Replace with function body. pass # Replace with function body.