PopupMenu.xml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="PopupMenu" inherits="Popup" category="Core" version="3.1.2">
  3. <brief_description>
  4. PopupMenu displays a list of options.
  5. </brief_description>
  6. <description>
  7. [PopupMenu] is a [Control] that displays a list of options. They are popular in toolbars or context menus.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <methods>
  12. <method name="add_check_item">
  13. <return type="void">
  14. </return>
  15. <argument index="0" name="label" type="String">
  16. </argument>
  17. <argument index="1" name="id" type="int" default="-1">
  18. </argument>
  19. <argument index="2" name="accel" type="int" default="0">
  20. </argument>
  21. <description>
  22. Adds a new checkable item with text [code]label[/code].
  23. An [code]id[/code] can optionally be provided, as well as an accelerator ([code]accel[/code]). If no [code]id[/code] is provided, one will be created from the index. If no [code]accel[/code] is provided then the default [code]0[/code] will be assigned to it. See [method get_item_accelerator] for more info on accelerators.
  24. [b]Note:[/b] Checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. See [method set_item_checked] for more info on how to control it.
  25. </description>
  26. </method>
  27. <method name="add_check_shortcut">
  28. <return type="void">
  29. </return>
  30. <argument index="0" name="shortcut" type="ShortCut">
  31. </argument>
  32. <argument index="1" name="id" type="int" default="-1">
  33. </argument>
  34. <argument index="2" name="global" type="bool" default="false">
  35. </argument>
  36. <description>
  37. Adds a new checkable item and assigns the specified [ShortCut] to it. Sets the label of the checkbox to the [ShortCut]'s name.
  38. An [code]id[/code] can optionally be provided. If no [code]id[/code] is provided, one will be created from the index.
  39. [b]Note:[/b] Checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. See [method set_item_checked] for more info on how to control it.
  40. </description>
  41. </method>
  42. <method name="add_icon_check_item">
  43. <return type="void">
  44. </return>
  45. <argument index="0" name="texture" type="Texture">
  46. </argument>
  47. <argument index="1" name="label" type="String">
  48. </argument>
  49. <argument index="2" name="id" type="int" default="-1">
  50. </argument>
  51. <argument index="3" name="accel" type="int" default="0">
  52. </argument>
  53. <description>
  54. Adds a new checkable item with text [code]label[/code] and icon [code]texture[/code].
  55. An [code]id[/code] can optionally be provided, as well as an accelerator ([code]accel[/code]). If no [code]id[/code] is provided, one will be created from the index. If no [code]accel[/code] is provided then the default [code]0[/code] will be assigned to it. See [method get_item_accelerator] for more info on accelerators.
  56. [b]Note:[/b] Checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. See [method set_item_checked] for more info on how to control it.
  57. </description>
  58. </method>
  59. <method name="add_icon_check_shortcut">
  60. <return type="void">
  61. </return>
  62. <argument index="0" name="texture" type="Texture">
  63. </argument>
  64. <argument index="1" name="shortcut" type="ShortCut">
  65. </argument>
  66. <argument index="2" name="id" type="int" default="-1">
  67. </argument>
  68. <argument index="3" name="global" type="bool" default="false">
  69. </argument>
  70. <description>
  71. Adds a new checkable item and assigns the specified [ShortCut] and icon [code]texture[/code] to it. Sets the label of the checkbox to the [ShortCut]'s name.
  72. An [code]id[/code] can optionally be provided. If no [code]id[/code] is provided, one will be created from the index.
  73. [b]Note:[/b] Checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. See [method set_item_checked] for more info on how to control it.
  74. </description>
  75. </method>
  76. <method name="add_icon_item">
  77. <return type="void">
  78. </return>
  79. <argument index="0" name="texture" type="Texture">
  80. </argument>
  81. <argument index="1" name="label" type="String">
  82. </argument>
  83. <argument index="2" name="id" type="int" default="-1">
  84. </argument>
  85. <argument index="3" name="accel" type="int" default="0">
  86. </argument>
  87. <description>
  88. Adds a new item with text [code]label[/code] and icon [code]texture[/code].
  89. An [code]id[/code] can optionally be provided, as well as an accelerator ([code]accel[/code]). If no [code]id[/code] is provided, one will be created from the index. If no [code]accel[/code] is provided then the default [code]0[/code] will be assigned to it. See [method get_item_accelerator] for more info on accelerators.
  90. </description>
  91. </method>
  92. <method name="add_icon_shortcut">
  93. <return type="void">
  94. </return>
  95. <argument index="0" name="texture" type="Texture">
  96. </argument>
  97. <argument index="1" name="shortcut" type="ShortCut">
  98. </argument>
  99. <argument index="2" name="id" type="int" default="-1">
  100. </argument>
  101. <argument index="3" name="global" type="bool" default="false">
  102. </argument>
  103. <description>
  104. Adds a new item and assigns the specified [ShortCut] and icon [code]texture[/code] to it. Sets the label of the checkbox to the [ShortCut]'s name.
  105. An [code]id[/code] can optionally be provided. If no [code]id[/code] is provided, one will be created from the index.
  106. </description>
  107. </method>
  108. <method name="add_item">
  109. <return type="void">
  110. </return>
  111. <argument index="0" name="label" type="String">
  112. </argument>
  113. <argument index="1" name="id" type="int" default="-1">
  114. </argument>
  115. <argument index="2" name="accel" type="int" default="0">
  116. </argument>
  117. <description>
  118. Adds a new item with text [code]label[/code].
  119. An [code]id[/code] can optionally be provided, as well as an accelerator ([code]accel[/code]). If no [code]id[/code] is provided, one will be created from the index. If no [code]accel[/code] is provided then the default [code]0[/code] will be assigned to it. See [method get_item_accelerator] for more info on accelerators.
  120. </description>
  121. </method>
  122. <method name="add_radio_check_item">
  123. <return type="void">
  124. </return>
  125. <argument index="0" name="label" type="String">
  126. </argument>
  127. <argument index="1" name="id" type="int" default="-1">
  128. </argument>
  129. <argument index="2" name="accel" type="int" default="0">
  130. </argument>
  131. <description>
  132. Adds a new radio button with text [code]label[/code].
  133. An [code]id[/code] can optionally be provided, as well as an accelerator ([code]accel[/code]). If no [code]id[/code] is provided, one will be created from the index. If no [code]accel[/code] is provided then the default [code]0[/code] will be assigned to it. See [method get_item_accelerator] for more info on accelerators.
  134. [b]Note:[/b] Checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. See [method set_item_checked] for more info on how to control it.
  135. </description>
  136. </method>
  137. <method name="add_radio_check_shortcut">
  138. <return type="void">
  139. </return>
  140. <argument index="0" name="shortcut" type="ShortCut">
  141. </argument>
  142. <argument index="1" name="id" type="int" default="-1">
  143. </argument>
  144. <argument index="2" name="global" type="bool" default="false">
  145. </argument>
  146. <description>
  147. Adds a new radio check button and assigns a [ShortCut] to it. Sets the label of the checkbox to the [ShortCut]'s name.
  148. An [code]id[/code] can optionally be provided. If no [code]id[/code] is provided, one will be created from the index.
  149. [b]Note:[/b] Checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. See [method set_item_checked] for more info on how to control it.
  150. </description>
  151. </method>
  152. <method name="add_separator">
  153. <return type="void">
  154. </return>
  155. <argument index="0" name="label" type="String" default="&quot;&quot;">
  156. </argument>
  157. <description>
  158. Add a separator between items. Separators also occupy an index.
  159. </description>
  160. </method>
  161. <method name="add_shortcut">
  162. <return type="void">
  163. </return>
  164. <argument index="0" name="shortcut" type="ShortCut">
  165. </argument>
  166. <argument index="1" name="id" type="int" default="-1">
  167. </argument>
  168. <argument index="2" name="global" type="bool" default="false">
  169. </argument>
  170. <description>
  171. Adds a [ShortCut].
  172. An [code]id[/code] can optionally be provided. If no [code]id[/code] is provided, one will be created from the index.
  173. </description>
  174. </method>
  175. <method name="add_submenu_item">
  176. <return type="void">
  177. </return>
  178. <argument index="0" name="label" type="String">
  179. </argument>
  180. <argument index="1" name="submenu" type="String">
  181. </argument>
  182. <argument index="2" name="id" type="int" default="-1">
  183. </argument>
  184. <description>
  185. Adds an item that will act as a submenu of the parent [PopupMenu] node when clicked. The [code]submenu[/code] argument is the name of the child [PopupMenu] node that will be shown when the item is clicked.
  186. An [code]id[/code] can optionally be provided. If no [code]id[/code] is provided, one will be created from the index.
  187. </description>
  188. </method>
  189. <method name="clear">
  190. <return type="void">
  191. </return>
  192. <description>
  193. Removes all items from the [PopupMenu].
  194. </description>
  195. </method>
  196. <method name="get_item_accelerator" qualifiers="const">
  197. <return type="int">
  198. </return>
  199. <argument index="0" name="idx" type="int">
  200. </argument>
  201. <description>
  202. Returns the accelerator of the item at index "idx". Accelerators are special combinations of keys that activate the item, no matter which control is focused.
  203. </description>
  204. </method>
  205. <method name="get_item_count" qualifiers="const">
  206. <return type="int">
  207. </return>
  208. <description>
  209. Returns the number of items in the [PopupMenu].
  210. </description>
  211. </method>
  212. <method name="get_item_icon" qualifiers="const">
  213. <return type="Texture">
  214. </return>
  215. <argument index="0" name="idx" type="int">
  216. </argument>
  217. <description>
  218. Returns the icon of the item at index "idx".
  219. </description>
  220. </method>
  221. <method name="get_item_id" qualifiers="const">
  222. <return type="int">
  223. </return>
  224. <argument index="0" name="idx" type="int">
  225. </argument>
  226. <description>
  227. Returns the id of the item at index [code]idx[/code]. [code]id[/code] can be manually assigned, while index can not.
  228. </description>
  229. </method>
  230. <method name="get_item_index" qualifiers="const">
  231. <return type="int">
  232. </return>
  233. <argument index="0" name="id" type="int">
  234. </argument>
  235. <description>
  236. Returns the index of the item containing the specified [code]id[/code]. Index is automatically assigned to each item by the engine. Index can not be set manualy.
  237. </description>
  238. </method>
  239. <method name="get_item_metadata" qualifiers="const">
  240. <return type="Variant">
  241. </return>
  242. <argument index="0" name="idx" type="int">
  243. </argument>
  244. <description>
  245. Returns the metadata of the specified item, which might be of any type. You can set it with [method set_item_metadata], which provides a simple way of assigning context data to items.
  246. </description>
  247. </method>
  248. <method name="get_item_shortcut" qualifiers="const">
  249. <return type="ShortCut">
  250. </return>
  251. <argument index="0" name="idx" type="int">
  252. </argument>
  253. <description>
  254. Returns the [ShortCut] associated with the specified [code]idx[/code] item.
  255. </description>
  256. </method>
  257. <method name="get_item_submenu" qualifiers="const">
  258. <return type="String">
  259. </return>
  260. <argument index="0" name="idx" type="int">
  261. </argument>
  262. <description>
  263. Returns the submenu name of the item at index [code]idx[/code]. See [method add_submenu_item] for more info on how to add a submenu.
  264. </description>
  265. </method>
  266. <method name="get_item_text" qualifiers="const">
  267. <return type="String">
  268. </return>
  269. <argument index="0" name="idx" type="int">
  270. </argument>
  271. <description>
  272. Returns the text of the item at index "idx".
  273. </description>
  274. </method>
  275. <method name="get_item_tooltip" qualifiers="const">
  276. <return type="String">
  277. </return>
  278. <argument index="0" name="idx" type="int">
  279. </argument>
  280. <description>
  281. Returns the tooltip associated with the specified index index [code]idx[/code].
  282. </description>
  283. </method>
  284. <method name="is_hide_on_window_lose_focus" qualifiers="const">
  285. <return type="bool">
  286. </return>
  287. <description>
  288. Returns whether the popup will be hidden when the window loses focus or not.
  289. </description>
  290. </method>
  291. <method name="is_item_checkable" qualifiers="const">
  292. <return type="bool">
  293. </return>
  294. <argument index="0" name="idx" type="int">
  295. </argument>
  296. <description>
  297. Returns whether the item at index "idx" is checkable in some way, i.e., whether has a checkbox or radio button. Note that checkable items just display a checkmark or radio button, but don't have any built-in checking behavior and must be checked/unchecked manually.
  298. </description>
  299. </method>
  300. <method name="is_item_checked" qualifiers="const">
  301. <return type="bool">
  302. </return>
  303. <argument index="0" name="idx" type="int">
  304. </argument>
  305. <description>
  306. Returns whether the item at index "idx" is checked.
  307. </description>
  308. </method>
  309. <method name="is_item_disabled" qualifiers="const">
  310. <return type="bool">
  311. </return>
  312. <argument index="0" name="idx" type="int">
  313. </argument>
  314. <description>
  315. Returns [code]true[/code] if the item at index [code]idx[/code] is disabled. When it is disabled it can't be selected, or its action invoked.
  316. See [method set_item_disabled] for more info on how to disable an item.
  317. </description>
  318. </method>
  319. <method name="is_item_radio_checkable" qualifiers="const">
  320. <return type="bool">
  321. </return>
  322. <argument index="0" name="idx" type="int">
  323. </argument>
  324. <description>
  325. Returns [code]true[/code] if the item at index [code]idx[/code] has radio button-style checkability.
  326. [b]Note:[/b] This is purely cosmetic; you must add the logic for checking/unchecking items in radio groups.
  327. </description>
  328. </method>
  329. <method name="is_item_separator" qualifiers="const">
  330. <return type="bool">
  331. </return>
  332. <argument index="0" name="idx" type="int">
  333. </argument>
  334. <description>
  335. Returns [code]true[/code] if the item is a separator. If it is, it will be displayed as a line. See [method add_separator] for more info on how to add a separator.
  336. </description>
  337. </method>
  338. <method name="is_item_shortcut_disabled" qualifiers="const">
  339. <return type="bool">
  340. </return>
  341. <argument index="0" name="idx" type="int">
  342. </argument>
  343. <description>
  344. Returns whether the shortcut of the specified item [code]idx[/code] is disabled or not.
  345. </description>
  346. </method>
  347. <method name="remove_item">
  348. <return type="void">
  349. </return>
  350. <argument index="0" name="idx" type="int">
  351. </argument>
  352. <description>
  353. Removes the item at index "idx" from the menu. Note that the indexes of items after the removed item are going to be shifted by one.
  354. </description>
  355. </method>
  356. <method name="set_hide_on_window_lose_focus">
  357. <return type="void">
  358. </return>
  359. <argument index="0" name="enable" type="bool">
  360. </argument>
  361. <description>
  362. Hides the [PopupMenu] when the window loses focus.
  363. </description>
  364. </method>
  365. <method name="set_item_accelerator">
  366. <return type="void">
  367. </return>
  368. <argument index="0" name="idx" type="int">
  369. </argument>
  370. <argument index="1" name="accel" type="int">
  371. </argument>
  372. <description>
  373. Set the accelerator of the item at index "idx". Accelerators are special combinations of keys that activate the item, no matter which control is focused.
  374. </description>
  375. </method>
  376. <method name="set_item_as_checkable">
  377. <return type="void">
  378. </return>
  379. <argument index="0" name="idx" type="int">
  380. </argument>
  381. <argument index="1" name="enable" type="bool">
  382. </argument>
  383. <description>
  384. Sets whether the item at index [code]idx[/code] has a checkbox. If [code]false[/code], sets the type of the item to plain text.
  385. [b]Note:[/b] Checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually.
  386. </description>
  387. </method>
  388. <method name="set_item_as_radio_checkable">
  389. <return type="void">
  390. </return>
  391. <argument index="0" name="idx" type="int">
  392. </argument>
  393. <argument index="1" name="enable" type="bool">
  394. </argument>
  395. <description>
  396. Sets the type of the item at the specified index [code]idx[/code] to radio button. If false, sets the type of the item to plain text.
  397. </description>
  398. </method>
  399. <method name="set_item_as_separator">
  400. <return type="void">
  401. </return>
  402. <argument index="0" name="idx" type="int">
  403. </argument>
  404. <argument index="1" name="enable" type="bool">
  405. </argument>
  406. <description>
  407. Mark the item at index [code]idx[/code] as a separator, which means that it would be displayed as a line. If [code]false[/code], sets the type of the item to plain text.
  408. </description>
  409. </method>
  410. <method name="set_item_checked">
  411. <return type="void">
  412. </return>
  413. <argument index="0" name="idx" type="int">
  414. </argument>
  415. <argument index="1" name="checked" type="bool">
  416. </argument>
  417. <description>
  418. Set the checkstate status of the item at index "idx".
  419. </description>
  420. </method>
  421. <method name="set_item_disabled">
  422. <return type="void">
  423. </return>
  424. <argument index="0" name="idx" type="int">
  425. </argument>
  426. <argument index="1" name="disabled" type="bool">
  427. </argument>
  428. <description>
  429. Sets whether the item at index "idx" is disabled or not. When it is disabled it can't be selected, or its action invoked.
  430. </description>
  431. </method>
  432. <method name="set_item_icon">
  433. <return type="void">
  434. </return>
  435. <argument index="0" name="idx" type="int">
  436. </argument>
  437. <argument index="1" name="icon" type="Texture">
  438. </argument>
  439. <description>
  440. Replaces the [Texture] icon of the specified [code]idx[/code].
  441. </description>
  442. </method>
  443. <method name="set_item_id">
  444. <return type="void">
  445. </return>
  446. <argument index="0" name="idx" type="int">
  447. </argument>
  448. <argument index="1" name="id" type="int">
  449. </argument>
  450. <description>
  451. Set the id of the item at index "idx".
  452. </description>
  453. </method>
  454. <method name="set_item_metadata">
  455. <return type="void">
  456. </return>
  457. <argument index="0" name="idx" type="int">
  458. </argument>
  459. <argument index="1" name="metadata" type="Variant">
  460. </argument>
  461. <description>
  462. Sets the metadata of an item, which might be of any type. You can later get it with [method get_item_metadata], which provides a simple way of assigning context data to items.
  463. </description>
  464. </method>
  465. <method name="set_item_multistate">
  466. <return type="void">
  467. </return>
  468. <argument index="0" name="idx" type="int">
  469. </argument>
  470. <argument index="1" name="state" type="int">
  471. </argument>
  472. <description>
  473. </description>
  474. </method>
  475. <method name="set_item_shortcut">
  476. <return type="void">
  477. </return>
  478. <argument index="0" name="idx" type="int">
  479. </argument>
  480. <argument index="1" name="shortcut" type="ShortCut">
  481. </argument>
  482. <argument index="2" name="global" type="bool" default="false">
  483. </argument>
  484. <description>
  485. Sets a [ShortCut] for the specified item [code]idx[/code].
  486. </description>
  487. </method>
  488. <method name="set_item_shortcut_disabled">
  489. <return type="void">
  490. </return>
  491. <argument index="0" name="idx" type="int">
  492. </argument>
  493. <argument index="1" name="disabled" type="bool">
  494. </argument>
  495. <description>
  496. Disables the [ShortCut] of the specified index [code]idx[/code].
  497. </description>
  498. </method>
  499. <method name="set_item_submenu">
  500. <return type="void">
  501. </return>
  502. <argument index="0" name="idx" type="int">
  503. </argument>
  504. <argument index="1" name="submenu" type="String">
  505. </argument>
  506. <description>
  507. Sets the submenu of the item at index [code]idx[/code]. The submenu is the name of a child [PopupMenu] node that would be shown when the item is clicked.
  508. </description>
  509. </method>
  510. <method name="set_item_text">
  511. <return type="void">
  512. </return>
  513. <argument index="0" name="idx" type="int">
  514. </argument>
  515. <argument index="1" name="text" type="String">
  516. </argument>
  517. <description>
  518. Set the text of the item at index "idx".
  519. </description>
  520. </method>
  521. <method name="set_item_tooltip">
  522. <return type="void">
  523. </return>
  524. <argument index="0" name="idx" type="int">
  525. </argument>
  526. <argument index="1" name="tooltip" type="String">
  527. </argument>
  528. <description>
  529. Sets the [String] tooltip of the item at the specified index [code]idx[/code].
  530. </description>
  531. </method>
  532. <method name="toggle_item_checked">
  533. <return type="void">
  534. </return>
  535. <argument index="0" name="idx" type="int">
  536. </argument>
  537. <description>
  538. Toggles the check state of the item of the specified index [code]idx[/code].
  539. </description>
  540. </method>
  541. <method name="toggle_item_multistate">
  542. <return type="void">
  543. </return>
  544. <argument index="0" name="idx" type="int">
  545. </argument>
  546. <description>
  547. </description>
  548. </method>
  549. </methods>
  550. <members>
  551. <member name="hide_on_checkable_item_selection" type="bool" setter="set_hide_on_checkable_item_selection" getter="is_hide_on_checkable_item_selection">
  552. If [code]true[/code], hides the [PopupMenu] when a checkbox or radio button is selected.
  553. </member>
  554. <member name="hide_on_item_selection" type="bool" setter="set_hide_on_item_selection" getter="is_hide_on_item_selection">
  555. If [code]true[/code], hides the [PopupMenu] when an item is selected.
  556. </member>
  557. <member name="hide_on_state_item_selection" type="bool" setter="set_hide_on_state_item_selection" getter="is_hide_on_state_item_selection">
  558. If [code]true[/code], hides the [PopupMenu] when a state item is selected.
  559. </member>
  560. <member name="submenu_popup_delay" type="float" setter="set_submenu_popup_delay" getter="get_submenu_popup_delay">
  561. Sets the delay time for the submenu item to popup on mouse hovering. If the popup menu is added as a child of another (acting as a submenu), it will inherit the delay time of the parent menu item. Default value: [code]0.3[/code] seconds.
  562. </member>
  563. </members>
  564. <signals>
  565. <signal name="id_focused">
  566. <argument index="0" name="ID" type="int">
  567. </argument>
  568. <description>
  569. This event is emitted when user navigated to an item of some id using [code]ui_up[/code] or [code]ui_down[/code] action.
  570. </description>
  571. </signal>
  572. <signal name="id_pressed">
  573. <argument index="0" name="ID" type="int">
  574. </argument>
  575. <description>
  576. This event is emitted when an item of some id is pressed or its accelerator is activated.
  577. </description>
  578. </signal>
  579. <signal name="index_pressed">
  580. <argument index="0" name="index" type="int">
  581. </argument>
  582. <description>
  583. This event is emitted when an item of some index is pressed or its accelerator is activated.
  584. </description>
  585. </signal>
  586. </signals>
  587. <constants>
  588. </constants>
  589. <theme_items>
  590. <theme_item name="checked" type="Texture">
  591. Sets a custom [Texture] icon for [code]checked[/code] state of checkbox items.
  592. </theme_item>
  593. <theme_item name="font" type="Font">
  594. Sets a custom [Font].
  595. </theme_item>
  596. <theme_item name="font_color" type="Color">
  597. Sets a custom [Color] for the [Font].
  598. </theme_item>
  599. <theme_item name="font_color_accel" type="Color">
  600. </theme_item>
  601. <theme_item name="font_color_disabled" type="Color">
  602. Sets a custom [Color] for disabled text.
  603. </theme_item>
  604. <theme_item name="font_color_hover" type="Color">
  605. Sets a custom [Color] for the hovered text.
  606. </theme_item>
  607. <theme_item name="hover" type="StyleBox">
  608. Sets a custom [StyleBox] when the [PopupMenu] is hovered.
  609. </theme_item>
  610. <theme_item name="hseparation" type="int">
  611. Sets the horizontal space separation between each item.
  612. </theme_item>
  613. <theme_item name="labeled_separator_left" type="StyleBox">
  614. </theme_item>
  615. <theme_item name="labeled_separator_right" type="StyleBox">
  616. </theme_item>
  617. <theme_item name="panel" type="StyleBox">
  618. Sets a custom [StyleBox] for the panel of the [PopupMenu].
  619. </theme_item>
  620. <theme_item name="panel_disabled" type="StyleBox">
  621. Sets a custom [StyleBox] for the panel of the [PopupMenu], when the panel is disabled.
  622. </theme_item>
  623. <theme_item name="radio_checked" type="Texture">
  624. Sets a custom [Texture] icon for [code]checked[/code] of radio button items.
  625. </theme_item>
  626. <theme_item name="radio_unchecked" type="Texture">
  627. Sets a custom [Texture] icon for [code]unchecked[/code] of radio button items.
  628. </theme_item>
  629. <theme_item name="separator" type="StyleBox">
  630. Sets a custom [StyleBox] for separator's.
  631. </theme_item>
  632. <theme_item name="submenu" type="Texture">
  633. Sets a custom [Texture] for submenu's.
  634. </theme_item>
  635. <theme_item name="unchecked" type="Texture">
  636. Sets a custom [Texture] icon for [code]unchecked[/code] of checkbox items.
  637. </theme_item>
  638. <theme_item name="vseparation" type="int">
  639. Sets the vertical space separation between each item.
  640. </theme_item>
  641. </theme_items>
  642. </class>