From bd907d48ade576289852ce566385f2ebdab033c8 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 3 Mar 2021 22:56:02 +0100 Subject: [PATCH] Remove incorrect/trivial examples in the ItemList class documentation This closes https://github.com/godotengine/godot-docs/issues/4712. --- doc/classes/ItemList.xml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/doc/classes/ItemList.xml b/doc/classes/ItemList.xml index d916d1e081..0aad4f5f47 100644 --- a/doc/classes/ItemList.xml +++ b/doc/classes/ItemList.xml @@ -248,10 +248,6 @@ Sets the background color of the item specified by [code]idx[/code] index to the specified [Color]. - [codeblock] - var some_string = "Some text" - some_string.set_item_custom_bg_color(0,Color(1, 0, 0, 1) # This will set the background color of the first item of the control to red. - [/codeblock] @@ -263,10 +259,6 @@ Sets the foreground color of the item specified by [code]idx[/code] index to the specified [Color]. - [codeblock] - var some_string = "Some text" - some_string.set_item_custom_fg_color(0,Color(1, 0, 0, 1) # This will set the foreground color of the first item of the control to red. - [/codeblock]