ParaSignal.tscn 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. [gd_scene load_steps=8 format=3 uid="uid://drh3sqivyydkj"]
  2. [ext_resource type="Script" path="res://addons/slide_show/projector/slide/Slide.gd" id="1_pgpic"]
  3. [ext_resource type="PackedScene" uid="uid://dogtm6fdbp3wl" path="res://common/components/gdedit/GdScriptEdit.tscn" id="3_3pelu"]
  4. [ext_resource type="PackedScene" uid="uid://bvrtmyq4g1qes" path="res://common/components/title/title.tscn" id="3_agrvb"]
  5. [ext_resource type="Texture2D" uid="uid://dhwxa7mwj7lqq" path="res://slides/283/Signals.svg" id="4_okptd"]
  6. [ext_resource type="Texture2D" uid="uid://cs0ev7fsrh2wd" path="res://slides/283/Signal.svg" id="5_15k1w"]
  7. [ext_resource type="PackedScene" uid="uid://b811jddpttnt4" path="res://common/components/subtitle/subtitle.tscn" id="6_t25x4"]
  8. [sub_resource type="CodeHighlighter" id="CodeHighlighter_2654d"]
  9. number_color = Color(0.803922, 0, 0.803922, 1)
  10. symbol_color = Color(0, 0, 1, 1)
  11. function_color = Color(0, 0.615686, 0, 1)
  12. member_variable_color = Color(0.8, 0.5, 0, 1)
  13. keyword_colors = {
  14. "InputEvent": Color(0, 0.4, 0, 1),
  15. "RigidBody2D": Color(0, 0.4, 0, 1),
  16. "String": Color(0, 0.4, 0, 1),
  17. "Vector2": Color(0, 0.4, 0, 1),
  18. "and": Color(1, 0, 0, 1),
  19. "bool": Color(1, 0, 0, 1),
  20. "class": Color(1, 0, 0, 1),
  21. "class_name": Color(1, 0, 0, 1),
  22. "extends": Color(1, 0, 0, 1),
  23. "float": Color(1, 0, 0, 1),
  24. "for": Color(1, 0, 0, 1),
  25. "func": Color(1, 0, 0, 1),
  26. "if": Color(1, 0, 0, 1),
  27. "in": Color(1, 0, 0, 1),
  28. "int": Color(1, 0, 0, 1),
  29. "return": Color(1, 0, 0, 1),
  30. "signal": Color(1, 0, 0, 1),
  31. "var": Color(1, 0, 0, 1)
  32. }
  33. [node name="ParaSignal" type="Node2D"]
  34. script = ExtResource("1_pgpic")
  35. [node name="Title" parent="." instance=ExtResource("3_agrvb")]
  36. offset_left = 815.0
  37. offset_top = 18.0
  38. offset_right = 1852.0
  39. offset_bottom = 186.0
  40. text = "Reliez vos nœuds"
  41. [node name="GdScriptSignalEmit" type="CodeEdit" parent="."]
  42. offset_left = 31.0
  43. offset_top = 21.0
  44. offset_right = 771.0
  45. offset_bottom = 626.0
  46. theme_override_colors/background_color = Color(1, 1, 1, 1)
  47. theme_override_colors/font_color = Color(0, 0, 0, 1)
  48. theme_override_font_sizes/font_size = 46
  49. text = "class_name Penguin
  50. signal took_off
  51. func _process():
  52. if linear_velocity.x > 42:
  53. took_off.emit()"
  54. deselect_on_focus_loss_enabled = false
  55. virtual_keyboard_enabled = false
  56. syntax_highlighter = SubResource("CodeHighlighter_2654d")
  57. gutters_draw_line_numbers = true
  58. indent_use_spaces = true
  59. [node name="SignalSend" type="Sprite2D" parent="."]
  60. modulate = Color(0, 1, 0, 1)
  61. position = Vector2(136, 741)
  62. scale = Vector2(2, 2)
  63. texture = ExtResource("4_okptd")
  64. [node name="GdScriptSignalReceive" parent="." instance=ExtResource("3_3pelu")]
  65. offset_left = 794.0
  66. offset_top = 377.0
  67. offset_right = 1912.0
  68. offset_bottom = 1076.0
  69. text = "class_name Radar
  70. func print_flying_object(name: String):
  71. print(name, \" is flying!\")
  72. func _on_Penguin_took_off():
  73. print_flying_object(\"Penguin\")"
  74. [node name="SignalRec" type="Sprite2D" parent="."]
  75. position = Vector2(669, 757)
  76. scale = Vector2(2, 2)
  77. texture = ExtResource("5_15k1w")
  78. [node name="Subtitle" parent="." instance=ExtResource("6_t25x4")]
  79. offset_left = 39.0
  80. offset_top = 947.0
  81. offset_right = 777.0
  82. offset_bottom = 1078.0
  83. text = "Penguin is flying!"
  84. horizontal_alignment = 2