some ui improvements
This commit is contained in:
@@ -32,29 +32,27 @@ offset_bottom = 26.0
|
||||
grow_horizontal = 2
|
||||
text = "You Lost"
|
||||
|
||||
[node name="RestartButton" type="Button" parent="."]
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
offset_left = -44.0
|
||||
offset_top = 270.0
|
||||
offset_right = -161.0
|
||||
offset_bottom = 31.0
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -274.0
|
||||
offset_top = -20.0
|
||||
offset_right = 274.0
|
||||
offset_bottom = 20.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="RestartButton" type="Button" parent="HBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Play Again"
|
||||
|
||||
[node name="QuitButton" type="Button" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
offset_left = 264.0
|
||||
offset_top = 270.0
|
||||
offset_right = 21.0
|
||||
offset_bottom = 31.0
|
||||
grow_horizontal = 2
|
||||
[node name="QuitButton" type="Button" parent="HBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Quit to main menu"
|
||||
|
||||
[connection signal="pressed" from="RestartButton" to="." method="_on_restart_button_pressed"]
|
||||
[connection signal="pressed" from="QuitButton" to="." method="_on_quit_button_pressed"]
|
||||
[connection signal="pressed" from="HBoxContainer/RestartButton" to="." method="_on_restart_button_pressed"]
|
||||
[connection signal="pressed" from="HBoxContainer/QuitButton" to="." method="_on_quit_button_pressed"]
|
||||
|
||||
Reference in New Issue
Block a user