StateTreePanel.tscn 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. [gd_scene load_steps=7 format=3 uid="uid://nck01hflbdd5"]
  2. [ext_resource type="Script" uid="uid://chchhkpx7main" path="res://Scripts/panel/state_treeview.gd" id="1_8fc3b"]
  3. [ext_resource type="Theme" uid="uid://dmgdeh6kw3b7u" path="res://Resources/Theme/basic_theme.tres" id="2_p1xr4"]
  4. [ext_resource type="Theme" uid="uid://dg14k5tu0s0mq" path="res://Resources/Theme/scope_check_button_theme.tres" id="3_0weds"]
  5. [ext_resource type="Texture2D" uid="uid://cfxsgw26y5to2" path="res://Resources/UI/Collapse.png" id="4_g85s8"]
  6. [ext_resource type="Texture2D" uid="uid://dfehigjgwe6u4" path="res://Resources/UI/Expands.png" id="5_in1e7"]
  7. [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_0b38o"]
  8. content_margin_left = 8.0
  9. content_margin_top = 4.0
  10. content_margin_bottom = 4.0
  11. bg_color = Color(0.278431, 0.278431, 0.278431, 1)
  12. [node name="StateTreePanel" type="VBoxContainer"]
  13. custom_minimum_size = Vector2(360, 0)
  14. anchors_preset = 15
  15. anchor_right = 1.0
  16. anchor_bottom = 1.0
  17. grow_horizontal = 2
  18. grow_vertical = 2
  19. script = ExtResource("1_8fc3b")
  20. [node name="MarginContainer" type="MarginContainer" parent="."]
  21. layout_mode = 2
  22. size_flags_vertical = 3
  23. theme = ExtResource("2_p1xr4")
  24. [node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
  25. custom_minimum_size = Vector2(320, 0)
  26. layout_mode = 2
  27. [node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
  28. layout_mode = 2
  29. [node name="RichTextLabel" type="RichTextLabel" parent="MarginContainer/VBoxContainer/HBoxContainer"]
  30. custom_minimum_size = Vector2(120, 0)
  31. layout_mode = 2
  32. bbcode_enabled = true
  33. text = "[font_size=20][b]Status[/b][/font_size]"
  34. fit_content = true
  35. scroll_active = false
  36. [node name="Control" type="Control" parent="MarginContainer/VBoxContainer/HBoxContainer"]
  37. layout_mode = 2
  38. size_flags_horizontal = 3
  39. [node name="HSeparator" type="HSeparator" parent="MarginContainer/VBoxContainer"]
  40. layout_mode = 2
  41. [node name="HBoxContainer2" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
  42. layout_mode = 2
  43. [node name="Button0" type="Button" parent="MarginContainer/VBoxContainer/HBoxContainer2"]
  44. custom_minimum_size = Vector2(36, 32)
  45. layout_mode = 2
  46. theme = ExtResource("3_0weds")
  47. toggle_mode = true
  48. button_pressed = true
  49. text = "All"
  50. [node name="Button1" type="Button" parent="MarginContainer/VBoxContainer/HBoxContainer2"]
  51. custom_minimum_size = Vector2(32, 32)
  52. layout_mode = 2
  53. theme = ExtResource("3_0weds")
  54. toggle_mode = true
  55. text = "Done"
  56. [node name="Button2" type="Button" parent="MarginContainer/VBoxContainer/HBoxContainer2"]
  57. custom_minimum_size = Vector2(32, 32)
  58. layout_mode = 2
  59. theme = ExtResource("3_0weds")
  60. toggle_mode = true
  61. text = "Needs"
  62. [node name="Button3" type="Button" parent="MarginContainer/VBoxContainer/HBoxContainer2"]
  63. custom_minimum_size = Vector2(32, 32)
  64. layout_mode = 2
  65. theme = ExtResource("3_0weds")
  66. toggle_mode = true
  67. text = "Pending"
  68. [node name="Control" type="Control" parent="MarginContainer/VBoxContainer/HBoxContainer2"]
  69. layout_mode = 2
  70. size_flags_horizontal = 3
  71. [node name="ButtonCollapse" type="Button" parent="MarginContainer/VBoxContainer/HBoxContainer2"]
  72. layout_mode = 2
  73. theme = ExtResource("2_p1xr4")
  74. icon = ExtResource("4_g85s8")
  75. icon_alignment = 1
  76. [node name="ButtonExpand" type="Button" parent="MarginContainer/VBoxContainer/HBoxContainer2"]
  77. layout_mode = 2
  78. theme = ExtResource("2_p1xr4")
  79. icon = ExtResource("5_in1e7")
  80. icon_alignment = 1
  81. [node name="StateNameLabel" type="Label" parent="MarginContainer/VBoxContainer"]
  82. layout_mode = 2
  83. theme_override_styles/normal = SubResource("StyleBoxFlat_0b38o")
  84. [node name="StateTreeview" type="Tree" parent="MarginContainer/VBoxContainer"]
  85. layout_mode = 2
  86. size_flags_vertical = 3
  87. theme = ExtResource("2_p1xr4")
  88. columns = 2
  89. allow_reselect = true
  90. select_mode = 1