diff options
author | Daniel Weipert <code@drogueronin.de> | 2021-02-08 15:06:31 +0100 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2021-02-08 15:06:31 +0100 |
commit | e216bf93e77ceb42c8c5dc5e77ebff6e1968faa3 (patch) | |
tree | 1d589072972f34c3314bb740d2e257719fb54bed /UI/HUD/CancelButton.tscn | |
parent | cc278651a6aee0de5f928b4bc423e3b705a6b006 (diff) |
Adds Cancel Button to Level HUD
Diffstat (limited to 'UI/HUD/CancelButton.tscn')
-rw-r--r-- | UI/HUD/CancelButton.tscn | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/UI/HUD/CancelButton.tscn b/UI/HUD/CancelButton.tscn new file mode 100644 index 0000000..27441cb --- /dev/null +++ b/UI/HUD/CancelButton.tscn @@ -0,0 +1,28 @@ +[gd_scene load_steps=4 format=2] + +[ext_resource path="res://UI/HUD/CancelButton.gd" type="Script" id=1] + +[sub_resource type="StyleBoxFlat" id=2] +bg_color = Color( 0, 0, 0, 1 ) + +[sub_resource type="StyleBoxFlat" id=1] +bg_color = Color( 0.6, 0.6, 0.6, 0 ) +border_width_left = 1 +border_width_top = 1 +border_width_right = 1 +border_width_bottom = 1 +border_color = Color( 0, 0, 0, 1 ) + +[node name="CancelButton" type="Button"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_top = 576.0 +margin_right = -960.0 +custom_styles/hover = SubResource( 2 ) +custom_styles/normal = SubResource( 1 ) +text = "Cancel" +script = ExtResource( 1 ) +__meta__ = { +"_edit_use_anchors_": false +} +[connection signal="pressed" from="." to="." method="_on_CancelButton_pressed"] |