forked from team-sg/hero-mark-2
finally make boss-specific stats popup
This commit is contained in:
parent
4068e19857
commit
d7e29f43e8
2 changed files with 152 additions and 15 deletions
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=32 format=2]
|
||||
[gd_scene load_steps=34 format=2]
|
||||
|
||||
[ext_resource path="res://menus/level_select_scholar.gd" type="Script" id=1]
|
||||
[ext_resource path="res://graphics/level_select/world_map.png" type="Texture" id=2]
|
||||
|
@ -131,6 +131,58 @@ tracks/5/keys = {
|
|||
"update": 0,
|
||||
"values": [ Vector2( 1, 1 ) ]
|
||||
}
|
||||
tracks/6/type = "value"
|
||||
tracks/6/path = NodePath("BossCenter:visible")
|
||||
tracks/6/interp = 1
|
||||
tracks/6/loop_wrap = true
|
||||
tracks/6/imported = false
|
||||
tracks/6/enabled = true
|
||||
tracks/6/keys = {
|
||||
"times": PoolRealArray( 0 ),
|
||||
"transitions": PoolRealArray( 1 ),
|
||||
"update": 1,
|
||||
"values": [ false ]
|
||||
}
|
||||
tracks/7/type = "value"
|
||||
tracks/7/path = NodePath("BossCenter:rect_scale")
|
||||
tracks/7/interp = 1
|
||||
tracks/7/loop_wrap = true
|
||||
tracks/7/imported = false
|
||||
tracks/7/enabled = true
|
||||
tracks/7/keys = {
|
||||
"times": PoolRealArray( 0 ),
|
||||
"transitions": PoolRealArray( 1 ),
|
||||
"update": 0,
|
||||
"values": [ Vector2( 1, 1 ) ]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id=16]
|
||||
resource_name = "hide_boss"
|
||||
length = 0.4
|
||||
tracks/0/type = "value"
|
||||
tracks/0/path = NodePath("BossCenter:visible")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/keys = {
|
||||
"times": PoolRealArray( 0 ),
|
||||
"transitions": PoolRealArray( 1 ),
|
||||
"update": 1,
|
||||
"values": [ true ]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/path = NodePath("BossCenter:rect_scale")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/keys = {
|
||||
"times": PoolRealArray( 0, 0.2, 0.4 ),
|
||||
"transitions": PoolRealArray( 1, 1, 1 ),
|
||||
"update": 0,
|
||||
"values": [ Vector2( 1, 1 ), Vector2( 1, 0.04 ), Vector2( 0, 0.04 ) ]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id=11]
|
||||
resource_name = "hide_exit"
|
||||
|
@ -255,6 +307,34 @@ tracks/1/keys = {
|
|||
"values": [ Vector2( 1, 1 ), Vector2( 1, 0.02 ), Vector2( 0, 0.02 ) ]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id=17]
|
||||
resource_name = "show_boss"
|
||||
length = 0.4
|
||||
tracks/0/type = "value"
|
||||
tracks/0/path = NodePath("BossCenter:visible")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/keys = {
|
||||
"times": PoolRealArray( 0 ),
|
||||
"transitions": PoolRealArray( 1 ),
|
||||
"update": 1,
|
||||
"values": [ true ]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/path = NodePath("BossCenter:rect_scale")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/keys = {
|
||||
"times": PoolRealArray( 0, 0.2, 0.4 ),
|
||||
"transitions": PoolRealArray( 1, 1, 1 ),
|
||||
"update": 0,
|
||||
"values": [ Vector2( 0, 0.04 ), Vector2( 1, 0.04 ), Vector2( 1, 1 ) ]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id=12]
|
||||
resource_name = "show_exit"
|
||||
length = 0.4
|
||||
|
@ -765,11 +845,57 @@ position = Vector2( 31, 71 )
|
|||
texture = ExtResource( 14 )
|
||||
offset = Vector2( 5, 0 )
|
||||
|
||||
[node name="BossCenter" type="CenterContainer" parent="."]
|
||||
visible = false
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
rect_pivot_offset = Vector2( 128, 96 )
|
||||
|
||||
[node name="BossTimeBox" type="Panel" parent="BossCenter"]
|
||||
margin_left = 68.0
|
||||
margin_top = 71.0
|
||||
margin_right = 188.0
|
||||
margin_bottom = 121.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
rect_min_size = Vector2( 120, 50 )
|
||||
rect_pivot_offset = Vector2( 88, 51 )
|
||||
theme = ExtResource( 4 )
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="BossCenter/BossTimeBox"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = 8.0
|
||||
margin_top = 8.0
|
||||
margin_right = -8.0
|
||||
margin_bottom = -8.0
|
||||
alignment = 1
|
||||
|
||||
[node name="Header" type="Label" parent="BossCenter/BossTimeBox/VBoxContainer"]
|
||||
material = ExtResource( 6 )
|
||||
margin_top = 5.0
|
||||
margin_right = 104.0
|
||||
margin_bottom = 15.0
|
||||
theme = ExtResource( 4 )
|
||||
text = "Swiftest Slay:"
|
||||
align = 1
|
||||
|
||||
[node name="BossTime" type="Label" parent="BossCenter/BossTimeBox/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
material = ExtResource( 6 )
|
||||
margin_top = 19.0
|
||||
margin_right = 104.0
|
||||
margin_bottom = 29.0
|
||||
text = "0:00.00"
|
||||
align = 1
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
anims/RESET = SubResource( 6 )
|
||||
anims/hide_boss = SubResource( 16 )
|
||||
anims/hide_exit = SubResource( 11 )
|
||||
anims/hide_menu = SubResource( 13 )
|
||||
anims/hide_stats = SubResource( 8 )
|
||||
anims/show_boss = SubResource( 17 )
|
||||
anims/show_exit = SubResource( 12 )
|
||||
anims/show_menu = SubResource( 14 )
|
||||
anims/show_stats = SubResource( 7 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue