2022-11-20 13:02:47 +00:00
|
|
|
[gd_scene format=2]
|
|
|
|
|
|
|
|
[node name="Calculator" type="CanvasLayer"]
|
|
|
|
|
|
|
|
[node name="NumPad" type="GridContainer" parent="."]
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
2023-03-30 07:30:04 +00:00
|
|
|
offset_left = -200.0
|
|
|
|
offset_top = -150.0
|
|
|
|
offset_right = 200.0
|
|
|
|
offset_bottom = 250.0
|
|
|
|
custom_minimum_size = Vector2( 400, 0 )
|
|
|
|
theme_override_constants/v_separation = 10
|
|
|
|
theme_override_constants/h_separation = 10
|
2022-11-20 13:02:47 +00:00
|
|
|
columns = 4
|
|
|
|
|
|
|
|
[node name="ButtonGhost" type="Button" parent="NumPad"]
|
2023-03-30 07:30:04 +00:00
|
|
|
offset_right = 93.0
|
|
|
|
offset_bottom = 72.0
|
2022-11-20 13:02:47 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
text = "X"
|
|
|
|
|
|
|
|
[node name="ButtonPlusMin" type="Button" parent="NumPad"]
|
2023-03-30 07:30:04 +00:00
|
|
|
offset_left = 103.0
|
|
|
|
offset_right = 196.0
|
|
|
|
offset_bottom = 72.0
|
2022-11-20 13:02:47 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
text = "+/-"
|
|
|
|
|
|
|
|
[node name="ButtonPerc" type="Button" parent="NumPad"]
|
2023-03-30 07:30:04 +00:00
|
|
|
offset_left = 206.0
|
|
|
|
offset_right = 298.0
|
|
|
|
offset_bottom = 72.0
|
2022-11-20 13:02:47 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
text = "%"
|
|
|
|
|
|
|
|
[node name="ButtonDivide" type="Button" parent="NumPad"]
|
2023-03-30 07:30:04 +00:00
|
|
|
offset_left = 308.0
|
|
|
|
offset_right = 400.0
|
|
|
|
offset_bottom = 72.0
|
2022-11-20 13:02:47 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
text = ":"
|
|
|
|
|
|
|
|
[node name="Button7" type="Button" parent="NumPad"]
|
2023-03-30 07:30:04 +00:00
|
|
|
offset_top = 82.0
|
|
|
|
offset_right = 93.0
|
|
|
|
offset_bottom = 154.0
|
2022-11-20 13:02:47 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
text = "7"
|
|
|
|
|
|
|
|
[node name="Button8" type="Button" parent="NumPad"]
|
2023-03-30 07:30:04 +00:00
|
|
|
offset_left = 103.0
|
|
|
|
offset_top = 82.0
|
|
|
|
offset_right = 196.0
|
|
|
|
offset_bottom = 154.0
|
2022-11-20 13:02:47 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
text = "8"
|
|
|
|
|
|
|
|
[node name="Button9" type="Button" parent="NumPad"]
|
2023-03-30 07:30:04 +00:00
|
|
|
offset_left = 206.0
|
|
|
|
offset_top = 82.0
|
|
|
|
offset_right = 298.0
|
|
|
|
offset_bottom = 154.0
|
2022-11-20 13:02:47 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
text = "9"
|
|
|
|
|
|
|
|
[node name="ButtonMultiply" type="Button" parent="NumPad"]
|
2023-03-30 07:30:04 +00:00
|
|
|
offset_left = 308.0
|
|
|
|
offset_top = 82.0
|
|
|
|
offset_right = 400.0
|
|
|
|
offset_bottom = 154.0
|
2022-11-20 13:02:47 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
text = "x"
|
|
|
|
|
|
|
|
[node name="Button4" type="Button" parent="NumPad"]
|
2023-03-30 07:30:04 +00:00
|
|
|
offset_top = 164.0
|
|
|
|
offset_right = 93.0
|
|
|
|
offset_bottom = 236.0
|
2022-11-20 13:02:47 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
text = "4"
|
|
|
|
|
|
|
|
[node name="Button5" type="Button" parent="NumPad"]
|
2023-03-30 07:30:04 +00:00
|
|
|
offset_left = 103.0
|
|
|
|
offset_top = 164.0
|
|
|
|
offset_right = 196.0
|
|
|
|
offset_bottom = 236.0
|
2022-11-20 13:02:47 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
text = "5"
|
|
|
|
|
|
|
|
[node name="Button6" type="Button" parent="NumPad"]
|
2023-03-30 07:30:04 +00:00
|
|
|
offset_left = 206.0
|
|
|
|
offset_top = 164.0
|
|
|
|
offset_right = 298.0
|
|
|
|
offset_bottom = 236.0
|
2022-11-20 13:02:47 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
text = "6"
|
|
|
|
|
|
|
|
[node name="ButtonMinus" type="Button" parent="NumPad"]
|
2023-03-30 07:30:04 +00:00
|
|
|
offset_left = 308.0
|
|
|
|
offset_top = 164.0
|
|
|
|
offset_right = 400.0
|
|
|
|
offset_bottom = 236.0
|
2022-11-20 13:02:47 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
text = "-"
|
|
|
|
|
|
|
|
[node name="Button1" type="Button" parent="NumPad"]
|
2023-03-30 07:30:04 +00:00
|
|
|
offset_top = 246.0
|
|
|
|
offset_right = 93.0
|
|
|
|
offset_bottom = 318.0
|
2022-11-20 13:02:47 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
text = "1"
|
|
|
|
|
|
|
|
[node name="Button2" type="Button" parent="NumPad"]
|
2023-03-30 07:30:04 +00:00
|
|
|
offset_left = 103.0
|
|
|
|
offset_top = 246.0
|
|
|
|
offset_right = 196.0
|
|
|
|
offset_bottom = 318.0
|
2022-11-20 13:02:47 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
text = "2"
|
|
|
|
|
|
|
|
[node name="Button3" type="Button" parent="NumPad"]
|
2023-03-30 07:30:04 +00:00
|
|
|
offset_left = 206.0
|
|
|
|
offset_top = 246.0
|
|
|
|
offset_right = 298.0
|
|
|
|
offset_bottom = 318.0
|
2022-11-20 13:02:47 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
text = "3"
|
|
|
|
|
|
|
|
[node name="ButtonPlus" type="Button" parent="NumPad"]
|
2023-03-30 07:30:04 +00:00
|
|
|
offset_left = 308.0
|
|
|
|
offset_top = 246.0
|
|
|
|
offset_right = 400.0
|
|
|
|
offset_bottom = 318.0
|
2022-11-20 13:02:47 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
text = "+"
|
|
|
|
|
|
|
|
[node name="ButtonAC" type="Button" parent="NumPad"]
|
2023-03-30 07:30:04 +00:00
|
|
|
offset_top = 328.0
|
|
|
|
offset_right = 93.0
|
|
|
|
offset_bottom = 400.0
|
2022-11-20 13:02:47 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
text = "AC"
|
|
|
|
|
|
|
|
[node name="Button0" type="Button" parent="NumPad"]
|
2023-03-30 07:30:04 +00:00
|
|
|
offset_left = 103.0
|
|
|
|
offset_top = 328.0
|
|
|
|
offset_right = 196.0
|
|
|
|
offset_bottom = 400.0
|
2022-11-20 13:02:47 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
text = "0"
|
|
|
|
|
|
|
|
[node name="ButtonDot" type="Button" parent="NumPad"]
|
2023-03-30 07:30:04 +00:00
|
|
|
offset_left = 206.0
|
|
|
|
offset_top = 328.0
|
|
|
|
offset_right = 298.0
|
|
|
|
offset_bottom = 400.0
|
2022-11-20 13:02:47 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
text = "."
|
|
|
|
|
|
|
|
[node name="ButtonEquals" type="Button" parent="NumPad"]
|
2023-03-30 07:30:04 +00:00
|
|
|
offset_left = 308.0
|
|
|
|
offset_top = 328.0
|
|
|
|
offset_right = 400.0
|
|
|
|
offset_bottom = 400.0
|
2022-11-20 13:02:47 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
text = "="
|
|
|
|
|
|
|
|
[node name="PrintoutArea" type="Control" parent="."]
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_right = 0.5
|
2023-03-30 07:30:04 +00:00
|
|
|
offset_left = -200.0
|
|
|
|
offset_top = 55.0
|
|
|
|
offset_right = 200.0
|
|
|
|
offset_bottom = 135.0
|
2022-11-20 13:02:47 +00:00
|
|
|
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="PrintoutArea"]
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
color = Color( 0.0509804, 0.0313726, 0.286275, 1 )
|
|
|
|
|
|
|
|
[node name="NumberLine" type="Label" parent="PrintoutArea"]
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
2023-03-30 07:30:04 +00:00
|
|
|
offset_left = 5.0
|
|
|
|
offset_top = 5.0
|
|
|
|
offset_right = -5.0
|
|
|
|
offset_bottom = -5.0
|
2022-11-20 13:02:47 +00:00
|
|
|
text = "1234"
|
|
|
|
align = 2
|
|
|
|
uppercase = true
|