gui updated
This commit is contained in:
parent
c1f9f61b0c
commit
0c9ea6ed0f
14 changed files with 124 additions and 24 deletions
|
|
@ -5,17 +5,18 @@
|
|||
[ext_resource type="Texture2D" uid="uid://dfr5ofieigu5j" path="res://assets/sprites/gui/FastForward2.tres" id="3_fj838"]
|
||||
[ext_resource type="Texture2D" uid="uid://qgmsoocd4p1o" path="res://assets/sprites/gui/FastForward3.tres" id="4_2wmv1"]
|
||||
|
||||
[node name="FastForwardButton" type="TextureButton"]
|
||||
[node name="FastForwardButton" type="Button"]
|
||||
anchors_preset = -1
|
||||
anchor_right = 0.06
|
||||
anchor_bottom = 0.09
|
||||
anchor_right = 0.043
|
||||
anchor_bottom = 0.07
|
||||
offset_right = 0.199999
|
||||
size_flags_vertical = 4
|
||||
mouse_default_cursor_shape = 2
|
||||
texture_normal = ExtResource("1_ta3h7")
|
||||
stretch_mode = 0
|
||||
icon = ExtResource("1_ta3h7")
|
||||
script = ExtResource("2_wle4k")
|
||||
firstSpeed = ExtResource("1_ta3h7")
|
||||
secondSpeed = ExtResource("3_fj838")
|
||||
thirdSpeed = ExtResource("4_2wmv1")
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[connection signal="pressed" from="." to="." method="OnPressed"]
|
||||
|
|
|
|||
|
|
@ -2,12 +2,11 @@
|
|||
|
||||
[ext_resource type="Texture2D" uid="uid://dm0hjd67a6mva" path="res://assets/sprites/gui/Pause.tres" id="1_7k3tg"]
|
||||
|
||||
[node name="PauseButton" type="TextureButton"]
|
||||
[node name="PauseButton" type="Button"]
|
||||
anchors_preset = -1
|
||||
anchor_right = 0.067
|
||||
anchor_bottom = 0.1
|
||||
offset_right = -0.200001
|
||||
anchor_right = 0.043
|
||||
anchor_bottom = 0.07
|
||||
offset_right = 0.199999
|
||||
size_flags_vertical = 4
|
||||
mouse_default_cursor_shape = 2
|
||||
texture_normal = ExtResource("1_7k3tg")
|
||||
stretch_mode = 0
|
||||
icon = ExtResource("1_7k3tg")
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=11 format=3 uid="uid://cfnmspei3k4p7"]
|
||||
[gd_scene load_steps=14 format=3 uid="uid://cfnmspei3k4p7"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://ky35veswaytr" path="res://scenes/gui/sun_counter.tscn" id="1_le3od"]
|
||||
[ext_resource type="Theme" uid="uid://b8l285cjcgeyi" path="res://resources/GameStyle.tres" id="1_xf6ra"]
|
||||
|
|
@ -18,6 +18,42 @@ texture_margin_right = 4.0
|
|||
texture_margin_bottom = 4.0
|
||||
axis_stretch_horizontal = 1
|
||||
|
||||
[sub_resource type="Animation" id="Animation_ffxdv"]
|
||||
resource_name = "flash"
|
||||
length = 0.3
|
||||
step = 0.1
|
||||
tracks/0/type = "bezier"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:color:a")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"handle_modes": PackedInt32Array(0, 0),
|
||||
"points": PackedFloat32Array(0.25, -0.25, 0, 0, 0.00399721, 0, -0.2, 0.0038315, 0.25, 0),
|
||||
"times": PackedFloat32Array(0, 0.3)
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_c8fnk"]
|
||||
length = 0.001
|
||||
tracks/0/type = "bezier"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:color:a")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"handle_modes": PackedInt32Array(0),
|
||||
"points": PackedFloat32Array(0, -0.25, 0, 0.25, 0),
|
||||
"times": PackedFloat32Array(0)
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_myv2j"]
|
||||
_data = {
|
||||
"RESET": SubResource("Animation_c8fnk"),
|
||||
"flash": SubResource("Animation_ffxdv")
|
||||
}
|
||||
|
||||
[node name="RuntimeGUI" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
|
|
@ -84,8 +120,26 @@ layout_mode = 2
|
|||
size_flags_horizontal = 1
|
||||
size_flags_vertical = 4
|
||||
|
||||
[node name="FastForwardButton" parent="Hotbar" instance=ExtResource("4_66uy4")]
|
||||
[node name="FastForwardButton" parent="Hotbar" node_paths=PackedStringArray("flashAnimator") instance=ExtResource("4_66uy4")]
|
||||
layout_mode = 2
|
||||
flashAnimator = NodePath("../../FastForwardEffect/AnimationPlayer")
|
||||
|
||||
[node name="PauseButton" parent="Hotbar" instance=ExtResource("5_jyq78")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="FastForwardEffect" type="ColorRect" parent="."]
|
||||
z_index = 1
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
color = Color(0.000150553, 0.938204, 0.707471, 0)
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="FastForwardEffect"]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_myv2j")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue