123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- [gd_scene load_steps=14 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]
- [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="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="VBoxContainer" type="VBoxContainer" parent="Options"]
- visible = false
- anchor_left = 0.5
- anchor_right = 0.5
- anchor_bottom = 1.0
- margin_left = -64.5
- margin_right = 64.5
- alignment = 1
- script = ExtResource( 11 )
- [node name="Label" type="Label" parent="Options/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/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/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/VBoxContainer/HSlider" to="Options/VBoxContainer" method="_on_HSlider_value_changed"]
- [connection signal="item_selected" from="Options/VBoxContainer/OptionButton" to="Options/VBoxContainer" method="_on_OptionButton_item_selected"]
|