Sun, Shovel, Fastforward, GUI Improvements
This commit is contained in:
parent
26c3aeb7e9
commit
63935d5978
28 changed files with 546 additions and 45 deletions
|
|
@ -1,6 +1,8 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://t0vpmycj6c8j"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://t0vpmycj6c8j"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cw73vihkrfenc" path="res://assets/sprites/gui/Shovel.tres" id="1_46afk"]
|
||||
[ext_resource type="Texture2D" uid="uid://fd6drk2su0df" path="res://assets/sprites/gui/EmptyShovel.tres" id="2_pw2pj"]
|
||||
[ext_resource type="Script" path="res://scripts/components/gui/ShovelButton.cs" id="3_u6gir"]
|
||||
|
||||
[node name="ShovelButton" type="TextureButton"]
|
||||
anchors_preset = -1
|
||||
|
|
@ -11,5 +13,18 @@ offset_bottom = -6.8
|
|||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 0
|
||||
mouse_default_cursor_shape = 2
|
||||
toggle_mode = true
|
||||
texture_normal = ExtResource("1_46afk")
|
||||
texture_pressed = ExtResource("2_pw2pj")
|
||||
stretch_mode = 0
|
||||
script = ExtResource("3_u6gir")
|
||||
|
||||
[node name="RayCast2D" type="RayCast2D" parent="."]
|
||||
enabled = false
|
||||
target_position = Vector2(0, 0)
|
||||
collision_mask = 2
|
||||
hit_from_inside = true
|
||||
collide_with_areas = true
|
||||
collide_with_bodies = false
|
||||
|
||||
[connection signal="focus_exited" from="." to="." method="OnFocusExited"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue