Expose PopupMenu set/get_item_horizontal_offset()

- Renames setter from set_item_h_offset()
- Adds getter
This commit is contained in:
FireForge
2022-06-15 00:04:42 -05:00
parent 15740c37a3
commit f85eb4164a
5 changed files with 27 additions and 4 deletions

View File

@ -201,6 +201,13 @@
Returns the accelerator of the item at the given [code]index[/code]. Accelerators are special combinations of keys that activate the item, no matter which control is focused.
</description>
</method>
<method name="get_item_horizontal_offset" qualifiers="const">
<return type="int" />
<argument index="0" name="index" type="int" />
<description>
Returns the horizontal offset of the item at the given [code]index[/code].
</description>
</method>
<method name="get_item_icon" qualifiers="const">
<return type="Texture2D" />
<argument index="0" name="index" type="int" />
@ -395,6 +402,14 @@
Enables/disables the item at the given [code]index[/code]. When it is disabled, it can't be selected and its action can't be invoked.
</description>
</method>
<method name="set_item_horizontal_offset">
<return type="void" />
<argument index="0" name="index" type="int" />
<argument index="1" name="offset" type="int" />
<description>
Sets the horizontal offset of the item at the given [code]index[/code].
</description>
</method>
<method name="set_item_icon">
<return type="void" />
<argument index="0" name="index" type="int" />