class-description NEWS COMMUNITY STORE LABS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE LABS TOGGLE FULLSCREEN VOLLBILD AN/AUS Object ThemeDB
A singleton that provides access to static information about Theme resources used by the engine and by your project.

This singleton provides access to static information about Theme resources used by the engine and by your projects. You can fetch the default engine theme, as well as your project configured theme.

ThemeDB also contains fallback values for theme properties.

fallback_changed fallback_changed<>():fallback_changed

Emitted when one of the fallback values had been changed. Use it to refresh the look of controls that may rely on the fallback theme items.

float fallback_base_scale<>():float

The fallback base scale factor of every Control node and Theme resource. Used when no other value is available to the control.

See also Theme.default_base_scale.

Font fallback_font<>():Font

The fallback font of every Control node and Theme resource. Used when no other value is available to the control.

See also Theme.default_font.

int fallback_font_size<>():int

The fallback font size of every Control node and Theme resource. Used when no other value is available to the control.

See also Theme.default_font_size.

Texture2D fallback_icon<>():Texture2D

The fallback icon of every Control node and Theme resource. Used when no other value is available to the control.

StyleBox fallback_stylebox<>():StyleBox

The fallback stylebox of every Control node and Theme resource. Used when no other value is available to the control.

Theme get_default_theme<>():Theme

Returns a reference to the default engine Theme. This theme resource is responsible for the out-of-the-box look of Control nodes and cannot be overridden.

Theme get_project_theme<>():Theme

Returns a reference to the custom project Theme. This theme resources allows to override the default engine theme for every control node in the project.

To set the project theme, see ProjectSettings.gui/theme/custom.




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...