diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-10-03 15:39:23 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-10-03 15:39:23 +0200 |
commit | 5314793ac7d80eb33b1b71abd97cf230fcfc6386 (patch) | |
tree | a2c9b413c2747b017d1a566f089f13c827cff9ba /doc | |
parent | 0f1c7e6b24deb67117010017671844831bc24858 (diff) | |
parent | 0101317d46499ad2c00fbf9d54c713bfe0bdef9d (diff) | |
download | redot-engine-5314793ac7d80eb33b1b71abd97cf230fcfc6386.tar.gz |
Merge pull request #97519 from timothyqiu/itemlist-at
Add auto translate mode for items in `ItemList`
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/ItemList.xml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/classes/ItemList.xml b/doc/classes/ItemList.xml index c60a2ca887..2d898673c1 100644 --- a/doc/classes/ItemList.xml +++ b/doc/classes/ItemList.xml @@ -73,6 +73,13 @@ [b]Note:[/b] The returned value is unreliable if called right after modifying the [ItemList], before it redraws in the next frame. </description> </method> + <method name="get_item_auto_translate_mode" qualifiers="const"> + <return type="int" enum="Node.AutoTranslateMode" /> + <param index="0" name="idx" type="int" /> + <description> + Returns item's auto translate mode. + </description> + </method> <method name="get_item_custom_bg_color" qualifiers="const"> <return type="Color" /> <param index="0" name="idx" type="int" /> @@ -230,6 +237,15 @@ [b]Note:[/b] This method does not trigger the item selection signal. </description> </method> + <method name="set_item_auto_translate_mode"> + <return type="void" /> + <param index="0" name="idx" type="int" /> + <param index="1" name="mode" type="int" enum="Node.AutoTranslateMode" /> + <description> + Sets the auto translate mode of the item associated with the specified index. + Items use [constant Node.AUTO_TRANSLATE_MODE_INHERIT] by default, which uses the same auto translate mode as the [ItemList] itself. + </description> + </method> <method name="set_item_custom_bg_color"> <return type="void" /> <param index="0" name="idx" type="int" /> |