Skip to content
This repository was archived by the owner on Sep 15, 2024. It is now read-only.

Commit 206518a

Browse files
Fix NotifyError animation for good
1 parent b9a95a5 commit 206518a

1 file changed

Lines changed: 45 additions & 35 deletions

File tree

Scenes/Prefabs/NotifyError.tscn

Lines changed: 45 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
[gd_scene load_steps=11 format=2]
1+
[gd_scene load_steps=9 format=2]
22

33
[ext_resource path="res://Fonts/Roboto/Roboto-Bold.ttf" type="DynamicFontData" id=1]
4-
[ext_resource path="res://Themes/Main.tres" type="Theme" id=2]
54
[ext_resource path="res://Scripts/Msc/UINotifyError.cs" type="Script" id=3]
65

7-
[sub_resource type="StyleBoxEmpty" id=9]
8-
96
[sub_resource type="StyleBoxEmpty" id=11]
107

118
[sub_resource type="StyleBoxFlat" id=5]
@@ -32,7 +29,7 @@ tracks/0/keys = {
3229
"times": PoolRealArray( 0, 1 ),
3330
"transitions": PoolRealArray( 1, 1 ),
3431
"update": 0,
35-
"values": [ Vector2( 0, 30 ), Vector2( 0, 0 ) ]
32+
"values": [ Vector2( 0, 25 ), Vector2( 0, 0 ) ]
3633
}
3734

3835
[sub_resource type="Animation" id=10]
@@ -47,7 +44,7 @@ tracks/0/keys = {
4744
"times": PoolRealArray( 0, 1 ),
4845
"transitions": PoolRealArray( 1, 1 ),
4946
"update": 0,
50-
"values": [ Vector2( 0, 0 ), Vector2( 0, 30 ) ]
47+
"values": [ Vector2( 0, 0 ), Vector2( 0, 25 ) ]
5148
}
5249

5350
[sub_resource type="Animation" id=8]
@@ -64,52 +61,65 @@ tracks/0/keys = {
6461
"update": 0,
6562
"values": [ Vector2( 0, 30 ) ]
6663
}
64+
tracks/1/type = "value"
65+
tracks/1/path = NodePath(".:margin_top")
66+
tracks/1/interp = 1
67+
tracks/1/loop_wrap = true
68+
tracks/1/imported = false
69+
tracks/1/enabled = true
70+
tracks/1/keys = {
71+
"times": PoolRealArray( 0 ),
72+
"transitions": PoolRealArray( 1 ),
73+
"update": 0,
74+
"values": [ 30.0 ]
75+
}
76+
tracks/2/type = "value"
77+
tracks/2/path = NodePath(".:margin_bottom")
78+
tracks/2/interp = 1
79+
tracks/2/loop_wrap = true
80+
tracks/2/imported = false
81+
tracks/2/enabled = true
82+
tracks/2/keys = {
83+
"times": PoolRealArray( 0 ),
84+
"transitions": PoolRealArray( 1 ),
85+
"update": 0,
86+
"values": [ 55.0 ]
87+
}
6788

68-
[node name="Control" type="PanelContainer"]
89+
[node name="NotifyError" type="PanelContainer"]
6990
anchor_left = 1.0
7091
anchor_top = 1.0
7192
anchor_right = 1.0
7293
anchor_bottom = 1.0
73-
margin_left = -75.0
74-
margin_top = -30.0
75-
rect_min_size = Vector2( 75, 30 )
76-
size_flags_horizontal = 8
77-
size_flags_vertical = 8
78-
theme = ExtResource( 2 )
79-
custom_styles/panel = SubResource( 9 )
80-
script = ExtResource( 3 )
81-
__meta__ = {
82-
"_edit_use_anchors_": false
83-
}
84-
NodePathErrorCount = NodePath("Pivot Bottom Right/Popup Error/Label")
85-
NodePathAnimationPlayer = NodePath("Pivot Bottom Right/Popup Error/AnimationPlayer")
86-
87-
[node name="Pivot Bottom Right" type="PanelContainer" parent="."]
88-
margin_right = 75.0
89-
margin_bottom = 30.0
94+
margin_left = -80.0
95+
margin_top = -25.0
96+
margin_bottom = 25.0
97+
rect_min_size = Vector2( 80, 35 )
9098
custom_styles/panel = SubResource( 11 )
99+
script = ExtResource( 3 )
100+
NodePathErrorCount = NodePath("Popup Error/Label")
101+
NodePathAnimationPlayer = NodePath("Popup Error/AnimationPlayer")
91102

92-
[node name="Popup Error" type="PanelContainer" parent="Pivot Bottom Right"]
93-
margin_right = 75.0
94-
margin_bottom = 30.0
103+
[node name="Popup Error" type="PanelContainer" parent="."]
104+
margin_top = 30.0
105+
margin_right = 80.0
106+
margin_bottom = 55.0
107+
size_flags_vertical = 8
95108
custom_styles/panel = SubResource( 5 )
96-
__meta__ = {
97-
"_edit_use_anchors_": false
98-
}
99109

100-
[node name="Label" type="Label" parent="Pivot Bottom Right/Popup Error"]
110+
[node name="Label" type="Label" parent="Popup Error"]
101111
margin_left = 3.0
102-
margin_top = 5.0
103-
margin_right = 72.0
104-
margin_bottom = 24.0
112+
margin_top = 3.0
113+
margin_right = 77.0
114+
margin_bottom = 22.0
105115
custom_fonts/font = SubResource( 2 )
106116
text = "23"
107117
align = 1
108118
__meta__ = {
109119
"_edit_use_anchors_": false
110120
}
111121

112-
[node name="AnimationPlayer" type="AnimationPlayer" parent="Pivot Bottom Right/Popup Error"]
122+
[node name="AnimationPlayer" type="AnimationPlayer" parent="Popup Error"]
113123
playback_speed = 3.0
114124
anims/Appear = SubResource( 7 )
115125
anims/Disappear = SubResource( 10 )

0 commit comments

Comments
 (0)