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

Adding Custom Icons to Classes for Nodes #372

Open
LunaticWyrm467 opened this issue Sep 12, 2022 · 2 comments
Open

Adding Custom Icons to Classes for Nodes #372

LunaticWyrm467 opened this issue Sep 12, 2022 · 2 comments

Comments

@LunaticWyrm467
Copy link

This is a really minor thing, but I couldn't seem to figure out any way to do this. I know that in GDscript you could just specify a const string after the class declaration for the icon, but I don't know what the alternative would be for PythonScript. Is this functionality added yet and is there a way to do this?

If not, could this be added in the future?

@touilleMan
Copy link
Owner

@LunaticWyrm467 I'm not sure what you are talking about, do you have a link in the godot documentation or can you provide a screenshot of that ?

In any way this sound like something that should definitely be doable in Godot-Python, so it will be added in the future if it's not there yet 😄

@LunaticWyrm467
Copy link
Author

Sure thing! Here's a section of GDscript:
class_name Room2D, "res://assets/editor/room2D.png" extends Node2D

The "res://assets/editor/room2D.png" is the const string to the filepath of a specific icon I want to load as an image for a node's icon - and I was wondering if that behaviour was doable in Python.
Just realized my explanation up top was sort of not the best anyways, should've specified more... sorry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants