Răsfoiți Sursa

StyleBox: Document correct methods to draw with a RID

Jean-Marc Pelletier 3 ani în urmă
părinte
comite
63d5f31561
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      doc/classes/StyleBox.xml

+ 2 - 2
doc/classes/StyleBox.xml

@@ -46,8 +46,8 @@
 			<argument index="0" name="canvas_item" type="RID" />
 			<argument index="1" name="rect" type="Rect2" />
 			<description>
-				Draws this stylebox using a [CanvasItem] with given [RID].
-				You can get a [RID] value using [method Object.get_instance_id] on a [CanvasItem]-derived node.
+				Draws this stylebox using a canvas item identified by the given [RID].
+				The [RID] value can either be the result of [method CanvasItem.get_canvas_item] called on an existing [CanvasItem]-derived node, or directly from creating a canvas item in the [RenderingServer] with [method RenderingServer.canvas_item_create].
 			</description>
 		</method>
 		<method name="get_center_size" qualifiers="const">