control_gallery.tscn 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494
  1. [gd_scene load_steps=5 format=3 uid="uid://dy11txudwdmgy"]
  2. [ext_resource type="Texture2D" uid="uid://bc22e06hdx8c" path="res://icon.webp" id="1_8tycj"]
  3. [ext_resource type="Script" path="res://tree.gd" id="2_68sc3"]
  4. [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_bl4wp"]
  5. content_margin_left = 10.0
  6. content_margin_top = 10.0
  7. content_margin_right = 10.0
  8. content_margin_bottom = 10.0
  9. bg_color = Color(0.309804, 0.309804, 0.309804, 1)
  10. corner_radius_top_left = 5
  11. corner_radius_top_right = 5
  12. corner_radius_bottom_right = 5
  13. corner_radius_bottom_left = 5
  14. [sub_resource type="ButtonGroup" id="ButtonGroup_t0nh8"]
  15. [node name="ControlGallery" type="Control"]
  16. layout_mode = 3
  17. anchors_preset = 15
  18. anchor_right = 1.0
  19. anchor_bottom = 1.0
  20. grow_horizontal = 2
  21. grow_vertical = 2
  22. [node name="MainPanel" type="ColorRect" parent="."]
  23. layout_mode = 1
  24. anchors_preset = 15
  25. anchor_right = 1.0
  26. anchor_bottom = 1.0
  27. grow_horizontal = 2
  28. grow_vertical = 2
  29. color = Color(0.211765, 0.211765, 0.211765, 1)
  30. [node name="HSplitContainer" type="HSplitContainer" parent="MainPanel"]
  31. layout_mode = 1
  32. anchors_preset = 15
  33. anchor_right = 1.0
  34. anchor_bottom = 1.0
  35. offset_left = 5.0
  36. offset_top = 5.0
  37. offset_right = -5.0
  38. offset_bottom = -5.0
  39. grow_horizontal = 2
  40. grow_vertical = 2
  41. theme_override_constants/separation = 0
  42. theme_override_constants/minimum_grab_thickness = 24
  43. [node name="BasicControls" type="PanelContainer" parent="MainPanel/HSplitContainer"]
  44. layout_mode = 2
  45. size_flags_horizontal = 3
  46. theme_override_styles/panel = SubResource("StyleBoxFlat_bl4wp")
  47. [node name="VBoxContainer" type="VBoxContainer" parent="MainPanel/HSplitContainer/BasicControls"]
  48. layout_mode = 2
  49. size_flags_horizontal = 3
  50. [node name="Title" type="Label" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer"]
  51. layout_mode = 2
  52. theme_override_font_sizes/font_size = 24
  53. text = "Basic controls"
  54. horizontal_alignment = 1
  55. [node name="Button" type="Button" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer"]
  56. layout_mode = 2
  57. text = "Button"
  58. [node name="LinkButton" type="LinkButton" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer"]
  59. layout_mode = 2
  60. tooltip_text = "This is a tooltip.
  61. Its background is styled using the TooltipPanel class within a Theme resource.
  62. Its text is styled using the TooltipLabel class within a Theme resource."
  63. text = "LinkButton (hover me for tooltip)"
  64. [node name="ColorPickerContainer" type="HBoxContainer" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer"]
  65. layout_mode = 2
  66. [node name="ColorPickerButton" type="ColorPickerButton" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/ColorPickerContainer"]
  67. layout_mode = 2
  68. size_flags_horizontal = 3
  69. size_flags_stretch_ratio = 0.3
  70. color = Color(0.278431, 0.54902, 0.74902, 1)
  71. [node name="Label" type="Label" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/ColorPickerContainer"]
  72. layout_mode = 2
  73. size_flags_horizontal = 3
  74. text = "ColorPickerButton"
  75. [node name="CheckBox" type="CheckBox" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer"]
  76. layout_mode = 2
  77. text = "CheckBox"
  78. [node name="CheckButton" type="CheckButton" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer"]
  79. layout_mode = 2
  80. text = "CheckButton"
  81. [node name="LineEdit" type="LineEdit" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer"]
  82. layout_mode = 2
  83. text = "LineEdit"
  84. [node name="TextEdit" type="TextEdit" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer"]
  85. custom_minimum_size = Vector2(0, 110)
  86. layout_mode = 2
  87. text = "TextEdit
  88. Unlike LineEdit, I accept multiple lines."
  89. [node name="Label" type="Label" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer"]
  90. layout_mode = 2
  91. text = "Label"
  92. [node name="TabContainer" type="TabContainer" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer"]
  93. custom_minimum_size = Vector2(0, 236)
  94. layout_mode = 2
  95. [node name="Tab 1" type="Control" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer"]
  96. layout_mode = 2
  97. [node name="MarginContainer" type="MarginContainer" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 1"]
  98. layout_mode = 1
  99. anchors_preset = 15
  100. anchor_right = 1.0
  101. anchor_bottom = 1.0
  102. grow_horizontal = 2
  103. grow_vertical = 2
  104. theme_override_constants/margin_left = 10
  105. theme_override_constants/margin_top = 30
  106. theme_override_constants/margin_right = 10
  107. theme_override_constants/margin_bottom = 30
  108. [node name="RichTextLabel" type="RichTextLabel" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 1/MarginContainer"]
  109. layout_mode = 2
  110. focus_mode = 2
  111. bbcode_enabled = true
  112. text = "[center]RichTextLabel: [color=#8ff]Tab 1[/color] is selected.[/center]"
  113. context_menu_enabled = true
  114. selection_enabled = true
  115. [node name="Tab 2" type="Control" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer"]
  116. visible = false
  117. layout_mode = 2
  118. [node name="MarginContainer" type="MarginContainer" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 2"]
  119. layout_mode = 1
  120. anchors_preset = 15
  121. anchor_right = 1.0
  122. anchor_bottom = 1.0
  123. grow_horizontal = 2
  124. grow_vertical = 2
  125. theme_override_constants/margin_left = 10
  126. theme_override_constants/margin_top = 30
  127. theme_override_constants/margin_right = 10
  128. theme_override_constants/margin_bottom = 30
  129. [node name="RichTextLabel" type="RichTextLabel" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 2/MarginContainer"]
  130. layout_mode = 2
  131. focus_mode = 2
  132. bbcode_enabled = true
  133. text = "[center]RichTextLabel: [color=#ff8]Tab 2[/color] is selected.[/center]"
  134. context_menu_enabled = true
  135. selection_enabled = true
  136. [node name="Tab 3" type="Control" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer"]
  137. visible = false
  138. layout_mode = 2
  139. [node name="MarginContainer" type="MarginContainer" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 3"]
  140. layout_mode = 1
  141. anchors_preset = 15
  142. anchor_right = 1.0
  143. anchor_bottom = 1.0
  144. grow_horizontal = 2
  145. grow_vertical = 2
  146. theme_override_constants/margin_left = 10
  147. theme_override_constants/margin_top = 30
  148. theme_override_constants/margin_right = 10
  149. theme_override_constants/margin_bottom = 30
  150. [node name="RichTextLabel" type="RichTextLabel" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 3/MarginContainer"]
  151. layout_mode = 2
  152. focus_mode = 2
  153. bbcode_enabled = true
  154. text = "[center]RichTextLabel: [color=#8f8]Tab 3[/color] is selected.[/center]"
  155. context_menu_enabled = true
  156. selection_enabled = true
  157. [node name="Tab 4" type="Control" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer"]
  158. visible = false
  159. layout_mode = 2
  160. [node name="MarginContainer" type="MarginContainer" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 4"]
  161. layout_mode = 1
  162. anchors_preset = 15
  163. anchor_right = 1.0
  164. anchor_bottom = 1.0
  165. grow_horizontal = 2
  166. grow_vertical = 2
  167. theme_override_constants/margin_left = 10
  168. theme_override_constants/margin_top = 30
  169. theme_override_constants/margin_right = 10
  170. theme_override_constants/margin_bottom = 30
  171. [node name="RichTextLabel" type="RichTextLabel" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 4/MarginContainer"]
  172. layout_mode = 2
  173. focus_mode = 2
  174. bbcode_enabled = true
  175. text = "[center]RichTextLabel: [color=#f88]Tab 4[/color] is selected.[/center]"
  176. context_menu_enabled = true
  177. selection_enabled = true
  178. [node name="Tab 5" type="Control" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer"]
  179. visible = false
  180. layout_mode = 2
  181. [node name="MarginContainer" type="MarginContainer" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 5"]
  182. layout_mode = 1
  183. anchors_preset = 15
  184. anchor_right = 1.0
  185. anchor_bottom = 1.0
  186. grow_horizontal = 2
  187. grow_vertical = 2
  188. theme_override_constants/margin_left = 10
  189. theme_override_constants/margin_top = 30
  190. theme_override_constants/margin_right = 10
  191. theme_override_constants/margin_bottom = 30
  192. [node name="RichTextLabel" type="RichTextLabel" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 5/MarginContainer"]
  193. layout_mode = 2
  194. focus_mode = 2
  195. bbcode_enabled = true
  196. text = "[center]RichTextLabel: [color=#f8f]Tab 5[/color] is selected.[/center]"
  197. context_menu_enabled = true
  198. selection_enabled = true
  199. [node name="Tab 6" type="Control" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer"]
  200. visible = false
  201. layout_mode = 2
  202. [node name="MarginContainer" type="MarginContainer" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 6"]
  203. layout_mode = 1
  204. anchors_preset = 15
  205. anchor_right = 1.0
  206. anchor_bottom = 1.0
  207. grow_horizontal = 2
  208. grow_vertical = 2
  209. theme_override_constants/margin_left = 10
  210. theme_override_constants/margin_top = 30
  211. theme_override_constants/margin_right = 10
  212. theme_override_constants/margin_bottom = 30
  213. [node name="RichTextLabel" type="RichTextLabel" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 6/MarginContainer"]
  214. layout_mode = 2
  215. focus_mode = 2
  216. bbcode_enabled = true
  217. text = "[center]RichTextLabel: [color=#b8f]Tab 6[/color] is selected.[/center]"
  218. context_menu_enabled = true
  219. selection_enabled = true
  220. [node name="Tab 7" type="Control" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer"]
  221. visible = false
  222. layout_mode = 2
  223. [node name="MarginContainer" type="MarginContainer" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 7"]
  224. layout_mode = 1
  225. anchors_preset = 15
  226. anchor_right = 1.0
  227. anchor_bottom = 1.0
  228. grow_horizontal = 2
  229. grow_vertical = 2
  230. theme_override_constants/margin_left = 10
  231. theme_override_constants/margin_top = 30
  232. theme_override_constants/margin_right = 10
  233. theme_override_constants/margin_bottom = 30
  234. [node name="RichTextLabel" type="RichTextLabel" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 7/MarginContainer"]
  235. layout_mode = 2
  236. focus_mode = 2
  237. bbcode_enabled = true
  238. text = "[center]RichTextLabel: [color=#fb6]Tab 7[/color] is selected.[/center]"
  239. context_menu_enabled = true
  240. selection_enabled = true
  241. [node name="VSplitContainer" type="VSplitContainer" parent="MainPanel/HSplitContainer"]
  242. layout_mode = 2
  243. size_flags_horizontal = 3
  244. size_flags_stretch_ratio = 2.0
  245. theme_override_constants/separation = 0
  246. theme_override_constants/minimum_grab_thickness = 24
  247. [node name="Numbers" type="PanelContainer" parent="MainPanel/HSplitContainer/VSplitContainer"]
  248. layout_mode = 2
  249. theme_override_styles/panel = SubResource("StyleBoxFlat_bl4wp")
  250. [node name="VBoxContainer" type="VBoxContainer" parent="MainPanel/HSplitContainer/VSplitContainer/Numbers"]
  251. layout_mode = 2
  252. [node name="Title" type="Label" parent="MainPanel/HSplitContainer/VSplitContainer/Numbers/VBoxContainer"]
  253. layout_mode = 2
  254. theme_override_font_sizes/font_size = 24
  255. text = "Numbers"
  256. horizontal_alignment = 1
  257. [node name="SpinBox" type="SpinBox" parent="MainPanel/HSplitContainer/VSplitContainer/Numbers/VBoxContainer"]
  258. custom_minimum_size = Vector2(255, 0)
  259. layout_mode = 2
  260. size_flags_horizontal = 0
  261. prefix = "SpinBox"
  262. [node name="HSliderContainer" type="HBoxContainer" parent="MainPanel/HSplitContainer/VSplitContainer/Numbers/VBoxContainer"]
  263. layout_mode = 2
  264. theme_override_constants/separation = 10
  265. [node name="HSlider" type="HSlider" parent="MainPanel/HSplitContainer/VSplitContainer/Numbers/VBoxContainer/HSliderContainer"]
  266. layout_mode = 2
  267. size_flags_horizontal = 3
  268. size_flags_stretch_ratio = 0.5
  269. value = 50.0
  270. [node name="Label" type="Label" parent="MainPanel/HSplitContainer/VSplitContainer/Numbers/VBoxContainer/HSliderContainer"]
  271. layout_mode = 2
  272. size_flags_horizontal = 3
  273. text = "HSlider"
  274. [node name="ProgressBarContainer" type="HBoxContainer" parent="MainPanel/HSplitContainer/VSplitContainer/Numbers/VBoxContainer"]
  275. layout_mode = 2
  276. theme_override_constants/separation = 10
  277. [node name="ProgressBar" type="ProgressBar" parent="MainPanel/HSplitContainer/VSplitContainer/Numbers/VBoxContainer/ProgressBarContainer"]
  278. layout_mode = 2
  279. size_flags_horizontal = 3
  280. size_flags_stretch_ratio = 0.5
  281. value = 50.0
  282. [node name="Label" type="Label" parent="MainPanel/HSplitContainer/VSplitContainer/Numbers/VBoxContainer/ProgressBarContainer"]
  283. layout_mode = 2
  284. size_flags_horizontal = 3
  285. text = "ProgressBar"
  286. [node name="HSeparatorContainer" type="HBoxContainer" parent="MainPanel/HSplitContainer/VSplitContainer/Numbers/VBoxContainer"]
  287. layout_mode = 2
  288. [node name="HSeparatorLeft" type="HSeparator" parent="MainPanel/HSplitContainer/VSplitContainer/Numbers/VBoxContainer/HSeparatorContainer"]
  289. layout_mode = 2
  290. size_flags_horizontal = 3
  291. [node name="Label" type="Label" parent="MainPanel/HSplitContainer/VSplitContainer/Numbers/VBoxContainer/HSeparatorContainer"]
  292. layout_mode = 2
  293. text = "HSeparator"
  294. [node name="HSeparatorRight" type="HSeparator" parent="MainPanel/HSplitContainer/VSplitContainer/Numbers/VBoxContainer/HSeparatorContainer"]
  295. layout_mode = 2
  296. size_flags_horizontal = 3
  297. [node name="TextureProgressContainer" type="HBoxContainer" parent="MainPanel/HSplitContainer/VSplitContainer/Numbers/VBoxContainer"]
  298. layout_mode = 2
  299. [node name="Control" type="Control" parent="MainPanel/HSplitContainer/VSplitContainer/Numbers/VBoxContainer/TextureProgressContainer"]
  300. custom_minimum_size = Vector2(64, 64)
  301. layout_mode = 2
  302. [node name="TextureProgressBar" type="TextureProgressBar" parent="MainPanel/HSplitContainer/VSplitContainer/Numbers/VBoxContainer/TextureProgressContainer/Control"]
  303. layout_mode = 0
  304. offset_right = 128.0
  305. offset_bottom = 128.0
  306. scale = Vector2(0.5, 0.5)
  307. value = 67.0
  308. fill_mode = 4
  309. texture_progress = ExtResource("1_8tycj")
  310. [node name="Label" type="Label" parent="MainPanel/HSplitContainer/VSplitContainer/Numbers/VBoxContainer/TextureProgressContainer"]
  311. layout_mode = 2
  312. text = "TextureProgressBar"
  313. [node name="Lists" type="PanelContainer" parent="MainPanel/HSplitContainer/VSplitContainer"]
  314. layout_mode = 2
  315. size_flags_horizontal = 3
  316. size_flags_vertical = 3
  317. size_flags_stretch_ratio = 2.5
  318. theme_override_styles/panel = SubResource("StyleBoxFlat_bl4wp")
  319. [node name="VBoxContainer" type="VBoxContainer" parent="MainPanel/HSplitContainer/VSplitContainer/Lists"]
  320. layout_mode = 2
  321. [node name="Title" type="Label" parent="MainPanel/HSplitContainer/VSplitContainer/Lists/VBoxContainer"]
  322. layout_mode = 2
  323. theme_override_font_sizes/font_size = 24
  324. text = "Lists"
  325. horizontal_alignment = 1
  326. [node name="HBoxContainer" type="HBoxContainer" parent="MainPanel/HSplitContainer/VSplitContainer/Lists/VBoxContainer"]
  327. layout_mode = 2
  328. size_flags_vertical = 3
  329. theme_override_constants/separation = 10
  330. [node name="VBoxContainer" type="VBoxContainer" parent="MainPanel/HSplitContainer/VSplitContainer/Lists/VBoxContainer/HBoxContainer"]
  331. layout_mode = 2
  332. size_flags_horizontal = 3
  333. [node name="OptionButton" type="OptionButton" parent="MainPanel/HSplitContainer/VSplitContainer/Lists/VBoxContainer/HBoxContainer/VBoxContainer"]
  334. layout_mode = 2
  335. size_flags_horizontal = 0
  336. item_count = 5
  337. selected = 0
  338. popup/item_0/text = "OptionButton"
  339. popup/item_0/id = 4
  340. popup/item_1/text = "Item 1"
  341. popup/item_1/id = 0
  342. popup/item_2/text = "Item 2"
  343. popup/item_2/id = 1
  344. popup/item_3/text = "Separator"
  345. popup/item_3/id = 3
  346. popup/item_3/separator = true
  347. popup/item_4/text = "Disabled Item"
  348. popup/item_4/id = 2
  349. popup/item_4/disabled = true
  350. [node name="MenuButton" type="MenuButton" parent="MainPanel/HSplitContainer/VSplitContainer/Lists/VBoxContainer/HBoxContainer/VBoxContainer"]
  351. custom_minimum_size = Vector2(150, 0)
  352. layout_mode = 2
  353. size_flags_horizontal = 0
  354. text = "MenuButton"
  355. flat = false
  356. item_count = 8
  357. popup/item_0/text = "Action Item"
  358. popup/item_0/id = 0
  359. popup/item_1/text = "Separator"
  360. popup/item_1/id = 1
  361. popup/item_1/separator = true
  362. popup/item_2/text = "Checkbox Item 1"
  363. popup/item_2/checkable = 1
  364. popup/item_2/id = 2
  365. popup/item_3/text = "Checkbox Item 2"
  366. popup/item_3/checkable = 1
  367. popup/item_3/id = 3
  368. popup/item_4/text = "Disabled Checkbox Item"
  369. popup/item_4/checkable = 1
  370. popup/item_4/id = 4
  371. popup/item_4/disabled = true
  372. popup/item_5/text = "Separator"
  373. popup/item_5/id = 5
  374. popup/item_5/separator = true
  375. popup/item_6/text = "Radio Item 1"
  376. popup/item_6/checkable = 2
  377. popup/item_6/checked = true
  378. popup/item_6/id = 6
  379. popup/item_7/text = "Radio Item 2"
  380. popup/item_7/checkable = 2
  381. popup/item_7/id = 7
  382. [node name="RadioButtons" type="VBoxContainer" parent="MainPanel/HSplitContainer/VSplitContainer/Lists/VBoxContainer/HBoxContainer/VBoxContainer"]
  383. layout_mode = 2
  384. size_flags_horizontal = 0
  385. [node name="CheckBox" type="CheckBox" parent="MainPanel/HSplitContainer/VSplitContainer/Lists/VBoxContainer/HBoxContainer/VBoxContainer/RadioButtons"]
  386. layout_mode = 2
  387. button_pressed = true
  388. button_group = SubResource("ButtonGroup_t0nh8")
  389. text = "CheckBox with ButtonGroup assigned 1"
  390. [node name="CheckBox2" type="CheckBox" parent="MainPanel/HSplitContainer/VSplitContainer/Lists/VBoxContainer/HBoxContainer/VBoxContainer/RadioButtons"]
  391. layout_mode = 2
  392. button_group = SubResource("ButtonGroup_t0nh8")
  393. text = "CheckBox with ButtonGroup assigned 2"
  394. [node name="CheckBox3" type="CheckBox" parent="MainPanel/HSplitContainer/VSplitContainer/Lists/VBoxContainer/HBoxContainer/VBoxContainer/RadioButtons"]
  395. layout_mode = 2
  396. button_group = SubResource("ButtonGroup_t0nh8")
  397. text = "CheckBox with ButtonGroup assigned 3"
  398. [node name="ItemList" type="ItemList" parent="MainPanel/HSplitContainer/VSplitContainer/Lists/VBoxContainer/HBoxContainer/VBoxContainer"]
  399. layout_mode = 2
  400. size_flags_vertical = 3
  401. select_mode = 1
  402. item_count = 4
  403. fixed_icon_size = Vector2i(16, 16)
  404. item_0/text = "ItemList - Item 1"
  405. item_1/text = "ItemList - Item 2"
  406. item_2/text = "ItemList - Disabled item with icon assigned"
  407. item_2/icon = ExtResource("1_8tycj")
  408. item_2/disabled = true
  409. item_3/text = "ItemList - Item 3 with icon assigned"
  410. item_3/icon = ExtResource("1_8tycj")
  411. [node name="VBoxContainer2" type="VBoxContainer" parent="MainPanel/HSplitContainer/VSplitContainer/Lists/VBoxContainer/HBoxContainer"]
  412. layout_mode = 2
  413. size_flags_horizontal = 3
  414. [node name="Tree" type="Tree" parent="MainPanel/HSplitContainer/VSplitContainer/Lists/VBoxContainer/HBoxContainer/VBoxContainer2"]
  415. layout_mode = 2
  416. size_flags_vertical = 3
  417. select_mode = 2
  418. script = ExtResource("2_68sc3")