213 lines
4.6 KiB
Plaintext
213 lines
4.6 KiB
Plaintext
|
[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
|
||
|
margin_left = -200.0
|
||
|
margin_top = -150.0
|
||
|
margin_right = 200.0
|
||
|
margin_bottom = 250.0
|
||
|
rect_min_size = Vector2( 400, 0 )
|
||
|
custom_constants/vseparation = 10
|
||
|
custom_constants/hseparation = 10
|
||
|
columns = 4
|
||
|
|
||
|
[node name="ButtonGhost" type="Button" parent="NumPad"]
|
||
|
margin_right = 93.0
|
||
|
margin_bottom = 72.0
|
||
|
size_flags_horizontal = 3
|
||
|
size_flags_vertical = 3
|
||
|
text = "X"
|
||
|
|
||
|
[node name="ButtonPlusMin" type="Button" parent="NumPad"]
|
||
|
margin_left = 103.0
|
||
|
margin_right = 196.0
|
||
|
margin_bottom = 72.0
|
||
|
size_flags_horizontal = 3
|
||
|
size_flags_vertical = 3
|
||
|
text = "+/-"
|
||
|
|
||
|
[node name="ButtonPerc" type="Button" parent="NumPad"]
|
||
|
margin_left = 206.0
|
||
|
margin_right = 298.0
|
||
|
margin_bottom = 72.0
|
||
|
size_flags_horizontal = 3
|
||
|
size_flags_vertical = 3
|
||
|
text = "%"
|
||
|
|
||
|
[node name="ButtonDivide" type="Button" parent="NumPad"]
|
||
|
margin_left = 308.0
|
||
|
margin_right = 400.0
|
||
|
margin_bottom = 72.0
|
||
|
size_flags_horizontal = 3
|
||
|
size_flags_vertical = 3
|
||
|
text = ":"
|
||
|
|
||
|
[node name="Button7" type="Button" parent="NumPad"]
|
||
|
margin_top = 82.0
|
||
|
margin_right = 93.0
|
||
|
margin_bottom = 154.0
|
||
|
size_flags_horizontal = 3
|
||
|
size_flags_vertical = 3
|
||
|
text = "7"
|
||
|
|
||
|
[node name="Button8" type="Button" parent="NumPad"]
|
||
|
margin_left = 103.0
|
||
|
margin_top = 82.0
|
||
|
margin_right = 196.0
|
||
|
margin_bottom = 154.0
|
||
|
size_flags_horizontal = 3
|
||
|
size_flags_vertical = 3
|
||
|
text = "8"
|
||
|
|
||
|
[node name="Button9" type="Button" parent="NumPad"]
|
||
|
margin_left = 206.0
|
||
|
margin_top = 82.0
|
||
|
margin_right = 298.0
|
||
|
margin_bottom = 154.0
|
||
|
size_flags_horizontal = 3
|
||
|
size_flags_vertical = 3
|
||
|
text = "9"
|
||
|
|
||
|
[node name="ButtonMultiply" type="Button" parent="NumPad"]
|
||
|
margin_left = 308.0
|
||
|
margin_top = 82.0
|
||
|
margin_right = 400.0
|
||
|
margin_bottom = 154.0
|
||
|
size_flags_horizontal = 3
|
||
|
size_flags_vertical = 3
|
||
|
text = "x"
|
||
|
|
||
|
[node name="Button4" type="Button" parent="NumPad"]
|
||
|
margin_top = 164.0
|
||
|
margin_right = 93.0
|
||
|
margin_bottom = 236.0
|
||
|
size_flags_horizontal = 3
|
||
|
size_flags_vertical = 3
|
||
|
text = "4"
|
||
|
|
||
|
[node name="Button5" type="Button" parent="NumPad"]
|
||
|
margin_left = 103.0
|
||
|
margin_top = 164.0
|
||
|
margin_right = 196.0
|
||
|
margin_bottom = 236.0
|
||
|
size_flags_horizontal = 3
|
||
|
size_flags_vertical = 3
|
||
|
text = "5"
|
||
|
|
||
|
[node name="Button6" type="Button" parent="NumPad"]
|
||
|
margin_left = 206.0
|
||
|
margin_top = 164.0
|
||
|
margin_right = 298.0
|
||
|
margin_bottom = 236.0
|
||
|
size_flags_horizontal = 3
|
||
|
size_flags_vertical = 3
|
||
|
text = "6"
|
||
|
|
||
|
[node name="ButtonMinus" type="Button" parent="NumPad"]
|
||
|
margin_left = 308.0
|
||
|
margin_top = 164.0
|
||
|
margin_right = 400.0
|
||
|
margin_bottom = 236.0
|
||
|
size_flags_horizontal = 3
|
||
|
size_flags_vertical = 3
|
||
|
text = "-"
|
||
|
|
||
|
[node name="Button1" type="Button" parent="NumPad"]
|
||
|
margin_top = 246.0
|
||
|
margin_right = 93.0
|
||
|
margin_bottom = 318.0
|
||
|
size_flags_horizontal = 3
|
||
|
size_flags_vertical = 3
|
||
|
text = "1"
|
||
|
|
||
|
[node name="Button2" type="Button" parent="NumPad"]
|
||
|
margin_left = 103.0
|
||
|
margin_top = 246.0
|
||
|
margin_right = 196.0
|
||
|
margin_bottom = 318.0
|
||
|
size_flags_horizontal = 3
|
||
|
size_flags_vertical = 3
|
||
|
text = "2"
|
||
|
|
||
|
[node name="Button3" type="Button" parent="NumPad"]
|
||
|
margin_left = 206.0
|
||
|
margin_top = 246.0
|
||
|
margin_right = 298.0
|
||
|
margin_bottom = 318.0
|
||
|
size_flags_horizontal = 3
|
||
|
size_flags_vertical = 3
|
||
|
text = "3"
|
||
|
|
||
|
[node name="ButtonPlus" type="Button" parent="NumPad"]
|
||
|
margin_left = 308.0
|
||
|
margin_top = 246.0
|
||
|
margin_right = 400.0
|
||
|
margin_bottom = 318.0
|
||
|
size_flags_horizontal = 3
|
||
|
size_flags_vertical = 3
|
||
|
text = "+"
|
||
|
|
||
|
[node name="ButtonAC" type="Button" parent="NumPad"]
|
||
|
margin_top = 328.0
|
||
|
margin_right = 93.0
|
||
|
margin_bottom = 400.0
|
||
|
size_flags_horizontal = 3
|
||
|
size_flags_vertical = 3
|
||
|
text = "AC"
|
||
|
|
||
|
[node name="Button0" type="Button" parent="NumPad"]
|
||
|
margin_left = 103.0
|
||
|
margin_top = 328.0
|
||
|
margin_right = 196.0
|
||
|
margin_bottom = 400.0
|
||
|
size_flags_horizontal = 3
|
||
|
size_flags_vertical = 3
|
||
|
text = "0"
|
||
|
|
||
|
[node name="ButtonDot" type="Button" parent="NumPad"]
|
||
|
margin_left = 206.0
|
||
|
margin_top = 328.0
|
||
|
margin_right = 298.0
|
||
|
margin_bottom = 400.0
|
||
|
size_flags_horizontal = 3
|
||
|
size_flags_vertical = 3
|
||
|
text = "."
|
||
|
|
||
|
[node name="ButtonEquals" type="Button" parent="NumPad"]
|
||
|
margin_left = 308.0
|
||
|
margin_top = 328.0
|
||
|
margin_right = 400.0
|
||
|
margin_bottom = 400.0
|
||
|
size_flags_horizontal = 3
|
||
|
size_flags_vertical = 3
|
||
|
text = "="
|
||
|
|
||
|
[node name="PrintoutArea" type="Control" parent="."]
|
||
|
anchor_left = 0.5
|
||
|
anchor_right = 0.5
|
||
|
margin_left = -200.0
|
||
|
margin_top = 55.0
|
||
|
margin_right = 200.0
|
||
|
margin_bottom = 135.0
|
||
|
|
||
|
[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
|
||
|
margin_left = 5.0
|
||
|
margin_top = 5.0
|
||
|
margin_right = -5.0
|
||
|
margin_bottom = -5.0
|
||
|
text = "1234"
|
||
|
align = 2
|
||
|
uppercase = true
|