Documentation
¶
Overview ¶
Package ThemeDB provides methods for working with ThemeDB object instances.
Index ¶
- func Advanced() class
- func FallbackBaseScale() Float.X
- func FallbackFont() Font.Instance
- func FallbackFontSize() int
- func FallbackIcon() Texture2D.Instance
- func FallbackStylebox() StyleBox.Instance
- func GetDefaultTheme() Theme.Instance
- func GetProjectTheme() Theme.Instance
- func OnFallbackChanged(cb func(), flags ...Signal.Flags)
- func SetFallbackBaseScale(value Float.X)
- func SetFallbackFont(value Font.Instance)
- func SetFallbackFontSize(value int)
- func SetFallbackIcon(value Texture2D.Instance)
- func SetFallbackStylebox(value StyleBox.Instance)
- type Extension
- type ID
- type Instance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Advanced ¶
func Advanced() class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
func FallbackBaseScale ¶
func FallbackFont ¶
func FallbackFontSize ¶
func FallbackFontSize() int
func FallbackIcon ¶
func FallbackStylebox ¶
func GetDefaultTheme ¶
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.
func GetProjectTheme ¶
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 [member ProjectSettings.gui/theme/custom].
func OnFallbackChanged ¶
func SetFallbackBaseScale ¶
func SetFallbackFont ¶
func SetFallbackFontSize ¶
func SetFallbackFontSize(value int)
func SetFallbackIcon ¶
func SetFallbackStylebox ¶
Types ¶
type Extension ¶
Extension can be embedded in a new struct to create an extension of this class. T should be the type that is embedding this Extension
type ID ¶
ID is a typed object ID (reference) to an instance of this class, use it to store references to objects with unknown lifetimes, as an ID will not panic on use if the underlying object has been destroyed.