SelectableOptionLabel.tscn 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. [gd_scene load_steps=9 format=3 uid="uid://ctw1isl6cmayh"]
  2. [ext_resource type="Script" uid="uid://d0tcqr0x101j" path="res://Scripts/UI/SelectableOptionLabel.gd" id="1_o5udk"]
  3. [ext_resource type="Texture2D" uid="uid://3p2l7rec0gh5" path="res://Assets/Sprites/UI/Cursor.png" id="2_o5udk"]
  4. [ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="3_7ee3v"]
  5. [ext_resource type="JSON" path="res://Assets/Sprites/UI/Cursor.json" id="4_a8eby"]
  6. [ext_resource type="Script" uid="uid://co6tjg3w6qpd8" path="res://Scripts/Parts/LabelFontChanger.gd" id="5_7ee3v"]
  7. [ext_resource type="Resource" uid="uid://8dcuxbc3h2u2" path="res://Resources/ThemedResources/Font.tres" id="6_a8eby"]
  8. [sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_bg4p8"]
  9. [sub_resource type="AtlasTexture" id="AtlasTexture_wit67"]
  10. atlas = ExtResource("2_o5udk")
  11. region = Rect2(0, 0, 8, 8)
  12. [node name="SelectableOptionLabel" type="HBoxContainer"]
  13. offset_right = 184.0
  14. offset_bottom = 16.0
  15. focus_mode = 2
  16. theme_override_constants/separation = -8
  17. script = ExtResource("1_o5udk")
  18. [node name="Title" type="Label" parent="."]
  19. layout_mode = 2
  20. theme_override_styles/focus = SubResource("StyleBoxEmpty_bg4p8")
  21. text = "adada:"
  22. uppercase = true
  23. [node name="Cursor" type="TextureRect" parent="Title"]
  24. layout_mode = 1
  25. anchors_preset = -1
  26. anchor_top = 0.5
  27. anchor_bottom = 0.5
  28. offset_left = -6.0
  29. offset_top = -4.0
  30. offset_bottom = 4.0
  31. grow_vertical = 2
  32. texture = SubResource("AtlasTexture_wit67")
  33. [node name="ResourceSetterNew" type="Node" parent="Title/Cursor" node_paths=PackedStringArray("node_to_affect")]
  34. script = ExtResource("3_7ee3v")
  35. node_to_affect = NodePath("..")
  36. property_name = "texture"
  37. mode = 1
  38. resource_json = ExtResource("4_a8eby")
  39. metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
  40. [node name="Value" type="Label" parent="."]
  41. layout_mode = 2
  42. size_flags_horizontal = 8
  43. text = "◄aduhauda►"
  44. uppercase = true
  45. [node name="LabelFontChanger" type="Node" parent="." node_paths=PackedStringArray("labels")]
  46. script = ExtResource("5_7ee3v")
  47. labels = [NodePath("../Title"), NodePath("../Value")]
  48. resource = ExtResource("6_a8eby")
  49. metadata/_custom_type_script = "uid://co6tjg3w6qpd8"
  50. [connection signal="focus_entered" from="." to="." method="set_selected" binds= [true]]
  51. [connection signal="focus_exited" from="." to="." method="set_selected" binds= [false]]