forked from team-sg/hero-mark-2
yipeegit statusgit status
This commit is contained in:
parent
0cfe581493
commit
28fb9adf28
2 changed files with 119 additions and 9 deletions
|
@ -1,6 +1,7 @@
|
||||||
extends Control
|
extends Control
|
||||||
|
|
||||||
export var travel_time: float = 1.0
|
export var travel_time: float = 1.0
|
||||||
|
export var can_menu: bool = true
|
||||||
|
|
||||||
var selected_level: int = 0
|
var selected_level: int = 0
|
||||||
var made_selection: bool = false
|
var made_selection: bool = false
|
||||||
|
@ -96,7 +97,8 @@ func _input(event: InputEvent) -> void:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
func _gui_input(event: InputEvent) -> void:
|
func _gui_input(event: InputEvent) -> void:
|
||||||
if event.is_action_pressed("ui_cancel") or event.is_action_pressed("pause") && $"%MenuPopup".visible == false:
|
if event.is_action_pressed("ui_cancel") or event.is_action_pressed("pause") and $"%MenuPopup".visible == false:
|
||||||
|
if can_menu:
|
||||||
animation_player.play("show_menu")
|
animation_player.play("show_menu")
|
||||||
if not made_selection: # player is walking around
|
if not made_selection: # player is walking around
|
||||||
if event.is_action_pressed("ui_accept"):
|
if event.is_action_pressed("ui_accept"):
|
||||||
|
|
|
@ -133,6 +133,18 @@ tracks/5/keys = {
|
||||||
"update": 0,
|
"update": 0,
|
||||||
"values": [ Vector2( 1, 1 ) ]
|
"values": [ Vector2( 1, 1 ) ]
|
||||||
}
|
}
|
||||||
|
tracks/6/type = "value"
|
||||||
|
tracks/6/path = NodePath(".:can_menu")
|
||||||
|
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": [ true ]
|
||||||
|
}
|
||||||
|
|
||||||
[sub_resource type="Animation" id=16]
|
[sub_resource type="Animation" id=16]
|
||||||
resource_name = "hide_boss"
|
resource_name = "hide_boss"
|
||||||
|
@ -161,6 +173,18 @@ tracks/1/keys = {
|
||||||
"update": 0,
|
"update": 0,
|
||||||
"values": [ Vector2( 1, 1 ), Vector2( 1, 0.04 ), Vector2( 0, 0.04 ) ]
|
"values": [ Vector2( 1, 1 ), Vector2( 1, 0.04 ), Vector2( 0, 0.04 ) ]
|
||||||
}
|
}
|
||||||
|
tracks/2/type = "value"
|
||||||
|
tracks/2/path = NodePath(".:can_menu")
|
||||||
|
tracks/2/interp = 1
|
||||||
|
tracks/2/loop_wrap = true
|
||||||
|
tracks/2/imported = false
|
||||||
|
tracks/2/enabled = true
|
||||||
|
tracks/2/keys = {
|
||||||
|
"times": PoolRealArray( 0.4 ),
|
||||||
|
"transitions": PoolRealArray( 1 ),
|
||||||
|
"update": 1,
|
||||||
|
"values": [ true ]
|
||||||
|
}
|
||||||
|
|
||||||
[sub_resource type="Animation" id=11]
|
[sub_resource type="Animation" id=11]
|
||||||
resource_name = "hide_exit"
|
resource_name = "hide_exit"
|
||||||
|
@ -214,6 +238,18 @@ tracks/3/keys = {
|
||||||
"transitions": PoolRealArray( ),
|
"transitions": PoolRealArray( ),
|
||||||
"values": [ ]
|
"values": [ ]
|
||||||
}
|
}
|
||||||
|
tracks/4/type = "value"
|
||||||
|
tracks/4/path = NodePath(".:can_menu")
|
||||||
|
tracks/4/interp = 1
|
||||||
|
tracks/4/loop_wrap = true
|
||||||
|
tracks/4/imported = false
|
||||||
|
tracks/4/enabled = true
|
||||||
|
tracks/4/keys = {
|
||||||
|
"times": PoolRealArray( 0.4 ),
|
||||||
|
"transitions": PoolRealArray( 1 ),
|
||||||
|
"update": 1,
|
||||||
|
"values": [ true ]
|
||||||
|
}
|
||||||
|
|
||||||
[sub_resource type="Animation" id=13]
|
[sub_resource type="Animation" id=13]
|
||||||
resource_name = "hide_menu"
|
resource_name = "hide_menu"
|
||||||
|
@ -256,6 +292,18 @@ tracks/2/keys = {
|
||||||
"method": "grab_focus"
|
"method": "grab_focus"
|
||||||
} ]
|
} ]
|
||||||
}
|
}
|
||||||
|
tracks/3/type = "value"
|
||||||
|
tracks/3/path = NodePath(".:can_menu")
|
||||||
|
tracks/3/interp = 1
|
||||||
|
tracks/3/loop_wrap = true
|
||||||
|
tracks/3/imported = false
|
||||||
|
tracks/3/enabled = true
|
||||||
|
tracks/3/keys = {
|
||||||
|
"times": PoolRealArray( 0.4 ),
|
||||||
|
"transitions": PoolRealArray( 1 ),
|
||||||
|
"update": 1,
|
||||||
|
"values": [ true ]
|
||||||
|
}
|
||||||
|
|
||||||
[sub_resource type="Animation" id=8]
|
[sub_resource type="Animation" id=8]
|
||||||
resource_name = "hide_stats"
|
resource_name = "hide_stats"
|
||||||
|
@ -284,6 +332,18 @@ tracks/1/keys = {
|
||||||
"update": 0,
|
"update": 0,
|
||||||
"values": [ Vector2( 1, 1 ), Vector2( 1, 0.02 ), Vector2( 0, 0.02 ) ]
|
"values": [ Vector2( 1, 1 ), Vector2( 1, 0.02 ), Vector2( 0, 0.02 ) ]
|
||||||
}
|
}
|
||||||
|
tracks/2/type = "value"
|
||||||
|
tracks/2/path = NodePath(".:can_menu")
|
||||||
|
tracks/2/interp = 1
|
||||||
|
tracks/2/loop_wrap = true
|
||||||
|
tracks/2/imported = false
|
||||||
|
tracks/2/enabled = true
|
||||||
|
tracks/2/keys = {
|
||||||
|
"times": PoolRealArray( 0.4 ),
|
||||||
|
"transitions": PoolRealArray( 1 ),
|
||||||
|
"update": 1,
|
||||||
|
"values": [ true ]
|
||||||
|
}
|
||||||
|
|
||||||
[sub_resource type="Animation" id=17]
|
[sub_resource type="Animation" id=17]
|
||||||
resource_name = "show_boss"
|
resource_name = "show_boss"
|
||||||
|
@ -312,6 +372,18 @@ tracks/1/keys = {
|
||||||
"update": 0,
|
"update": 0,
|
||||||
"values": [ Vector2( 0, 0.04 ), Vector2( 1, 0.04 ), Vector2( 1, 1 ) ]
|
"values": [ Vector2( 0, 0.04 ), Vector2( 1, 0.04 ), Vector2( 1, 1 ) ]
|
||||||
}
|
}
|
||||||
|
tracks/2/type = "value"
|
||||||
|
tracks/2/path = NodePath(".:can_menu")
|
||||||
|
tracks/2/interp = 1
|
||||||
|
tracks/2/loop_wrap = true
|
||||||
|
tracks/2/imported = false
|
||||||
|
tracks/2/enabled = true
|
||||||
|
tracks/2/keys = {
|
||||||
|
"times": PoolRealArray( 0 ),
|
||||||
|
"transitions": PoolRealArray( 1 ),
|
||||||
|
"update": 1,
|
||||||
|
"values": [ false ]
|
||||||
|
}
|
||||||
|
|
||||||
[sub_resource type="Animation" id=12]
|
[sub_resource type="Animation" id=12]
|
||||||
resource_name = "show_exit"
|
resource_name = "show_exit"
|
||||||
|
@ -354,6 +426,18 @@ tracks/2/keys = {
|
||||||
"method": "grab_focus"
|
"method": "grab_focus"
|
||||||
} ]
|
} ]
|
||||||
}
|
}
|
||||||
|
tracks/3/type = "value"
|
||||||
|
tracks/3/path = NodePath(".:can_menu")
|
||||||
|
tracks/3/interp = 1
|
||||||
|
tracks/3/loop_wrap = true
|
||||||
|
tracks/3/imported = false
|
||||||
|
tracks/3/enabled = true
|
||||||
|
tracks/3/keys = {
|
||||||
|
"times": PoolRealArray( 0 ),
|
||||||
|
"transitions": PoolRealArray( 1 ),
|
||||||
|
"update": 1,
|
||||||
|
"values": [ false ]
|
||||||
|
}
|
||||||
|
|
||||||
[sub_resource type="Animation" id=14]
|
[sub_resource type="Animation" id=14]
|
||||||
resource_name = "show_menu"
|
resource_name = "show_menu"
|
||||||
|
@ -396,6 +480,18 @@ tracks/2/keys = {
|
||||||
"method": "grab_focus"
|
"method": "grab_focus"
|
||||||
} ]
|
} ]
|
||||||
}
|
}
|
||||||
|
tracks/3/type = "value"
|
||||||
|
tracks/3/path = NodePath(".:can_menu")
|
||||||
|
tracks/3/interp = 1
|
||||||
|
tracks/3/loop_wrap = true
|
||||||
|
tracks/3/imported = false
|
||||||
|
tracks/3/enabled = true
|
||||||
|
tracks/3/keys = {
|
||||||
|
"times": PoolRealArray( 0 ),
|
||||||
|
"transitions": PoolRealArray( 1 ),
|
||||||
|
"update": 1,
|
||||||
|
"values": [ false ]
|
||||||
|
}
|
||||||
|
|
||||||
[sub_resource type="Animation" id=7]
|
[sub_resource type="Animation" id=7]
|
||||||
resource_name = "show_stats"
|
resource_name = "show_stats"
|
||||||
|
@ -424,6 +520,18 @@ tracks/1/keys = {
|
||||||
"update": 0,
|
"update": 0,
|
||||||
"values": [ Vector2( 0, 0.02 ), Vector2( 1, 0.02 ), Vector2( 1, 1 ) ]
|
"values": [ Vector2( 0, 0.02 ), Vector2( 1, 0.02 ), Vector2( 1, 1 ) ]
|
||||||
}
|
}
|
||||||
|
tracks/2/type = "value"
|
||||||
|
tracks/2/path = NodePath(".:can_menu")
|
||||||
|
tracks/2/interp = 1
|
||||||
|
tracks/2/loop_wrap = true
|
||||||
|
tracks/2/imported = false
|
||||||
|
tracks/2/enabled = true
|
||||||
|
tracks/2/keys = {
|
||||||
|
"times": PoolRealArray( 0 ),
|
||||||
|
"transitions": PoolRealArray( 1 ),
|
||||||
|
"update": 1,
|
||||||
|
"values": [ false ]
|
||||||
|
}
|
||||||
|
|
||||||
[sub_resource type="Animation" id=18]
|
[sub_resource type="Animation" id=18]
|
||||||
length = 0.001
|
length = 0.001
|
||||||
|
@ -1200,9 +1308,9 @@ texture = ExtResource( 14 )
|
||||||
offset = Vector2( 5, 0 )
|
offset = Vector2( 5, 0 )
|
||||||
|
|
||||||
[node name="BossCenter" type="Control" parent="."]
|
[node name="BossCenter" type="Control" parent="."]
|
||||||
visible = false
|
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
|
rect_scale = Vector2( 1e-05, 0.04 )
|
||||||
rect_pivot_offset = Vector2( 128, 96 )
|
rect_pivot_offset = Vector2( 128, 96 )
|
||||||
|
|
||||||
[node name="PressStartBoss" type="Label" parent="BossCenter"]
|
[node name="PressStartBoss" type="Label" parent="BossCenter"]
|
||||||
|
@ -1449,25 +1557,25 @@ margin_bottom = 99.0
|
||||||
[node name="VBoxContainer" type="VBoxContainer" parent="ExitPopup/PanelContainer"]
|
[node name="VBoxContainer" type="VBoxContainer" parent="ExitPopup/PanelContainer"]
|
||||||
margin_left = 3.0
|
margin_left = 3.0
|
||||||
margin_top = 3.0
|
margin_top = 3.0
|
||||||
margin_right = 116.0
|
margin_right = 108.0
|
||||||
margin_bottom = 27.0
|
margin_bottom = 27.0
|
||||||
|
|
||||||
[node name="Label" type="Label" parent="ExitPopup/PanelContainer/VBoxContainer"]
|
[node name="Label" type="Label" parent="ExitPopup/PanelContainer/VBoxContainer"]
|
||||||
margin_right = 113.0
|
margin_right = 105.0
|
||||||
margin_bottom = 10.0
|
margin_bottom = 10.0
|
||||||
text = "Return to menu?"
|
text = "Return to menu?"
|
||||||
align = 1
|
align = 1
|
||||||
|
|
||||||
[node name="HBoxContainer" type="HBoxContainer" parent="ExitPopup/PanelContainer/VBoxContainer"]
|
[node name="HBoxContainer" type="HBoxContainer" parent="ExitPopup/PanelContainer/VBoxContainer"]
|
||||||
margin_top = 14.0
|
margin_top = 14.0
|
||||||
margin_right = 113.0
|
margin_right = 105.0
|
||||||
margin_bottom = 24.0
|
margin_bottom = 24.0
|
||||||
custom_constants/separation = 8
|
custom_constants/separation = 8
|
||||||
alignment = 1
|
alignment = 1
|
||||||
|
|
||||||
[node name="StayHere" type="Button" parent="ExitPopup/PanelContainer/VBoxContainer/HBoxContainer"]
|
[node name="StayHere" type="Button" parent="ExitPopup/PanelContainer/VBoxContainer/HBoxContainer"]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
margin_right = 49.0
|
margin_right = 48.0
|
||||||
margin_bottom = 10.0
|
margin_bottom = 10.0
|
||||||
focus_neighbour_top = NodePath(".")
|
focus_neighbour_top = NodePath(".")
|
||||||
focus_neighbour_bottom = NodePath(".")
|
focus_neighbour_bottom = NodePath(".")
|
||||||
|
@ -1475,8 +1583,8 @@ size_flags_horizontal = 3
|
||||||
text = "NO"
|
text = "NO"
|
||||||
|
|
||||||
[node name="ExitMenu" type="Button" parent="ExitPopup/PanelContainer/VBoxContainer/HBoxContainer"]
|
[node name="ExitMenu" type="Button" parent="ExitPopup/PanelContainer/VBoxContainer/HBoxContainer"]
|
||||||
margin_left = 57.0
|
margin_left = 56.0
|
||||||
margin_right = 113.0
|
margin_right = 105.0
|
||||||
margin_bottom = 10.0
|
margin_bottom = 10.0
|
||||||
focus_neighbour_top = NodePath(".")
|
focus_neighbour_top = NodePath(".")
|
||||||
focus_neighbour_bottom = NodePath(".")
|
focus_neighbour_bottom = NodePath(".")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue