Custom Node added with add_custom_type() will not add documentary and functionality with ## comments
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 52/100
Direzione di ricerca
Start at the editor's add_custom_type() entry point and trace how it exposes the custom Node's script description and ## comments; use the linked minimal reproduction project to reproduce the issue. Done means the custom Node displays its own description and documentation when added to a scene, while property-list comments continue to work.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Tested versions
Reproducable in:
- All Godot 4.x - 4.4 Dev versions
- All Redot 4.x - 4.3 Stable versions
System information
Linux Mint 22
Issue description
Whenever a custom Node is successfully added, using add_custom_type(), be it with a Plugin or with another Script, the custom Node will have no description and it'll have no functionality regarding ## comments, thus it won't also create a documentary for that custom Node.
(Exception is applied on the Property List, it uses the ## comments there.)
class_name alone does work as it's intended, however it'll make the custom Node have the script's name be placed next to it in parenthesizes.
add_custom_type() should be able to work the same way as class_name, but without the script's name be attached next to it.
Examples:
Image 1 represents the bug. A custom Node called VisibilityModifier is inheriting VisibleOnScreenNotifier2D.
Since VisibilityModifier has no documentary, it only shows the Node's documentary, that's inheriting from, like it never existed to begin with.
Image 2 shows how it should look like originally, after adding the script as a custom Node. It should have a documentary, and description present.
Image 3 represents the bug. This custom Node has been added successfully, however the description is not present.
Image 4 shows how it should look like originally, after adding the script as a custom Node. It should show it's description as it's expected.
Steps to reproduce
- Create a new Project (for testing purposes)
- Create a new Script (GDScript preferrably)
- Have ## comments after
extends Node2D, that should be the description of the Script - Create a Plugin and inside it, use
add_custom_type()to add the new Script as a custom Node (On Plugin Enabled) - The bug should be visible, when trying to add the custom Node to the Scene.
- Trying to open the custom Node's documentary (by Right Clicking on the custom Node) will open the Node's documentary that it inherits from, in that case, it should show the
Node2Dclass' documentary.
Minimal reproduction project (MRP)
Tested on Redot's 4.3 Stable Version:
custom-node-documentary-test.zip
- Lingua principale
- C++
- Stelle
- 6.1k
- Fork
- 337
- Merge medio
- 1g 2h
- PR unite (30g)
- 35
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Redot-Engine/redot-engine
-
Write after free upon adding WorldScape3D to sceneForse già presa @OldDev78 l’ha presa oggi. Apertabug confirmed high priority release blocker topic:worldscape usability
Redot-Engine/redot-engine#1523 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
bug known problem usability
Difficoltà 3/5 1-2 giorni Idoneità per principianti 62/100
Redot-Engine/redot-engine#1519 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 Mezza giornata Idoneità per principianti 52/100
Redot-Engine/redot-engine#1516 ·
I maintainer di solito rispondono entro 1 giorno
-
bug needs testing usability
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
Redot-Engine/redot-engine#1514 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
bug confirmed topic:gdscript usability
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
Redot-Engine/redot-engine#1482 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Redot-Engine/redot-engine
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Mac mini M6 (16 GB): Q2_0 streaming works - measured 11.7->27.2 tok/s + arena fix for sub-32 GB MacsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
champion good first issue remake source/qq
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
metasequoiaime/msime-windows#1025 ·
I maintainer di solito rispondono entro 1 giorno
-
backlog bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
EchoTools/nevr-runtime#653 ·
I maintainer di solito rispondono entro 1 giorno
-
`--fail-require-skip` never fires: run_tests.py searches stdout, but the unittest binary writes the skip summary to stderrForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno