GhostSelect.tscn 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. [gd_scene load_steps=11 format=3 uid="uid://r2n1ka3mc5v6"]
  2. [ext_resource type="Script" uid="uid://btp7od8thj3mk" path="res://Scripts/UI/GhostSelect.gd" id="1_jt66n"]
  3. [ext_resource type="StyleBox" uid="uid://comkghpj0djcl" path="res://Resources/UI/Panel.tres" id="1_riont"]
  4. [ext_resource type="Texture2D" uid="uid://3p2l7rec0gh5" path="res://Assets/Sprites/UI/Cursor.png" id="2_jt66n"]
  5. [ext_resource type="Texture2D" uid="uid://dhu46wvad72wp" path="res://Assets/Sprites/UI/MarathonIcons.png" id="3_kqsc3"]
  6. [ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="4_vlkxh"]
  7. [ext_resource type="JSON" path="res://Assets/Sprites/UI/Cursor.json" id="5_6pjre"]
  8. [sub_resource type="StyleBoxLine" id="StyleBoxLine_vlkxh"]
  9. color = Color(1, 1, 1, 1)
  10. [sub_resource type="AtlasTexture" id="AtlasTexture_6pjre"]
  11. atlas = ExtResource("2_jt66n")
  12. region = Rect2(0, 0, 8, 8)
  13. [sub_resource type="AtlasTexture" id="AtlasTexture_rondi"]
  14. atlas = ExtResource("3_kqsc3")
  15. region = Rect2(112, 24, 8, 8)
  16. [sub_resource type="AtlasTexture" id="AtlasTexture_2qsn7"]
  17. atlas = ExtResource("3_kqsc3")
  18. region = Rect2(96, 40, 8, 8)
  19. [node name="GhostSelect" type="Control"]
  20. layout_mode = 3
  21. anchors_preset = 15
  22. anchor_right = 1.0
  23. anchor_bottom = 1.0
  24. grow_horizontal = 2
  25. grow_vertical = 2
  26. script = ExtResource("1_jt66n")
  27. [node name="Panel" type="PanelContainer" parent="."]
  28. layout_mode = 1
  29. anchors_preset = 8
  30. anchor_left = 0.5
  31. anchor_top = 0.5
  32. anchor_right = 0.5
  33. anchor_bottom = 0.5
  34. offset_left = -64.0
  35. offset_top = -32.0
  36. offset_right = 64.0
  37. offset_bottom = 32.0
  38. grow_horizontal = 2
  39. grow_vertical = 2
  40. theme_override_styles/panel = ExtResource("1_riont")
  41. [node name="VBoxContainer" type="VBoxContainer" parent="Panel"]
  42. layout_mode = 2
  43. [node name="Title" type="Label" parent="Panel/VBoxContainer"]
  44. layout_mode = 2
  45. size_flags_horizontal = 4
  46. text = "GHOST_SELECT"
  47. uppercase = true
  48. [node name="HSeparator" type="HSeparator" parent="Panel/VBoxContainer/Title"]
  49. layout_mode = 1
  50. anchors_preset = 12
  51. anchor_top = 1.0
  52. anchor_right = 1.0
  53. anchor_bottom = 1.0
  54. offset_top = -4.0
  55. grow_horizontal = 2
  56. grow_vertical = 0
  57. theme_override_styles/separator = SubResource("StyleBoxLine_vlkxh")
  58. [node name="NoGhost" type="HBoxContainer" parent="Panel/VBoxContainer"]
  59. unique_name_in_owner = true
  60. layout_mode = 2
  61. theme_override_constants/separation = 4
  62. [node name="Cursor" type="TextureRect" parent="Panel/VBoxContainer/NoGhost"]
  63. layout_mode = 2
  64. texture = SubResource("AtlasTexture_6pjre")
  65. stretch_mode = 3
  66. [node name="ResourceSetterNew" type="Node" parent="Panel/VBoxContainer/NoGhost/Cursor" node_paths=PackedStringArray("node_to_affect")]
  67. script = ExtResource("4_vlkxh")
  68. node_to_affect = NodePath("..")
  69. property_name = "texture"
  70. mode = 1
  71. resource_json = ExtResource("5_6pjre")
  72. metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
  73. [node name="HBoxContainer" type="HBoxContainer" parent="Panel/VBoxContainer/NoGhost"]
  74. layout_mode = 2
  75. theme_override_constants/separation = 0
  76. [node name="TextureRect2" type="TextureRect" parent="Panel/VBoxContainer/NoGhost/HBoxContainer"]
  77. layout_mode = 2
  78. texture = SubResource("AtlasTexture_rondi")
  79. stretch_mode = 3
  80. [node name="Label" type="Label" parent="Panel/VBoxContainer/NoGhost/HBoxContainer"]
  81. layout_mode = 2
  82. text = "GHOST OFF"
  83. [node name="Ghost" type="HBoxContainer" parent="Panel/VBoxContainer"]
  84. unique_name_in_owner = true
  85. layout_mode = 2
  86. theme_override_constants/separation = 4
  87. [node name="Cursor" type="TextureRect" parent="Panel/VBoxContainer/Ghost"]
  88. layout_mode = 2
  89. texture = SubResource("AtlasTexture_6pjre")
  90. stretch_mode = 3
  91. [node name="ResourceSetterNew" type="Node" parent="Panel/VBoxContainer/Ghost/Cursor" node_paths=PackedStringArray("node_to_affect")]
  92. script = ExtResource("4_vlkxh")
  93. node_to_affect = NodePath("..")
  94. property_name = "texture"
  95. mode = 1
  96. resource_json = ExtResource("5_6pjre")
  97. metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
  98. [node name="HBoxContainer" type="HBoxContainer" parent="Panel/VBoxContainer/Ghost"]
  99. layout_mode = 2
  100. theme_override_constants/separation = 0
  101. [node name="TextureRect2" type="TextureRect" parent="Panel/VBoxContainer/Ghost/HBoxContainer"]
  102. layout_mode = 2
  103. texture = SubResource("AtlasTexture_2qsn7")
  104. stretch_mode = 3
  105. [node name="Label" type="Label" parent="Panel/VBoxContainer/Ghost/HBoxContainer"]
  106. layout_mode = 2
  107. text = "GHOST ON"