reckfellENGINE

ThemeDB

A singleton that provides access to static information about Theme resources used by the engine and by your project.

On this page
class ThemeDBReckfellSharp

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.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Properties7

FallbackBaseScaleProperty
# FallbackBaseScale
C#
public static float FallbackBaseScale { get; set; }

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.DefaultBaseScale.

FallbackFontProperty
# FallbackFont
C#
public static Font FallbackFont { get; set; }

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

FallbackFontSizeProperty
# FallbackFontSize
C#
public static int FallbackFontSize { get; set; }

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

FallbackIconProperty
# FallbackIcon
C#
public static Texture2D FallbackIcon { get; set; }

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

FallbackSoundProperty
# FallbackSound
C#
public static AudioStream FallbackSound { get; set; }

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

FallbackStyleboxProperty
# FallbackStylebox
C#
public static StyleBox FallbackStylebox { get; set; }

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

SingletonProperty
# Singleton
C#
public static ThemeDBInstance Singleton { get; }

Methods14

GetDefaultThemeTheme
# GetDefaultTheme
C#
public static Theme 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.

Returns Theme
GetFallbackBaseScalefloat
# GetFallbackBaseScale
C#
public static float GetFallbackBaseScale();
Returns float
GetFallbackFontFont
# GetFallbackFont
C#
public static Font GetFallbackFont();
Returns Font
GetFallbackFontSizeint
# GetFallbackFontSize
C#
public static int GetFallbackFontSize();
Returns int
GetFallbackIconTexture2D
# GetFallbackIcon
C#
public static Texture2D GetFallbackIcon();
Returns Texture2D
GetFallbackSoundAudioStream
# GetFallbackSound
C#
public static AudioStream GetFallbackSound();
Returns AudioStream
GetFallbackStyleboxStyleBox
# GetFallbackStylebox
C#
public static StyleBox GetFallbackStylebox();
Returns StyleBox
GetProjectThemeTheme
# GetProjectTheme
C#
public static Theme 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 ProjectSettings.gui/theme/custom.

Returns Theme
SetFallbackBaseScalevoid
# SetFallbackBaseScale
C#
public static void SetFallbackBaseScale(float baseScale);
Parameters
NameTypeDefault
baseScalefloat—
SetFallbackFontvoid
# SetFallbackFont
C#
public static void SetFallbackFont(Font font);
Parameters
NameTypeDefault
fontFont—
SetFallbackFontSizevoid
# SetFallbackFontSize
C#
public static void SetFallbackFontSize(int fontSize);
Parameters
NameTypeDefault
fontSizeint—
SetFallbackIconvoid
# SetFallbackIcon
C#
public static void SetFallbackIcon(Texture2D icon);
Parameters
NameTypeDefault
iconTexture2D—
SetFallbackSoundvoid
# SetFallbackSound
C#
public static void SetFallbackSound(AudioStream audio);
Parameters
NameTypeDefault
audioAudioStream—
SetFallbackStyleboxvoid
# SetFallbackStylebox
C#
public static void SetFallbackStylebox(StyleBox stylebox);
Parameters
NameTypeDefault
styleboxStyleBox—

Signals and events1

FallbackChangedEvent
# FallbackChanged
C#
public static event Action FallbackChanged;

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.

Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.