Browse Source

Custom editor icon section's command wrong or out of date.

In the "*.gdextension" code block, the [Icon] tag does not work in 4.1.1.stable version, and it does not match the naming conventions of other tags. I test it, [icons] tag is worked well. In addition, I added a blank lines between the tag and the content to make it more consistent with other "*.gdextension" code block formatting.

Update with capnm's suggestion. Thank you all for your attention and reply!
Noctor Onwood 2 years ago
parent
commit
306b24246b
1 changed files with 3 additions and 2 deletions
  1. 3 2
      tutorials/scripting/gdextension/gdextension_cpp_example.rst

+ 3 - 2
tutorials/scripting/gdextension/gdextension_cpp_example.rst

@@ -442,8 +442,9 @@ For example:
 
 
 .. code-block:: none
 .. code-block:: none
 
 
-    [Icon]
-    GDExample = "res://icons/GDExample.svg"
+    [icons]
+
+    GDExample = "res://icons/gd_example.svg"
 
 
 The path should point to a 16 by 16 pixel SVG image. Read the guide for :ref:`creating icons <doc_editor_icons>`
 The path should point to a 16 by 16 pixel SVG image. Read the guide for :ref:`creating icons <doc_editor_icons>`
 for more information.
 for more information.