浏览代码

[docs] Clarification on theme's get_stylebox

Remove reference to "icon" (must have been a copy-paste error) & clarify where to find out what names & node_types are valid.

(cherry picked from commit d397c3216906fa59d49f041a7a4038d8cfe2f6e2)
Andy Maloney 4 年之前
父节点
当前提交
e262c6b8bc
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      doc/classes/Theme.xml

+ 3 - 1
doc/classes/Theme.xml

@@ -177,7 +177,8 @@
 			<argument index="1" name="node_type" type="String">
 			<argument index="1" name="node_type" type="String">
 			</argument>
 			</argument>
 			<description>
 			<description>
-				Returns the icon [StyleBox] at [code]name[/code] if the theme has [code]node_type[/code].
+				Returns the [StyleBox] at [code]name[/code] if the theme has [code]node_type[/code].
+				Valid [code]name[/code]s may be found using [method get_stylebox_list]. Valid [code]node_type[/code]s may be found using [method get_stylebox_types].
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="get_stylebox_list" qualifiers="const">
 		<method name="get_stylebox_list" qualifiers="const">
@@ -187,6 +188,7 @@
 			</argument>
 			</argument>
 			<description>
 			<description>
 				Returns all the [StyleBox]s as a [PoolStringArray] filled with each [StyleBox]'s name, for use in [method get_stylebox], if the theme has [code]node_type[/code].
 				Returns all the [StyleBox]s as a [PoolStringArray] filled with each [StyleBox]'s name, for use in [method get_stylebox], if the theme has [code]node_type[/code].
+				Valid [code]node_type[/code]s may be found using [method get_stylebox_types].
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="get_stylebox_types" qualifiers="const">
 		<method name="get_stylebox_types" qualifiers="const">