修复无法按下顶部按钮问题

pull/1/head
PJ568 1 year ago
parent f0ad8cd95d
commit 5ba8dcafa7

@ -7,10 +7,10 @@
[ext_resource type="StyleBox" uid="uid://diyafdj4q00tg" path="res://Assets/样式/正常数字.tres" id="3_7cxsl"] [ext_resource type="StyleBox" uid="uid://diyafdj4q00tg" path="res://Assets/样式/正常数字.tres" id="3_7cxsl"]
[ext_resource type="Texture2D" uid="uid://q0eu58y7gua2" path="res://Assets/icon.svg" id="3_o66lt"] [ext_resource type="Texture2D" uid="uid://q0eu58y7gua2" path="res://Assets/icon.svg" id="3_o66lt"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_yp77b"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_2bxdx"] [sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_2bxdx"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_yp77b"]
[node name="主界面" type="Control"] [node name="主界面" type="Control"]
layout_mode = 3 layout_mode = 3
anchors_preset = 15 anchors_preset = 15
@ -39,39 +39,6 @@ grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
color = Color(0.129412, 0.129412, 0.129412, 1) color = Color(0.129412, 0.129412, 0.129412, 1)
[node name="MarginContainer" type="MarginContainer" parent="面板/背景色"]
layout_mode = 2
offset_left = -1.5
offset_top = -5.0
offset_right = 721.5
offset_bottom = 91.0
size_flags_vertical = 0
theme_override_constants/margin_top = 32
theme_override_constants/margin_right = 32
[node name="顶按钮容器" type="HBoxContainer" parent="面板/背景色/MarginContainer"]
layout_mode = 2
alignment = 2
[node name="关于" type="Button" parent="面板/背景色/MarginContainer/顶按钮容器"]
custom_minimum_size = Vector2(64, 64)
layout_mode = 2
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 32
theme_override_styles/normal = ExtResource("2_asaep")
theme_override_styles/focus = SubResource("StyleBoxEmpty_yp77b")
text = "i"
[node name="设置" type="Button" parent="面板/背景色/MarginContainer/顶按钮容器"]
custom_minimum_size = Vector2(64, 64)
layout_mode = 2
theme_override_font_sizes/font_size = 32
theme_override_styles/normal = ExtResource("2_asaep")
theme_override_styles/focus = SubResource("StyleBoxEmpty_yp77b")
icon = ExtResource("3_o66lt")
icon_alignment = 1
expand_icon = true
[node name="屏键容器" type="VBoxContainer" parent="面板/背景色"] [node name="屏键容器" type="VBoxContainer" parent="面板/背景色"]
layout_mode = 1 layout_mode = 1
anchors_preset = 12 anchors_preset = 12
@ -85,7 +52,7 @@ grow_vertical = 0
[node name="结果显示容器" type="VBoxContainer" parent="面板/背景色/屏键容器"] [node name="结果显示容器" type="VBoxContainer" parent="面板/背景色/屏键容器"]
layout_mode = 2 layout_mode = 2
size_flags_horizontal = 8 size_flags_horizontal = 8
size_flags_vertical = 0 size_flags_vertical = 8
[node name="MarginContainer" type="MarginContainer" parent="面板/背景色/屏键容器/结果显示容器"] [node name="MarginContainer" type="MarginContainer" parent="面板/背景色/屏键容器/结果显示容器"]
layout_mode = 2 layout_mode = 2
@ -342,7 +309,39 @@ theme_override_styles/normal = ExtResource("2_xhj82")
theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx") theme_override_styles/focus = SubResource("StyleBoxEmpty_2bxdx")
text = "=" text = "="
[connection signal="pressed" from="面板/背景色/MarginContainer/顶按钮容器/关于" to="." method="_on_关于_pressed"] [node name="MarginContainer" type="MarginContainer" parent="面板/背景色"]
layout_mode = 2
offset_left = -1.5
offset_top = -5.0
offset_right = 721.5
offset_bottom = 91.0
size_flags_vertical = 0
theme_override_constants/margin_top = 32
theme_override_constants/margin_right = 32
[node name="顶按钮容器" type="HBoxContainer" parent="面板/背景色/MarginContainer"]
layout_mode = 2
alignment = 2
[node name="关于" type="Button" parent="面板/背景色/MarginContainer/顶按钮容器"]
custom_minimum_size = Vector2(64, 64)
layout_mode = 2
theme_override_fonts/font = ExtResource("1_g8qlb")
theme_override_font_sizes/font_size = 32
theme_override_styles/normal = ExtResource("2_asaep")
theme_override_styles/focus = SubResource("StyleBoxEmpty_yp77b")
text = "i"
[node name="设置" type="Button" parent="面板/背景色/MarginContainer/顶按钮容器"]
custom_minimum_size = Vector2(64, 64)
layout_mode = 2
theme_override_font_sizes/font_size = 32
theme_override_styles/normal = ExtResource("2_asaep")
theme_override_styles/focus = SubResource("StyleBoxEmpty_yp77b")
icon = ExtResource("3_o66lt")
icon_alignment = 1
expand_icon = true
[connection signal="pressed" from="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/上键盘/Clear" to="." method="_on_clear_pressed"] [connection signal="pressed" from="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/上键盘/Clear" to="." method="_on_clear_pressed"]
[connection signal="pressed" from="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/上键盘/Or" to="." method="按下正负"] [connection signal="pressed" from="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/上键盘/Or" to="." method="按下正负"]
[connection signal="pressed" from="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/上键盘/Back" to="." method="按下退格"] [connection signal="pressed" from="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/上键盘/Back" to="." method="按下退格"]
@ -352,3 +351,4 @@ text = "="
[connection signal="pressed" from="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/上键盘/+" to="." method="按下加"] [connection signal="pressed" from="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/上键盘/+" to="." method="按下加"]
[connection signal="pressed" from="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/下键盘/_" to="." method="按下点"] [connection signal="pressed" from="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/下键盘/_" to="." method="按下点"]
[connection signal="pressed" from="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/下键盘/=" to="." method="等于"] [connection signal="pressed" from="面板/背景色/屏键容器/MarginContainer2/上下键盘分隔/下键盘/=" to="." method="等于"]
[connection signal="pressed" from="面板/背景色/MarginContainer/顶按钮容器/关于" to="." method="_on_关于_pressed"]

Loading…
Cancel
Save