[gd_scene load_steps=17 format=2]

[ext_resource path="res://Debug.tscn" type="PackedScene" id=1]
[ext_resource path="res://PowerMenu.tscn" type="PackedScene" id=2]
[ext_resource path="res://Client.gd" type="Script" id=3]
[ext_resource path="res://Input.gd" type="Script" id=4]
[ext_resource path="res://ping.gd" type="Script" id=5]
[ext_resource path="res://projectiles.gd" type="Script" id=6]
[ext_resource path="res://enemiessprite.gd" type="Script" id=7]
[ext_resource path="res://font/tiny.tres" type="DynamicFont" id=8]
[ext_resource path="res://font/8bit.tres" type="DynamicFont" id=9]
[ext_resource path="res://art/player/emote/esclamation.png" type="Texture" id=10]
[ext_resource path="res://opts.gd" type="Script" id=11]
[ext_resource path="res://art/coffeemilk.png" type="Texture" id=12]

[sub_resource type="GDScript" id=1]
script/source = "extends Label

export(NodePath) var node
export(NodePath) var node2

func _input(event):
	if get_node(node2).visible:
		if Input.is_action_just_pressed('ui_select'):
			get_node(node).spawn_request()
			print('sending spawn request...')
"

[sub_resource type="Shader" id=19]
code = "// NOTE: Shader automatically converted from Godot Engine 3.4.4.stable's CanvasItemMaterial.

shader_type canvas_item;
render_mode blend_mix;

void fragment(){
	COLOR = texture(TEXTURE,UV+TIME/5.00);
}"

[sub_resource type="ShaderMaterial" id=20]
shader = SubResource( 19 )

[sub_resource type="StyleBoxFlat" id=2]
bg_color = Color( 0, 0, 0, 0.415686 )

[node name="Client" type="Node" groups=["client"]]
script = ExtResource( 3 )

[node name="Input" type="Node" parent="."]
script = ExtResource( 4 )

[node name="players" type="Node" parent="."]

[node name="enemies" type="Node" parent="."]
script = ExtResource( 7 )

[node name="projectiles" type="Node" parent="."]
script = ExtResource( 6 )

[node name="Debug" parent="." instance=ExtResource( 1 )]

[node name="ping" type="Label" parent="Debug"]
margin_left = 12.1612
margin_top = 260.304
margin_right = 52.1612
margin_bottom = 281.304
custom_fonts/font = ExtResource( 8 )
text = "ping..."
script = ExtResource( 5 )

[node name="Timer" type="Timer" parent="Debug/ping"]
wait_time = 0.5
autostart = true

[node name="Hud" type="CanvasLayer" parent="."]

[node name="HBoxContainer" type="HBoxContainer" parent="Hud"]
anchor_right = 1.0
margin_right = 1.0
margin_bottom = 60.0
__meta__ = {
"_edit_use_anchors_": false
}

[node name="PowerMenu" parent="." instance=ExtResource( 2 )]

[node name="Chat" type="CanvasLayer" parent="."]
layer = 7

[node name="LineEdit" type="LineEdit" parent="Chat"]
modulate = Color( 1, 1, 1, 0.627451 )
margin_left = 480.0
margin_top = 320.0
margin_right = 620.0
margin_bottom = 344.0
align = 2
placeholder_text = "....message"

[node name="RichTextLabel" type="RichTextLabel" parent="Chat"]
margin_left = 480.0
margin_top = 220.0
margin_right = 620.0
margin_bottom = 315.0

[node name="ColorRect" type="ColorRect" parent="Chat/RichTextLabel"]
show_behind_parent = true
anchor_right = 1.0
anchor_bottom = 1.0
color = Color( 0, 0, 0, 0.333333 )

[node name="spawnmsg" type="CanvasLayer" parent="."]

[node name="CenterContainer" type="CenterContainer" parent="spawnmsg"]
visible = false
anchor_right = 1.0
anchor_bottom = 1.0

[node name="VBoxContainer" type="VBoxContainer" parent="spawnmsg/CenterContainer"]
margin_left = 238.0
margin_top = 164.0
margin_right = 402.0
margin_bottom = 196.0

[node name="spawnmsg" type="Label" parent="spawnmsg/CenterContainer/VBoxContainer"]
margin_right = 164.0
margin_bottom = 14.0
text = "press \"space\" to be ready"
align = 1
valign = 1
script = SubResource( 1 )
node = NodePath("../../../..")
node2 = NodePath("../..")

[node name="spawnmsg2" type="Label" parent="spawnmsg/CenterContainer/VBoxContainer"]
margin_top = 18.0
margin_right = 164.0
margin_bottom = 32.0
text = "loading list...."
align = 1
valign = 1
autowrap = true

[node name="ColorRect" type="ColorRect" parent="spawnmsg/CenterContainer/VBoxContainer/spawnmsg2"]
show_behind_parent = true
anchor_right = 1.0
anchor_bottom = 1.0
color = Color( 0, 0, 0, 0.333333 )

[node name="Options" type="CanvasLayer" parent="."]

[node name="Control" type="Control" parent="Options"]
visible = false
margin_right = 40.0
margin_bottom = 40.0

[node name="TextureRect" type="TextureRect" parent="Options/Control"]
modulate = Color( 1, 1, 1, 0.501961 )
material = SubResource( 20 )
anchor_right = 1.0
anchor_bottom = 1.0
margin_right = 600.0
margin_bottom = 320.0
texture = ExtResource( 12 )
expand = true
stretch_mode = 2

[node name="VBoxContainer" type="VBoxContainer" parent="Options/Control"]
anchor_left = 0.5
anchor_right = 0.5
anchor_bottom = 1.0
margin_left = 236.0
margin_right = 365.0
margin_bottom = 321.0
alignment = 1
script = ExtResource( 11 )

[node name="Label" type="Label" parent="Options/Control/VBoxContainer"]
margin_top = 156.0
margin_right = 129.0
margin_bottom = 168.0
custom_fonts/font = ExtResource( 9 )
text = "volume:"
align = 1

[node name="HSlider" type="HSlider" parent="Options/Control/VBoxContainer"]
margin_top = 172.0
margin_right = 129.0
margin_bottom = 188.0
custom_icons/tick = ExtResource( 10 )
custom_icons/grabber_disabled = ExtResource( 10 )
custom_icons/grabber_highlight = ExtResource( 10 )
custom_icons/grabber = ExtResource( 10 )

[node name="OptionButton" type="OptionButton" parent="Options/Control/VBoxContainer"]
margin_top = 192.0
margin_right = 129.0
margin_bottom = 204.0
custom_fonts/font = ExtResource( 9 )
custom_styles/hover = SubResource( 2 )
custom_styles/pressed = SubResource( 2 )
custom_styles/focus = SubResource( 2 )
custom_styles/disabled = SubResource( 2 )
custom_styles/normal = SubResource( 2 )
text = "window option"

[connection signal="timeout" from="Debug/ping/Timer" to="Debug/ping" method="_on_Timer_timeout"]
[connection signal="text_entered" from="Chat/LineEdit" to="." method="chat_messages"]
[connection signal="value_changed" from="Options/Control/VBoxContainer/HSlider" to="Options/Control/VBoxContainer" method="_on_HSlider_value_changed"]
[connection signal="item_selected" from="Options/Control/VBoxContainer/OptionButton" to="Options/Control/VBoxContainer" method="_on_OptionButton_item_selected"]
