forked from team-sg/hero-mark-2
more menu stuf
This commit is contained in:
parent
a5f4c34236
commit
4e92501432
12 changed files with 203 additions and 12 deletions
|
@ -1,18 +1,21 @@
|
|||
[gd_scene load_steps=8 format=2]
|
||||
[gd_scene load_steps=13 format=2]
|
||||
|
||||
[ext_resource path="res://ui/theme.tres" type="Theme" id=1]
|
||||
[ext_resource path="res://shaders/wibble_wobble.gdshader" type="Shader" id=2]
|
||||
[ext_resource path="res://graphics/hud/sg_menu.png" type="Texture" id=3]
|
||||
[ext_resource path="res://graphics/hud/pause_arrow.png" type="Texture" id=4]
|
||||
[ext_resource path="res://menus/main_menu.gd" type="Script" id=5]
|
||||
[ext_resource path="res://shaders/ska_plane.gdshader" type="Shader" id=6]
|
||||
[ext_resource path="res://graphics/hud/sg_menu_blink.png" type="Texture" id=7]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id=2]
|
||||
shader = ExtResource( 6 )
|
||||
shader_param/color_1 = Color( 1, 0.835294, 0.619608, 1 )
|
||||
shader_param/color_2 = Color( 1, 0.478431, 0.219608, 1 )
|
||||
shader_param/checker_size = Vector2( 16, 16 )
|
||||
shader_param/cycle_speed = Vector2( 12, 0 )
|
||||
shader_param/pan_speed = Vector2( 0, 0 )
|
||||
shader_param/cycle_speed = Vector2( 12, 0 )
|
||||
shader_param/cycle_alternation = Vector2( 0, 0 )
|
||||
shader_param/uv_transform = Transform( 1, -2, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0 )
|
||||
|
||||
[sub_resource type="ShaderMaterial" id=3]
|
||||
|
@ -20,10 +23,53 @@ shader = ExtResource( 6 )
|
|||
shader_param/color_1 = Color( 0.62, 0.797333, 1, 1 )
|
||||
shader_param/color_2 = Color( 0.22, 0.428, 1, 1 )
|
||||
shader_param/checker_size = Vector2( 16, 16 )
|
||||
shader_param/cycle_speed = Vector2( 24, 0 )
|
||||
shader_param/pan_speed = Vector2( 0, 0 )
|
||||
shader_param/cycle_speed = Vector2( 24, 0 )
|
||||
shader_param/cycle_alternation = Vector2( 0, 0 )
|
||||
shader_param/uv_transform = Transform( 1, 1, 0, 2, 1, 0, 0, 0, 1, 0, 0, 0 )
|
||||
|
||||
[sub_resource type="ShaderMaterial" id=6]
|
||||
shader = ExtResource( 2 )
|
||||
shader_param/speed = Vector2( 0, 4 )
|
||||
shader_param/ammount = Vector2( 0, 1 )
|
||||
shader_param/offset = Vector2( 0, 1 )
|
||||
|
||||
[sub_resource type="ShaderMaterial" id=4]
|
||||
shader = ExtResource( 2 )
|
||||
shader_param/speed = Vector2( 4, 8 )
|
||||
shader_param/ammount = Vector2( 1, 1 )
|
||||
shader_param/offset = Vector2( 0, 0 )
|
||||
|
||||
[sub_resource type="Animation" id=5]
|
||||
resource_name = "blink"
|
||||
length = 5.0
|
||||
loop = true
|
||||
step = 0.05
|
||||
tracks/0/type = "value"
|
||||
tracks/0/path = NodePath("SG/Eyes:visible")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/keys = {
|
||||
"times": PoolRealArray( 0, 4.3, 4.55 ),
|
||||
"transitions": PoolRealArray( 1, 1, 1 ),
|
||||
"update": 1,
|
||||
"values": [ false, true, false ]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/path = NodePath("SG/Eyes:frame")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/keys = {
|
||||
"times": PoolRealArray( 4.3, 4.35, 4.4, 4.45, 4.5 ),
|
||||
"transitions": PoolRealArray( 1, 1, 1, 1, 1 ),
|
||||
"update": 1,
|
||||
"values": [ 0, 1, 2, 1, 0 ]
|
||||
}
|
||||
|
||||
[node name="MainMenu" type="Node"]
|
||||
script = ExtResource( 5 )
|
||||
|
||||
|
@ -39,39 +85,50 @@ anchor_right = 1.0
|
|||
anchor_bottom = 1.0
|
||||
margin_bottom = -56.0
|
||||
|
||||
[node name="TextureRect2" type="TextureRect" parent="."]
|
||||
[node name="SG" type="TextureRect" parent="."]
|
||||
margin_left = 176.0
|
||||
margin_top = 40.0
|
||||
margin_right = 242.0
|
||||
margin_bottom = 187.0
|
||||
texture = ExtResource( 3 )
|
||||
|
||||
[node name="Eyes" type="Sprite" parent="SG"]
|
||||
visible = false
|
||||
position = Vector2( 33, 38 )
|
||||
texture = ExtResource( 7 )
|
||||
hframes = 3
|
||||
|
||||
[node name="Panel" type="Panel" parent="."]
|
||||
material = SubResource( 6 )
|
||||
margin_left = 16.0
|
||||
margin_top = 32.0
|
||||
margin_right = 136.0
|
||||
margin_bottom = 112.0
|
||||
margin_bottom = 120.0
|
||||
theme = ExtResource( 1 )
|
||||
|
||||
[node name="Body" type="Label" parent="Panel"]
|
||||
material = SubResource( 6 )
|
||||
margin_left = 16.0
|
||||
margin_top = 8.0
|
||||
margin_right = 112.0
|
||||
margin_bottom = 57.0
|
||||
margin_bottom = 80.0
|
||||
text = "continue
|
||||
file select
|
||||
marathon mode
|
||||
augmentations
|
||||
options"
|
||||
options
|
||||
exit"
|
||||
|
||||
[node name="GreyedContinue" type="Label" parent="Panel/Body"]
|
||||
visible = false
|
||||
material = SubResource( 6 )
|
||||
margin_right = 56.0
|
||||
margin_bottom = 10.0
|
||||
custom_colors/font_color = Color( 0.690196, 0.690196, 0.690196, 1 )
|
||||
text = "Continue"
|
||||
|
||||
[node name="Continue" type="TextureButton" parent="Panel"]
|
||||
material = SubResource( 4 )
|
||||
margin_left = 8.0
|
||||
margin_top = 9.0
|
||||
margin_right = 16.0
|
||||
|
@ -81,6 +138,7 @@ focus_neighbour_bottom = NodePath("../FileSelect")
|
|||
texture_focused = ExtResource( 4 )
|
||||
|
||||
[node name="FileSelect" type="TextureButton" parent="Panel"]
|
||||
material = SubResource( 4 )
|
||||
margin_left = 8.0
|
||||
margin_top = 22.0
|
||||
margin_right = 16.0
|
||||
|
@ -90,6 +148,7 @@ focus_neighbour_bottom = NodePath("../MarathonMode")
|
|||
texture_focused = ExtResource( 4 )
|
||||
|
||||
[node name="MarathonMode" type="TextureButton" parent="Panel"]
|
||||
material = SubResource( 4 )
|
||||
margin_left = 8.0
|
||||
margin_top = 35.0
|
||||
margin_right = 16.0
|
||||
|
@ -99,6 +158,7 @@ focus_neighbour_bottom = NodePath("../Augmentations")
|
|||
texture_focused = ExtResource( 4 )
|
||||
|
||||
[node name="Augmentations" type="TextureButton" parent="Panel"]
|
||||
material = SubResource( 4 )
|
||||
margin_left = 8.0
|
||||
margin_top = 48.0
|
||||
margin_right = 16.0
|
||||
|
@ -108,10 +168,29 @@ focus_neighbour_bottom = NodePath("../Options")
|
|||
texture_focused = ExtResource( 4 )
|
||||
|
||||
[node name="Options" type="TextureButton" parent="Panel"]
|
||||
material = SubResource( 4 )
|
||||
margin_left = 8.0
|
||||
margin_top = 61.0
|
||||
margin_right = 16.0
|
||||
margin_bottom = 69.0
|
||||
focus_neighbour_top = NodePath("../Augmentations")
|
||||
focus_neighbour_bottom = NodePath("../Exit")
|
||||
texture_focused = ExtResource( 4 )
|
||||
|
||||
[node name="Exit" type="TextureButton" parent="Panel"]
|
||||
material = SubResource( 4 )
|
||||
margin_left = 8.0
|
||||
margin_top = 74.0
|
||||
margin_right = 16.0
|
||||
margin_bottom = 82.0
|
||||
focus_neighbour_top = NodePath("../Options")
|
||||
focus_neighbour_bottom = NodePath("../Continue")
|
||||
texture_focused = ExtResource( 4 )
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
autoplay = "blink"
|
||||
anims/blink = SubResource( 5 )
|
||||
|
||||
[connection signal="button_down" from="Panel/Continue" to="." method="_on_Continue_button_down"]
|
||||
[connection signal="button_down" from="Panel/FileSelect" to="." method="_on_FileSelect_button_down"]
|
||||
[connection signal="button_down" from="Panel/Exit" to="." method="_on_Exit_button_down"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue