feat: updated engine
This commit is contained in:
parent
cbe99774ff
commit
f4cf6b3999
6607 changed files with 910135 additions and 430025 deletions
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="MenuButton" inherits="Button" keywords="dropdown" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
||||
<class name="MenuButton" inherits="Button" api_type="core" keywords="dropdown" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
||||
<brief_description>
|
||||
A button that brings up a [PopupMenu] when clicked.
|
||||
</brief_description>
|
||||
|
|
@ -38,6 +38,40 @@
|
|||
<member name="item_count" type="int" setter="set_item_count" getter="get_item_count" default="0">
|
||||
The number of items currently in the list.
|
||||
</member>
|
||||
<member name="popup/item_{index}/checkable" type="int" setter="" getter="" default="0">
|
||||
The checkable item type of the item at [code]index[/code].
|
||||
[b]Note:[/b] [code]index[/code] is a value in the [code]0 .. item_count - 1[/code] range.
|
||||
</member>
|
||||
<member name="popup/item_{index}/checked" type="bool" setter="" getter="" default="false">
|
||||
If [code]true[/code], the item at [code]index[/code] is checked.
|
||||
[b]Note:[/b] [code]index[/code] is a value in the [code]0 .. item_count - 1[/code] range.
|
||||
[b]Note:[/b] An item cannot be both in a checked and indeterminate state, so if [code]checked[/code] is set to [code]true[/code], [member popup/item_{index}/indeterminate] will be set to [code]false[/code].
|
||||
</member>
|
||||
<member name="popup/item_{index}/disabled" type="bool" setter="" getter="" default="false">
|
||||
If [code]true[/code], the item at [code]index[/code] is disabled.
|
||||
[b]Note:[/b] [code]index[/code] is a value in the [code]0 .. item_count - 1[/code] range.
|
||||
</member>
|
||||
<member name="popup/item_{index}/icon" type="Texture2D" setter="" getter="">
|
||||
The icon of the item at [code]index[/code].
|
||||
[b]Note:[/b] [code]index[/code] is a value in the [code]0 .. item_count - 1[/code] range.
|
||||
</member>
|
||||
<member name="popup/item_{index}/id" type="int" setter="" getter="" default="0">
|
||||
The ID of the item at [code]index[/code].
|
||||
[b]Note:[/b] [code]index[/code] is a value in the [code]0 .. item_count - 1[/code] range.
|
||||
</member>
|
||||
<member name="popup/item_{index}/indeterminate" type="bool" setter="" getter="" default="false">
|
||||
If [code]true[/code], the item at [code]index[/code] is in an indeterminate state.
|
||||
[b]Note:[/b] [code]index[/code] is a value in the [code]0 .. item_count - 1[/code] range.
|
||||
[b]Note:[/b] An item cannot be both in a checked and indeterminate state, so if [code]indeterminate[/code] is set to [code]true[/code], [member popup/item_{index}/checked] will be set to [code]false[/code].
|
||||
</member>
|
||||
<member name="popup/item_{index}/separator" type="bool" setter="" getter="" default="false">
|
||||
If [code]true[/code], the item at [code]index[/code] is a separator.
|
||||
[b]Note:[/b] [code]index[/code] is a value in the [code]0 .. item_count - 1[/code] range.
|
||||
</member>
|
||||
<member name="popup/item_{index}/text" type="String" setter="" getter="" default="""">
|
||||
The text of the item at [code]index[/code].
|
||||
[b]Note:[/b] [code]index[/code] is a value in the [code]0 .. item_count - 1[/code] range.
|
||||
</member>
|
||||
<member name="switch_on_hover" type="bool" setter="set_switch_on_hover" getter="is_switch_on_hover" default="false">
|
||||
If [code]true[/code], when the cursor hovers above another [MenuButton] within the same parent which also has [member switch_on_hover] enabled, it will close the current [MenuButton] and open the other one.
|
||||
</member>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue