Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icons for Nodes #58

Closed
Sythelux opened this issue Aug 2, 2023 · 3 comments · Fixed by #66
Closed

Icons for Nodes #58

Sythelux opened this issue Aug 2, 2023 · 3 comments · Fixed by #66
Labels
enhancement New feature or request

Comments

@Sythelux
Copy link

Sythelux commented Aug 2, 2023

I'm a bit lost, where to ask for this.

Is it possible to set an Icon for a GDExtension class (e.g. ExampleMin in this repo) to show up in the "create new node" dialog.

@asmaloney
Copy link
Owner

I'm a bit lost, where to ask for this.

Yes, it can be tough to figure out where to go for help since the community is fragmented among several platforms. And some platforms which are active, like discord, are not preserved/searchable like a forum would be so solutions are lost. Anyway...

My project is more about the build process for extensions rather than implementing the extensions themselves, however I found an issue on godot-cpp which looks like it added this capability a while ago.

I didn't read through the whole thing to figure out how to do it though 😄

@Sythelux
Copy link
Author

Sythelux commented Aug 2, 2023

It looks like the way to go is to add this to the gdextension file (but with ones own class)

[icons]
Threen = "res://bin/icon_tween.svg"

I'll try that. Thank you for the help. You could probably add it for one of the Example classes. I often come back to this repo to see how you achieved some things ^^'' and I agree we would need a non-discord forum. I might open a GDExtension Lemmy for it. :p

@Sythelux Sythelux closed this as completed Aug 2, 2023
@asmaloney
Copy link
Owner

Ah, yeah. It is configure-y, so maybe it makes sense to add it here.

I'll reopen this issue so I remember to take a look next time I work on this project.

Thanks!

@asmaloney asmaloney reopened this Aug 2, 2023
@asmaloney asmaloney added the enhancement New feature or request label Aug 2, 2023
asmaloney added a commit that referenced this issue Dec 28, 2023
asmaloney added a commit that referenced this issue Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants