newlon/scenes/gui/shovel_button.tscn
2025-07-23 18:08:29 +05:00

41 lines
1.5 KiB
Text

[gd_scene load_steps=6 format=3 uid="uid://t0vpmycj6c8j"]
[ext_resource type="Shader" uid="uid://c5kv2gwtme1dk" path="res://assets/shaders/radial_progress.gdshader" id="1_jj4sa"]
[ext_resource type="Texture2D" uid="uid://b0jta6xgl7mvc" path="res://assets/sprites/gui/shovel_button.png" id="2_jj4sa"]
[ext_resource type="Texture2D" uid="uid://fd6drk2su0df" path="res://assets/sprites/gui/EmptyShovel.tres" id="2_pw2pj"]
[ext_resource type="Script" uid="uid://d4dbg0us5ngxy" path="res://scripts/gui/ShovelButton.cs" id="3_u6gir"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_grw26"]
shader = ExtResource("1_jj4sa")
shader_parameter/region_rect = Vector4(46, 174, 51, 47)
shader_parameter/progress = 1.0
[node name="ShovelButton" type="TextureButton" node_paths=PackedStringArray("raycast", "timer")]
material = SubResource("ShaderMaterial_grw26")
anchors_preset = -1
anchor_right = 0.085
anchor_bottom = 0.117
offset_right = -11.0
offset_bottom = -6.8
size_flags_horizontal = 4
size_flags_vertical = 0
mouse_default_cursor_shape = 2
toggle_mode = true
texture_normal = ExtResource("2_jj4sa")
texture_pressed = ExtResource("2_pw2pj")
stretch_mode = 5
script = ExtResource("3_u6gir")
raycast = NodePath("RayCast2D")
timer = NodePath("Timer")
[node name="RayCast2D" type="RayCast2D" parent="."]
exclude_parent = false
target_position = Vector2(0, 0)
collision_mask = 24
hit_from_inside = true
collide_with_areas = true
collide_with_bodies = false
[node name="Timer" type="Timer" parent="."]
wait_time = 90.0
one_shot = true