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

Can't set Theme constants in gdscript. #16011

Closed
jtaart opened this issue Jan 23, 2018 · 1 comment
Closed

Can't set Theme constants in gdscript. #16011

jtaart opened this issue Jan 23, 2018 · 1 comment
Assignees
Milestone

Comments

@jtaart
Copy link

jtaart commented Jan 23, 2018

Godot version: Godot_v3.0-rc2_win64.exe
OS/device including version: win64

This no longer works:
get_theme().set_constant("separation", "HBoxContainer", 500)

Seems to work just fine in 2.1.4.

Might be related to #13071

@groud groud added this to the 3.1 milestone Jan 24, 2018
@jtaart
Copy link
Author

jtaart commented Jan 24, 2018

I got it to work. I still think it is some kind of bug though. If you leave the theme null in the editor. Then create a theme with theme.new(), and assign that theme to the node. It will not allow you to set the constants, but if you create the theme in the editor it will let you set the constants in gdscript. In 2.1.4 you can leave it null, then do everything in gdscript.

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

Successfully merging a pull request may close this issue.

4 participants