Client.tscn 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. [gd_scene load_steps=8 format=2]
  2. [ext_resource path="res://Debug.tscn" type="PackedScene" id=1]
  3. [ext_resource path="res://PowerMenu.tscn" type="PackedScene" id=2]
  4. [ext_resource path="res://Client.gd" type="Script" id=3]
  5. [ext_resource path="res://Input.gd" type="Script" id=4]
  6. [ext_resource path="res://ping.gd" type="Script" id=5]
  7. [ext_resource path="res://enemiessprite.gd" type="Script" id=7]
  8. [ext_resource path="res://font/tiny.tres" type="DynamicFont" id=8]
  9. [node name="Client" type="Node" groups=["client"]]
  10. script = ExtResource( 3 )
  11. [node name="ping" type="Label" parent="."]
  12. margin_left = 12.1612
  13. margin_top = 260.304
  14. margin_right = 52.1612
  15. margin_bottom = 281.304
  16. custom_fonts/font = ExtResource( 8 )
  17. text = "ping..."
  18. script = ExtResource( 5 )
  19. __meta__ = {
  20. "_edit_use_anchors_": false
  21. }
  22. [node name="Input" type="Node" parent="."]
  23. script = ExtResource( 4 )
  24. [node name="players" type="Node" parent="."]
  25. [node name="enemies" type="Node" parent="."]
  26. script = ExtResource( 7 )
  27. [node name="Debug" parent="." instance=ExtResource( 1 )]
  28. [node name="Hud" type="CanvasLayer" parent="."]
  29. [node name="HBoxContainer" type="HBoxContainer" parent="Hud"]
  30. anchor_right = 1.0
  31. margin_right = 1.0
  32. margin_bottom = 60.0
  33. __meta__ = {
  34. "_edit_use_anchors_": false
  35. }
  36. [node name="PowerMenu" parent="." instance=ExtResource( 2 )]
  37. [node name="LineEdit" type="LineEdit" parent="."]
  38. modulate = Color( 1, 1, 1, 0.627451 )
  39. margin_left = 480.0
  40. margin_top = 320.0
  41. margin_right = 620.0
  42. margin_bottom = 344.0
  43. align = 2
  44. placeholder_text = "....message"
  45. [node name="RichTextLabel" type="RichTextLabel" parent="."]
  46. margin_left = 480.0
  47. margin_top = 220.0
  48. margin_right = 620.0
  49. margin_bottom = 315.0
  50. [node name="ColorRect" type="ColorRect" parent="RichTextLabel"]
  51. anchor_right = 1.0
  52. anchor_bottom = 1.0
  53. color = Color( 0, 0, 0, 0.207843 )
  54. [connection signal="text_entered" from="LineEdit" to="." method="chat_messages"]