summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2024-09-27 10:11:09 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2024-09-27 10:52:04 +0800
commit0101317d46499ad2c00fbf9d54c713bfe0bdef9d (patch)
tree54592046ac472e14b7710a1131a11d557fd6a033 /doc
parent506d6e427a4eecfc1e5e5ee1180019a876119701 (diff)
downloadredot-engine-0101317d46499ad2c00fbf9d54c713bfe0bdef9d.tar.gz
Add auto translate mode for items in `ItemList`
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/ItemList.xml16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/classes/ItemList.xml b/doc/classes/ItemList.xml
index a1e5d9cbd9..59b6544095 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" />