main menu background
This commit is contained in:
parent
18158fa8de
commit
55431a3311
@ -1,8 +1,9 @@
|
|||||||
extends Control
|
extends Spatial
|
||||||
|
|
||||||
export(NodePath) var startPath
|
export(NodePath) var startPath
|
||||||
|
|
||||||
var _start_button
|
var _start_button
|
||||||
|
onready var viewport = get_node("ViewportContainer/Viewport")
|
||||||
|
|
||||||
signal body_build()
|
signal body_build()
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
[gd_scene load_steps=7 format=2]
|
[gd_scene load_steps=8 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://UI/MainMenu.gd" type="Script" id=1]
|
[ext_resource path="res://UI/MainMenu.gd" type="Script" id=1]
|
||||||
[ext_resource path="res://Resources/Fonts/MenuHeader.tres" type="DynamicFont" id=2]
|
[ext_resource path="res://Resources/Fonts/MenuHeader.tres" type="DynamicFont" id=2]
|
||||||
@ -6,15 +6,40 @@
|
|||||||
[ext_resource path="res://Resources/Styles/ButtonHoverStyle.tres" type="StyleBox" id=4]
|
[ext_resource path="res://Resources/Styles/ButtonHoverStyle.tres" type="StyleBox" id=4]
|
||||||
[ext_resource path="res://Resources/Styles/ButtonPressedStyle.tres" type="StyleBox" id=5]
|
[ext_resource path="res://Resources/Styles/ButtonPressedStyle.tres" type="StyleBox" id=5]
|
||||||
[ext_resource path="res://Resources/Styles/ButtonNormalStyle.tres" type="StyleBox" id=6]
|
[ext_resource path="res://Resources/Styles/ButtonNormalStyle.tres" type="StyleBox" id=6]
|
||||||
|
[ext_resource path="res://Ingame/Arena.tscn" type="PackedScene" id=7]
|
||||||
|
|
||||||
[node name="MainMenu" type="Control"]
|
[node name="MainMenu" type="Spatial"]
|
||||||
|
script = ExtResource( 1 )
|
||||||
|
startPath = NodePath("MarginContainer2/VBoxContainer/Start")
|
||||||
|
|
||||||
|
[node name="View" type="MarginContainer" parent="."]
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
script = ExtResource( 1 )
|
size_flags_horizontal = 3
|
||||||
|
size_flags_vertical = 3
|
||||||
__meta__ = {
|
__meta__ = {
|
||||||
"_edit_use_anchors_": false
|
"_edit_use_anchors_": false
|
||||||
}
|
}
|
||||||
startPath = NodePath("MarginContainer2/VBoxContainer/Start")
|
|
||||||
|
[node name="ViewportContainer" type="ViewportContainer" parent="View"]
|
||||||
|
margin_right = 1024.0
|
||||||
|
margin_bottom = 600.0
|
||||||
|
rect_min_size = Vector2( 200, 40 )
|
||||||
|
size_flags_horizontal = 3
|
||||||
|
size_flags_vertical = 3
|
||||||
|
stretch = true
|
||||||
|
__meta__ = {
|
||||||
|
"_edit_use_anchors_": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[node name="Viewport" type="Viewport" parent="View/ViewportContainer"]
|
||||||
|
size = Vector2( 1024, 600 )
|
||||||
|
handle_input_locally = false
|
||||||
|
render_target_update_mode = 3
|
||||||
|
|
||||||
|
[node name="Camera" type="Camera" parent="View/ViewportContainer/Viewport"]
|
||||||
|
transform = Transform( -1.62921e-07, -0.604599, 0.79653, 0, 0.79653, 0.604599, -1, 9.85017e-08, -1.29771e-07, 30, 25, 0 )
|
||||||
|
fov = 63.748
|
||||||
|
|
||||||
[node name="MarginContainer" type="MarginContainer" parent="."]
|
[node name="MarginContainer" type="MarginContainer" parent="."]
|
||||||
anchor_left = 0.5
|
anchor_left = 0.5
|
||||||
@ -32,6 +57,8 @@ __meta__ = {
|
|||||||
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
|
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
|
||||||
margin_right = 1024.0
|
margin_right = 1024.0
|
||||||
margin_bottom = 600.0
|
margin_bottom = 600.0
|
||||||
|
size_flags_horizontal = 3
|
||||||
|
size_flags_vertical = 3
|
||||||
|
|
||||||
[node name="GameName" type="Label" parent="MarginContainer/VBoxContainer"]
|
[node name="GameName" type="Label" parent="MarginContainer/VBoxContainer"]
|
||||||
margin_right = 1024.0
|
margin_right = 1024.0
|
||||||
@ -40,7 +67,8 @@ rect_min_size = Vector2( 0, 250 )
|
|||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
size_flags_vertical = 3
|
size_flags_vertical = 3
|
||||||
custom_fonts/font = ExtResource( 2 )
|
custom_fonts/font = ExtResource( 2 )
|
||||||
text = "D-d-d-d-d-duell"
|
text = "Body-Part-Fight-Repair-
|
||||||
|
Impker-Arena-Madness"
|
||||||
align = 1
|
align = 1
|
||||||
valign = 2
|
valign = 2
|
||||||
|
|
||||||
@ -116,5 +144,7 @@ rect_min_size = Vector2( 0, 35 )
|
|||||||
__meta__ = {
|
__meta__ = {
|
||||||
"_edit_use_anchors_": false
|
"_edit_use_anchors_": false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[node name="Arena" parent="." instance=ExtResource( 7 )]
|
||||||
[connection signal="pressed" from="MarginContainer2/VBoxContainer/Start" to="." method="_on_Start_pressed"]
|
[connection signal="pressed" from="MarginContainer2/VBoxContainer/Start" to="." method="_on_Start_pressed"]
|
||||||
[connection signal="pressed" from="MarginContainer2/VBoxContainer/Exit" to="." method="_on_Exit_pressed"]
|
[connection signal="pressed" from="MarginContainer2/VBoxContainer/Exit" to="." method="_on_Exit_pressed"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user