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

Where is BIND_THEME_ITEM #1396

Open
aiaimimi0920 opened this issue Feb 29, 2024 · 4 comments
Open

Where is BIND_THEME_ITEM #1396

aiaimimi0920 opened this issue Feb 29, 2024 · 4 comments

Comments

@aiaimimi0920
Copy link

aiaimimi0920 commented Feb 29, 2024

Godot version

4.2

godot-cpp version

4.2

System information

windows 11

Issue description

I want to inherit the separate implementation of CustomimSeparate, and I have observed this code:

void Separator::_bind_methods() {
    BIND_THEME_ITEM (Theme: DATA-TYPE-CONSTANT, Separate, Separation);
    BIND_THEME_ITEM_CUSTOM (Theme: DATA-TYPESTYLEBOX, Separator, separator_style, "separator");
}

So, may I ask godot cpp has "BIND_THEME_ITEM" or "BIND_THEME_ITEM_CUSTOM"?

Steps to reproduce

null

Minimal reproduction project

null

@aiaimimi0920 aiaimimi0920 changed the title How to use BIND_THEME_ITEM Where is BIND_THEME_ITEM Feb 29, 2024
@dsnopek
Copy link
Contributor

dsnopek commented Feb 29, 2024

Unfortunately, I don't think GDExtension has the ability to bind items to ThemeDB yet.

@aiaimimi0920
Copy link
Author

Unfortunately, I don't think GDExtension has the ability to bind items to ThemeDB yet.

What is the reason? Godot does not provide a binding interface? Or has Godot CPP not been implemented yet?

@dsnopek
Copy link
Contributor

dsnopek commented Feb 29, 2024

Godot doesn't provide an interface for GDExtension to do it. This is something that will probably need to be added to gdextension_interface.h, but I haven't looked into it very deeply yet.

@aiaimimi0920
Copy link
Author

Thank you very much for your timely response

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