LevelEditorTab.tscn 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. [gd_scene load_steps=10 format=3 uid="uid://m5o0l71ne3u4"]
  2. [ext_resource type="Texture2D" uid="uid://c6pd7cdhx78od" path="res://Assets/Sprites/UI/Tab.png" id="1_3ufth"]
  3. [ext_resource type="Script" uid="uid://kvlxhhkgtuk2" path="res://Scripts/UI/LevelEditorTab.gd" id="1_8b8gk"]
  4. [ext_resource type="Texture2D" uid="uid://bgjdnv8n8l1hb" path="res://Assets/Sprites/UI/TabSelected.png" id="2_8b8gk"]
  5. [ext_resource type="StyleBox" uid="uid://btw30ed0dg4bt" path="res://Resources/UI/Tab.tres" id="2_sup1d"]
  6. [ext_resource type="Texture2D" uid="uid://xsfs2psb84ql" path="res://Assets/Sprites/UI/EditorButtons.png" id="3_sup1d"]
  7. [sub_resource type="AtlasTexture" id="AtlasTexture_5mw2n"]
  8. atlas = ExtResource("3_sup1d")
  9. region = Rect2(0, 0, 16, 16)
  10. [sub_resource type="StyleBoxTexture" id="StyleBoxTexture_wt4vx"]
  11. texture = ExtResource("2_8b8gk")
  12. texture_margin_left = 2.0
  13. texture_margin_top = 2.0
  14. texture_margin_right = 2.0
  15. texture_margin_bottom = 2.0
  16. [sub_resource type="StyleBoxTexture" id="StyleBoxTexture_qebwb"]
  17. texture = ExtResource("1_3ufth")
  18. texture_margin_left = 2.0
  19. texture_margin_top = 2.0
  20. texture_margin_right = 2.0
  21. texture_margin_bottom = 2.0
  22. [sub_resource type="StyleBoxTexture" id="StyleBoxTexture_5mw2n"]
  23. texture = ExtResource("2_8b8gk")
  24. texture_margin_left = 2.0
  25. texture_margin_top = 2.0
  26. texture_margin_right = 2.0
  27. texture_margin_bottom = 2.0
  28. [node name="Parts" type="MarginContainer" groups=["EditorTabs"]]
  29. offset_right = 24.0
  30. offset_bottom = 24.0
  31. focus_mode = 2
  32. mouse_filter = 2
  33. theme_override_constants/margin_left = 0
  34. script = ExtResource("1_8b8gk")
  35. icon = SubResource("AtlasTexture_5mw2n")
  36. title = "Parts"
  37. [node name="Panel" type="Panel" parent="."]
  38. layout_mode = 2
  39. mouse_filter = 2
  40. theme_override_styles/panel = ExtResource("2_sup1d")
  41. [node name="Selected" type="Panel" parent="."]
  42. visible = false
  43. layout_mode = 2
  44. mouse_filter = 2
  45. theme_override_styles/panel = SubResource("StyleBoxTexture_wt4vx")
  46. [node name="Button" type="Button" parent="."]
  47. layout_mode = 2
  48. theme_override_styles/normal = SubResource("StyleBoxTexture_qebwb")
  49. theme_override_styles/pressed = SubResource("StyleBoxTexture_qebwb")
  50. theme_override_styles/hover = SubResource("StyleBoxTexture_qebwb")
  51. theme_override_styles/focus = SubResource("StyleBoxTexture_5mw2n")
  52. flat = true
  53. [node name="HBoxContainer" type="HBoxContainer" parent="."]
  54. layout_mode = 2
  55. mouse_filter = 2
  56. theme_override_constants/separation = -4
  57. [node name="TextureRect" type="TextureRect" parent="HBoxContainer"]
  58. custom_minimum_size = Vector2(24, 0)
  59. layout_mode = 2
  60. mouse_filter = 2
  61. texture = SubResource("AtlasTexture_5mw2n")
  62. stretch_mode = 3
  63. [node name="Label" type="Label" parent="HBoxContainer"]
  64. visible = false
  65. layout_mode = 2
  66. theme_override_colors/font_shadow_color = Color(0.96862745, 0.22352941, 0.0627451, 1)
  67. text = "Parts"
  68. uppercase = true
  69. [connection signal="focus_entered" from="." to="." method="tab_clicked"]
  70. [connection signal="pressed" from="Button" to="." method="tab_clicked"]