Skip to content

Commit 306b242

Browse files
committed
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!
1 parent 9114769 commit 306b242

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tutorials/scripting/gdextension/gdextension_cpp_example.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,9 @@ For example:
442442

443443
.. code-block:: none
444444
445-
[Icon]
446-
GDExample = "res://icons/GDExample.svg"
445+
[icons]
446+
447+
GDExample = "res://icons/gd_example.svg"
447448
448449
The path should point to a 16 by 16 pixel SVG image. Read the guide for :ref:`creating icons <doc_editor_icons>`
449450
for more information.

0 commit comments

Comments
 (0)