AssetPanel.tscn 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. [gd_scene load_steps=4 format=3 uid="uid://ele8o7eeuxa4"]
  2. [ext_resource type="Script" uid="uid://c5haff0ydxge5" path="res://Scripts/panel/asset_panel.gd" id="1_r3mew"]
  3. [ext_resource type="Theme" uid="uid://dmgdeh6kw3b7u" path="res://Resources/Theme/basic_theme.tres" id="2_0s2fn"]
  4. [ext_resource type="Texture2D" uid="uid://dxpdxw5opo110" path="res://Resources/UI/refresh.png" id="3_hjq1m"]
  5. [node name="AssetPanel" type="PanelContainer"]
  6. anchors_preset = 15
  7. anchor_right = 1.0
  8. anchor_bottom = 1.0
  9. grow_horizontal = 2
  10. grow_vertical = 2
  11. script = ExtResource("1_r3mew")
  12. [node name="MarginContainer" type="MarginContainer" parent="."]
  13. layout_mode = 2
  14. theme = ExtResource("2_0s2fn")
  15. theme_override_constants/margin_bottom = 1
  16. [node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
  17. layout_mode = 2
  18. [node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
  19. layout_mode = 2
  20. [node name="RichTextLabel" type="RichTextLabel" parent="MarginContainer/VBoxContainer/HBoxContainer"]
  21. custom_minimum_size = Vector2(60, 0)
  22. layout_mode = 2
  23. bbcode_enabled = true
  24. text = "[font_size=20][b]Asset[/b][/font_size]"
  25. fit_content = true
  26. scroll_active = false
  27. [node name="RefreshButton" type="Button" parent="MarginContainer/VBoxContainer/HBoxContainer"]
  28. layout_mode = 2
  29. theme = ExtResource("2_0s2fn")
  30. icon = ExtResource("3_hjq1m")
  31. icon_alignment = 1
  32. [node name="Control" type="Control" parent="MarginContainer/VBoxContainer/HBoxContainer"]
  33. layout_mode = 2
  34. size_flags_horizontal = 3
  35. [node name="SearchLineEdit" type="LineEdit" parent="MarginContainer/VBoxContainer/HBoxContainer"]
  36. custom_minimum_size = Vector2(180, 0)
  37. layout_mode = 2
  38. theme = ExtResource("2_0s2fn")
  39. placeholder_text = "Search..."
  40. clear_button_enabled = true
  41. [node name="ItemList" type="ItemList" parent="MarginContainer/VBoxContainer"]
  42. layout_mode = 2
  43. size_flags_vertical = 3
  44. theme = ExtResource("2_0s2fn")
  45. max_columns = 9999
  46. fixed_column_width = 100
  47. icon_mode = 0
  48. fixed_icon_size = Vector2i(80, 80)