InventorySlot.tscn 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. [gd_scene load_steps=5 format=2]
  2. [ext_resource path="res://blue_panel.png" type="Texture" id=1]
  3. [ext_resource path="res://Scripts/UI/InventorySlot.gd" type="Script" id=2]
  4. [ext_resource path="res://Textures/UI/unknown_item.png" type="Texture" id=3]
  5. [ext_resource path="res://Fonts/hanken/hanken_18.tres" type="DynamicFont" id=4]
  6. [node name="InventorySlot" type="NinePatchRect"]
  7. anchor_left = 0.0
  8. anchor_top = 0.0
  9. anchor_right = 0.0
  10. anchor_bottom = 0.0
  11. margin_right = 54.0
  12. margin_bottom = 54.0
  13. rect_min_size = Vector2( 54, 54 )
  14. rect_pivot_offset = Vector2( 0, 0 )
  15. rect_clip_content = false
  16. mouse_filter = 2
  17. mouse_default_cursor_shape = 0
  18. size_flags_horizontal = 1
  19. size_flags_vertical = 1
  20. texture = ExtResource( 1 )
  21. patch_margin_left = 16
  22. patch_margin_top = 16
  23. patch_margin_right = 16
  24. patch_margin_bottom = 16
  25. script = ExtResource( 2 )
  26. _sections_unfolded = [ "Margin", "Material", "Patch Margin", "Rect", "Size Flags", "Visibility" ]
  27. sort_name = "0"
  28. [node name="InventoryImage" type="TextureRect" parent="." index="0"]
  29. anchor_left = 0.5
  30. anchor_top = 0.5
  31. anchor_right = 0.5
  32. anchor_bottom = 0.5
  33. margin_left = -19.0
  34. margin_top = -19.0
  35. margin_right = 19.0
  36. margin_bottom = 19.0
  37. rect_pivot_offset = Vector2( 0, 0 )
  38. rect_clip_content = false
  39. mouse_filter = 1
  40. mouse_default_cursor_shape = 0
  41. size_flags_horizontal = 1
  42. size_flags_vertical = 1
  43. texture = ExtResource( 3 )
  44. expand = true
  45. stretch_mode = 0
  46. _sections_unfolded = [ "Anchor", "Margin", "Material", "Rect", "Size Flags" ]
  47. [node name="CounterLabel" type="Label" parent="." index="1"]
  48. anchor_left = 0.0
  49. anchor_top = 1.0
  50. anchor_right = 0.0
  51. anchor_bottom = 1.0
  52. margin_left = 4.0
  53. margin_top = -19.0
  54. margin_right = 44.0
  55. rect_pivot_offset = Vector2( 0, 0 )
  56. rect_clip_content = false
  57. mouse_filter = 2
  58. mouse_default_cursor_shape = 0
  59. size_flags_horizontal = 1
  60. size_flags_vertical = 4
  61. custom_fonts/font = ExtResource( 4 )
  62. custom_colors/font_color = Color( 1, 1, 1, 1 )
  63. custom_colors/font_color_shadow = Color( 0, 0, 0, 0.193373 )
  64. text = "1"
  65. percent_visible = 1.0
  66. lines_skipped = 0
  67. max_lines_visible = -1
  68. _sections_unfolded = [ "Margin", "Material", "Rect", "custom_colors", "custom_fonts" ]