470 lines
11 KiB
Text
470 lines
11 KiB
Text
[gd_scene load_steps=13 format=2]
|
|
|
|
[ext_resource path="res://misc/fonts/font_buttons.tres" type="DynamicFont" id=1]
|
|
[ext_resource path="res://misc/fonts/field_labels.tres" type="DynamicFont" id=2]
|
|
[ext_resource path="res://misc/fonts/fieldfonts.tres" type="DynamicFont" id=3]
|
|
[ext_resource path="res://scripts/menu.gd" type="Script" id=4]
|
|
[ext_resource path="res://Sounds/mus_test.ogg" type="AudioStream" id=5]
|
|
[ext_resource path="res://Backgrounds/bkMountains.png" type="Texture" id=6]
|
|
[ext_resource path="res://misc/panel_mainmenu.tres" type="StyleBox" id=7]
|
|
[ext_resource path="res://Backgrounds/bk_clouds.png" type="Texture" id=8]
|
|
[ext_resource path="res://Sprites/polo_sprites/poloright_0.png" type="Texture" id=9]
|
|
[ext_resource path="res://misc/fonts/upheavtt.tres" type="DynamicFontData" id=10]
|
|
|
|
[sub_resource type="DynamicFont" id=1]
|
|
outline_size = 1
|
|
outline_color = Color( 1, 0.0117647, 0.0117647, 1 )
|
|
font_data = ExtResource( 10 )
|
|
|
|
[sub_resource type="Theme" id=2]
|
|
default_font = ExtResource( 3 )
|
|
|
|
[node name="Menu" type="Control"]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
script = ExtResource( 4 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Camera2D" type="Camera2D" parent="."]
|
|
anchor_mode = 0
|
|
current = true
|
|
smoothing_enabled = true
|
|
smoothing_speed = 10.0
|
|
|
|
[node name="Header2" type="Label" parent="."]
|
|
margin_right = 158.0
|
|
margin_bottom = 11.0
|
|
rect_scale = Vector2( 4, 4 )
|
|
custom_fonts/font = ExtResource( 2 )
|
|
text = "POLO"
|
|
align = 1
|
|
valign = 1
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="stars" type="Sprite" parent="."]
|
|
show_behind_parent = true
|
|
position = Vector2( 1101, 368 )
|
|
scale = Vector2( 1.5, 1.5 )
|
|
texture = ExtResource( 8 )
|
|
region_enabled = true
|
|
region_rect = Rect2( 0, 0, 1500, 500 )
|
|
__meta__ = {
|
|
"_edit_lock_": true,
|
|
"_editor_description_": "50"
|
|
}
|
|
|
|
[node name="mountains" type="Sprite" parent="."]
|
|
show_behind_parent = true
|
|
position = Vector2( 1101, 520 )
|
|
scale = Vector2( 1.5, 1.5 )
|
|
texture = ExtResource( 6 )
|
|
region_enabled = true
|
|
region_rect = Rect2( 0, 0, 1500, 500 )
|
|
__meta__ = {
|
|
"_edit_lock_": true
|
|
}
|
|
|
|
[node name="music" type="AudioStreamPlayer" parent="."]
|
|
stream = ExtResource( 5 )
|
|
autoplay = true
|
|
|
|
[node name="Header3" type="Label" parent="."]
|
|
margin_left = 304.0
|
|
margin_top = 32.0
|
|
margin_right = 400.0
|
|
margin_bottom = 54.0
|
|
rect_scale = Vector2( 0.75, 0.75 )
|
|
custom_fonts/font = ExtResource( 2 )
|
|
text = "godot edition"
|
|
align = 1
|
|
valign = 1
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="GeneralPanel" type="Panel" parent="."]
|
|
anchor_left = 0.0125
|
|
anchor_top = 0.0888889
|
|
anchor_right = 0.0125
|
|
anchor_bottom = 0.0888889
|
|
margin_left = 8.0
|
|
margin_top = 40.0
|
|
margin_right = 616.0
|
|
margin_bottom = 139.0
|
|
custom_styles/panel = ExtResource( 7 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Label" type="Label" parent="GeneralPanel"]
|
|
margin_left = 8.0
|
|
margin_right = 600.0
|
|
margin_bottom = 22.0
|
|
custom_fonts/font = ExtResource( 2 )
|
|
text = "General"
|
|
align = 1
|
|
valign = 1
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Label2" type="Label" parent="GeneralPanel"]
|
|
anchor_top = 1.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
margin_top = -43.0
|
|
margin_bottom = -10.0
|
|
custom_fonts/font = SubResource( 1 )
|
|
text = "There isnt much gameplay to this.
|
|
Its primary objective is learning netplay via godot"
|
|
align = 1
|
|
valign = 1
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="label_port" type="Label" parent="GeneralPanel"]
|
|
margin_left = 8.0
|
|
margin_top = 24.0
|
|
margin_right = 64.0
|
|
margin_bottom = 46.0
|
|
custom_fonts/font = ExtResource( 2 )
|
|
text = "Name:"
|
|
align = 2
|
|
valign = 1
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="player_name" type="LineEdit" parent="GeneralPanel"]
|
|
margin_left = 72.0
|
|
margin_top = 24.0
|
|
margin_right = 303.0
|
|
margin_bottom = 48.0
|
|
custom_fonts/font = ExtResource( 3 )
|
|
text = "Player1"
|
|
max_length = 32
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="singleplayer" type="Button" parent="GeneralPanel"]
|
|
anchor_left = 0.5
|
|
anchor_top = 1.0
|
|
anchor_right = 0.5
|
|
anchor_bottom = 1.0
|
|
margin_left = 184.0
|
|
margin_top = -83.0
|
|
margin_right = 288.0
|
|
margin_bottom = -62.0
|
|
hint_tooltip = "Start a singleplayer game"
|
|
mouse_default_cursor_shape = 2
|
|
custom_fonts/font = ExtResource( 1 )
|
|
text = "Single player"
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Game Lobby" type="Panel" parent="."]
|
|
anchor_left = 0.0125
|
|
anchor_top = 0.0888889
|
|
anchor_right = 0.0125
|
|
anchor_bottom = 0.0888889
|
|
margin_left = 648.0
|
|
margin_top = 17.0
|
|
margin_right = 1256.0
|
|
margin_bottom = 318.0
|
|
custom_styles/panel = ExtResource( 7 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Header4" type="Label" parent="Game Lobby"]
|
|
margin_left = -7.38599
|
|
margin_top = -48.0
|
|
margin_right = 150.614
|
|
margin_bottom = -37.0
|
|
rect_scale = Vector2( 4, 4 )
|
|
custom_fonts/font = ExtResource( 2 )
|
|
text = "pregame lobby"
|
|
align = 1
|
|
valign = 1
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="PlayersPanel" type="Panel" parent="Game Lobby"]
|
|
anchor_left = 0.0125
|
|
anchor_top = 0.0888889
|
|
anchor_right = 0.0125
|
|
anchor_bottom = 0.0888889
|
|
margin_left = 352.4
|
|
margin_top = 4.24444
|
|
margin_right = 584.4
|
|
margin_bottom = 228.244
|
|
custom_styles/panel = ExtResource( 7 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Label" type="Label" parent="Game Lobby/PlayersPanel"]
|
|
anchor_right = 1.0
|
|
margin_top = 8.0
|
|
margin_bottom = 19.0
|
|
custom_fonts/font = ExtResource( 2 )
|
|
text = "connected Players"
|
|
align = 1
|
|
valign = 1
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Label" type="Label" parent="Game Lobby"]
|
|
anchor_right = 1.0
|
|
margin_top = 7.0
|
|
margin_bottom = 18.0
|
|
custom_fonts/font = ExtResource( 2 )
|
|
text = "General"
|
|
align = 1
|
|
valign = 1
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Btn_Disconnect" type="Button" parent="Game Lobby"]
|
|
anchor_left = 0.5
|
|
anchor_top = 1.0
|
|
anchor_right = 0.5
|
|
anchor_bottom = 1.0
|
|
margin_left = -288.0
|
|
margin_top = -38.0
|
|
margin_right = -206.0
|
|
margin_bottom = -17.0
|
|
hint_tooltip = "Join an online game with above parameters"
|
|
mouse_default_cursor_shape = 2
|
|
custom_fonts/font = ExtResource( 1 )
|
|
text = "Disconnect"
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="HostPanel" type="Panel" parent="."]
|
|
anchor_left = 0.0125
|
|
anchor_top = 0.0888889
|
|
anchor_right = 0.0125
|
|
anchor_bottom = 0.0888889
|
|
margin_left = 8.0
|
|
margin_top = 144.0
|
|
margin_right = 280.0
|
|
margin_bottom = 318.0
|
|
custom_styles/panel = ExtResource( 7 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Host_Header" type="Label" parent="HostPanel"]
|
|
anchor_left = 6.60554e-08
|
|
anchor_right = 6.60554e-08
|
|
margin_left = -1.909e-05
|
|
margin_right = 137.0
|
|
margin_bottom = 16.0
|
|
rect_scale = Vector2( 2, 2 )
|
|
custom_fonts/font = ExtResource( 2 )
|
|
text = "Host"
|
|
align = 1
|
|
valign = 1
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="label_port" type="Label" parent="HostPanel"]
|
|
margin_left = 8.0
|
|
margin_top = 50.0
|
|
margin_right = 72.0
|
|
margin_bottom = 72.0
|
|
custom_fonts/font = ExtResource( 2 )
|
|
text = "PORT:"
|
|
align = 2
|
|
valign = 1
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="label_myip" type="Label" parent="HostPanel"]
|
|
margin_left = -8.0
|
|
margin_top = 24.0
|
|
margin_right = 272.0
|
|
margin_bottom = 46.0
|
|
custom_fonts/font = ExtResource( 2 )
|
|
text = "IP: 0"
|
|
align = 1
|
|
valign = 1
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="label_players" type="Label" parent="HostPanel"]
|
|
margin_left = 13.0
|
|
margin_top = 83.0
|
|
margin_right = 72.0
|
|
margin_bottom = 105.0
|
|
custom_fonts/font = ExtResource( 2 )
|
|
text = "Players:"
|
|
align = 2
|
|
valign = 1
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="playercount" type="SpinBox" parent="HostPanel"]
|
|
margin_left = 88.0
|
|
margin_top = 80.0
|
|
margin_right = 198.0
|
|
margin_bottom = 104.0
|
|
rect_pivot_offset = Vector2( 48, 12 )
|
|
theme = SubResource( 2 )
|
|
min_value = 2.0
|
|
max_value = 4.0
|
|
value = 2.0
|
|
rounded = true
|
|
suffix = "players"
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="host_port" type="SpinBox" parent="HostPanel"]
|
|
margin_left = 88.0
|
|
margin_top = 48.0
|
|
margin_right = 198.0
|
|
margin_bottom = 72.0
|
|
rect_pivot_offset = Vector2( 48, 12 )
|
|
theme = SubResource( 2 )
|
|
min_value = 2000.0
|
|
max_value = 90000.0
|
|
value = 2000.0
|
|
rounded = true
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="HostGameBtn" type="Button" parent="HostPanel"]
|
|
anchor_left = 0.5
|
|
anchor_top = 1.0
|
|
anchor_right = 0.5
|
|
anchor_bottom = 1.0
|
|
margin_left = -56.0
|
|
margin_top = -38.0
|
|
margin_right = 56.0
|
|
margin_bottom = -17.0
|
|
hint_tooltip = "Host a online game with above parameters"
|
|
mouse_default_cursor_shape = 2
|
|
custom_fonts/font = ExtResource( 1 )
|
|
text = "Host Server"
|
|
icon = ExtResource( 9 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="JoinPanel" type="Panel" parent="."]
|
|
anchor_left = 0.0125
|
|
anchor_top = 0.0888889
|
|
anchor_right = 0.0125
|
|
anchor_bottom = 0.0888889
|
|
margin_left = 296.0
|
|
margin_top = 144.0
|
|
margin_right = 616.0
|
|
margin_bottom = 318.0
|
|
custom_styles/panel = ExtResource( 7 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Join_Header" type="Label" parent="JoinPanel"]
|
|
margin_right = 160.0
|
|
margin_bottom = 16.0
|
|
rect_scale = Vector2( 2, 2 )
|
|
custom_fonts/font = ExtResource( 2 )
|
|
text = "Join"
|
|
align = 1
|
|
valign = 1
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="label_ip" type="Label" parent="JoinPanel"]
|
|
margin_left = 8.0
|
|
margin_top = 48.0
|
|
margin_right = 64.0
|
|
margin_bottom = 70.0
|
|
custom_fonts/font = ExtResource( 2 )
|
|
text = "IP:"
|
|
align = 2
|
|
valign = 1
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="join_ip" type="LineEdit" parent="JoinPanel"]
|
|
margin_left = 80.0
|
|
margin_top = 48.0
|
|
margin_right = 208.0
|
|
margin_bottom = 72.0
|
|
custom_fonts/font = ExtResource( 3 )
|
|
text = "24.118.230.18"
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="label_portjoin" type="Label" parent="JoinPanel"]
|
|
margin_left = 8.0
|
|
margin_top = 80.0
|
|
margin_right = 64.0
|
|
margin_bottom = 102.0
|
|
custom_fonts/font = ExtResource( 2 )
|
|
text = "PORT:"
|
|
align = 2
|
|
valign = 1
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="join_port" type="SpinBox" parent="JoinPanel"]
|
|
margin_left = 80.0
|
|
margin_top = 80.0
|
|
margin_right = 190.0
|
|
margin_bottom = 104.0
|
|
rect_pivot_offset = Vector2( 48, 12 )
|
|
theme = SubResource( 2 )
|
|
min_value = 2000.0
|
|
max_value = 90000.0
|
|
value = 2000.0
|
|
rounded = true
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="JoinGameBtn" type="Button" parent="JoinPanel"]
|
|
anchor_left = 0.5
|
|
anchor_top = 1.0
|
|
anchor_right = 0.5
|
|
anchor_bottom = 1.0
|
|
margin_left = -53.0
|
|
margin_top = -38.0
|
|
margin_right = 52.0
|
|
margin_bottom = -17.0
|
|
hint_tooltip = "Join an online game with above parameters"
|
|
mouse_default_cursor_shape = 2
|
|
custom_fonts/font = ExtResource( 1 )
|
|
text = "Join Server"
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Node" type="Node" parent="."]
|
|
[connection signal="button_up" from="GeneralPanel/singleplayer" to="." method="_on_singleplayer_button_up"]
|
|
[connection signal="button_up" from="HostPanel/HostGameBtn" to="." method="_on_HostGameBtn_button_up"]
|
|
[connection signal="button_up" from="JoinPanel/JoinGameBtn" to="." method="_on_JoinGameBtn_button_up"]
|