From 2f9f0ecf8b7f07b5de85acfed603f686d5a3975c Mon Sep 17 00:00:00 2001 From: Jean-Marc Pelletier Date: Tue, 5 Jul 2022 13:15:44 +0900 Subject: [PATCH] StyleBox: Document correct methods to draw with a RID (cherry picked from commit 63d5f3156178fd57fdf991c74833adfd97490c10) --- doc/classes/StyleBox.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/classes/StyleBox.xml b/doc/classes/StyleBox.xml index 787c7e020..a9ef47a3e 100644 --- a/doc/classes/StyleBox.xml +++ b/doc/classes/StyleBox.xml @@ -15,8 +15,8 @@ - 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 [VisualServer] with [method VisualServer.canvas_item_create].