Доработка. Мигание при обновлении отметок целей

This commit is contained in:
sasha80
2025-03-31 11:54:24 +03:00
parent e5e8a6f937
commit 32b288db9d
4 changed files with 28 additions and 22 deletions

View File

@@ -1,9 +1,16 @@
[gd_scene load_steps=12 format=3 uid="uid://nl1vklubr5kr"]
[gd_scene load_steps=14 format=3 uid="uid://nl1vklubr5kr"]
[ext_resource type="Script" uid="uid://y4l1v8eqayr0" path="res://scenes/bip/bip.gd" id="1_h7l70"]
[ext_resource type="Texture2D" uid="uid://cp4bv6lh8w83k" path="res://data/bip.png" id="2_yjvg0"]
[ext_resource type="Shader" uid="uid://n6xe6w76iw3v" path="res://shaders/bip.gdshader" id="2_ybnsn"]
[ext_resource type="Shader" uid="uid://da53rd1r7al8l" path="res://shaders/tracked.gdshader" id="3_2a1qb"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_qq6yq"]
shader = ExtResource("2_ybnsn")
shader_parameter/tick_update = 0
shader_parameter/time_delta = 200
[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_xbpqf"]
[sub_resource type="Shader" id="Shader_60ho7"]
code = "shader_type canvas_item;
@@ -217,19 +224,11 @@ layout_mode = 3
anchors_preset = 0
script = ExtResource("1_h7l70")
[node name="bip" type="TextureButton" parent="."]
layout_direction = 1
layout_mode = 0
offset_left = 10.0
offset_top = 10.0
offset_right = 10.0
offset_bottom = 10.0
scale = Vector2(0.4, 0.4)
action_mode = 0
button_mask = 3
texture_normal = ExtResource("2_yjvg0")
ignore_texture_size = true
stretch_mode = 3
[node name="bip" type="Sprite2D" parent="."]
material = SubResource("ShaderMaterial_qq6yq")
position = Vector2(10, 10)
scale = Vector2(20, 20)
texture = SubResource("PlaceholderTexture2D_xbpqf")
[node name="selector" type="Sprite2D" parent="."]
material = SubResource("ShaderMaterial_fkqwb")
@@ -256,5 +255,3 @@ material = SubResource("ShaderMaterial_lkrha")
position = Vector2(10, 10)
scale = Vector2(26, 26)
texture = SubResource("PlaceholderTexture2D_svd33")
[connection signal="gui_input" from="bip" to="." method="_on_bip_gui_input"]