manager-ui.tscn 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. [gd_scene load_steps=4 format=3 uid="uid://cjg64w82poqg3"]
  2. [ext_resource type="Script" path="res://addons/game_data_manager/RefreshButton.gd" id="1_02c80"]
  3. [ext_resource type="Script" path="res://addons/game_data_manager/ItemList.gd" id="2_2kinw"]
  4. [ext_resource type="Script" path="res://addons/game_data_manager/ItemTypeSelector.gd" id="7_nn4vo"]
  5. [node name="Manager-ui" type="Control"]
  6. layout_mode = 3
  7. anchors_preset = 15
  8. anchor_right = 1.0
  9. anchor_bottom = 1.0
  10. grow_horizontal = 2
  11. grow_vertical = 2
  12. size_flags_horizontal = 3
  13. size_flags_vertical = 3
  14. [node name="VBoxContainer" type="VBoxContainer" parent="."]
  15. layout_mode = 1
  16. anchors_preset = 15
  17. anchor_right = 1.0
  18. anchor_bottom = 1.0
  19. grow_horizontal = 2
  20. grow_vertical = 2
  21. [node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
  22. layout_mode = 2
  23. [node name="Reload" type="Button" parent="VBoxContainer/HBoxContainer"]
  24. layout_mode = 2
  25. text = "Reload"
  26. script = ExtResource("1_02c80")
  27. [node name="Label" type="Label" parent="VBoxContainer/HBoxContainer"]
  28. layout_mode = 2
  29. text = "Item List, click on an item to inspect it."
  30. [node name="LineEdit" type="LineEdit" parent="VBoxContainer/HBoxContainer"]
  31. layout_mode = 2
  32. size_flags_horizontal = 10
  33. placeholder_text = "Search"
  34. [node name="ItemList" type="ItemList" parent="VBoxContainer"]
  35. custom_minimum_size = Vector2(100, 100)
  36. layout_mode = 2
  37. size_flags_vertical = 3
  38. script = ExtResource("2_2kinw")
  39. [node name="HBoxContainer2" type="HBoxContainer" parent="VBoxContainer"]
  40. layout_mode = 2
  41. [node name="LineEdit" type="LineEdit" parent="VBoxContainer/HBoxContainer2"]
  42. custom_minimum_size = Vector2(140, 0)
  43. layout_mode = 2
  44. size_flags_horizontal = 10
  45. placeholder_text = "Item Filename"
  46. [node name="ItemTypeSelector" type="MenuButton" parent="VBoxContainer/HBoxContainer2"]
  47. layout_mode = 2
  48. text = "Type: BaseItem"
  49. flat = false
  50. icon_alignment = 2
  51. script = ExtResource("7_nn4vo")
  52. [node name="create item" type="Button" parent="VBoxContainer/HBoxContainer2"]
  53. layout_mode = 2
  54. text = "Create item"
  55. [node name="AcceptDialog" type="AcceptDialog" parent="VBoxContainer/HBoxContainer2"]
  56. [connection signal="pressed" from="VBoxContainer/HBoxContainer/Reload" to="VBoxContainer/HBoxContainer/Reload" method="_on_pressed"]
  57. [connection signal="text_changed" from="VBoxContainer/HBoxContainer/LineEdit" to="VBoxContainer/ItemList" method="_on_line_edit_text_changed"]
  58. [connection signal="item_clicked" from="VBoxContainer/ItemList" to="VBoxContainer/ItemList" method="_on_item_clicked"]
  59. [connection signal="pressed" from="VBoxContainer/HBoxContainer2/create item" to="VBoxContainer/ItemList" method="_on_create_item_pressed"]