add UI
This commit is contained in:
41
src/UI/GUI.tscn
Normal file
41
src/UI/GUI.tscn
Normal file
@@ -0,0 +1,41 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://UI/pause.png" type="Texture" id=1]
|
||||
[ext_resource path="res://UI/speed.png" type="Texture" id=2]
|
||||
[ext_resource path="res://UI/GUI.gd" type="Script" id=3]
|
||||
|
||||
[node name="GUI" type="CanvasLayer"]
|
||||
pause_mode = 2
|
||||
script = ExtResource( 3 )
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
||||
anchor_left = 1.0
|
||||
anchor_right = 1.0
|
||||
margin_left = -6.0
|
||||
margin_right = 49.0
|
||||
margin_bottom = 24.0
|
||||
rect_scale = Vector2( 0.1, 0.1 )
|
||||
alignment = 2
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="pause" type="Button" parent="HBoxContainer"]
|
||||
margin_left = 2.0
|
||||
margin_right = 24.0
|
||||
margin_bottom = 20.0
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 0
|
||||
toggle_mode = true
|
||||
icon = ExtResource( 1 )
|
||||
|
||||
[node name="speed" type="Button" parent="HBoxContainer"]
|
||||
margin_left = 28.0
|
||||
margin_right = 55.0
|
||||
margin_bottom = 20.0
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 0
|
||||
toggle_mode = true
|
||||
icon = ExtResource( 2 )
|
||||
[connection signal="toggled" from="HBoxContainer/pause" to="." method="_on_pause_toggled"]
|
||||
[connection signal="toggled" from="HBoxContainer/speed" to="." method="_on_speed_toggled"]
|
Reference in New Issue
Block a user