+1 vote

I need to be able to Go into the panel custom styles so i can make a theme changer for a game im working on

How would i go about doing this? And Could you explain it in the simplest way possible, cause ive tried reading other stuff and it just confuses me to death

in Engine by (483 points)

1 Answer

+1 vote
Best answer
  1. Insert "Panel" object
  2. From "Inspector" choose property "Custom Styles"
  3. Tick the enabling box next to "Panel" property
  4. Press arrow pointing down next the at the same line
  5. Choose "new stylebox texture"
  6. Press arrow pointing right at the same line
  7. Inspector will jump yo the new style box parameters
  8. Scrooll up and assign wated texture

Edited on 13.03.16:

via code:

get_stylebox("panel", "" ).set_texture(load("res://AAAAA.png"))
by (444 points)
selected by

I was Asking How to edit them via GD Script, not how to Add them in general

OK. Here it is:
1. Create new theme on your panel
2. Then change the resource of the theme named "panel"

Ok here is the solution:

get_stylebox("panel", "" ).set_texture(load("res://AAAAA.png"))

it replaces original panel background image with image called "AAAAA" located in project folder

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.