Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Scenery.ECPGuiTheme Class Reference

GuiTheme class property for use with XML loading. More...

Inheritance diagram for Dragengine.Scenery.ECPGuiTheme:
Dragengine.Scenery.ElementClassProperty

Public Member Functions

void copyValue (ElementClass elementClass, ElementClassProperty property)
 Copy value from another element class property of the same type.
GuiTheme getGuiTheme ()
 GuiTheme or null if not present.
GuiTheme getGuiTheme (StubWithProperties stub, ElementClass eclass)
 GuiTheme modified by stub property if present.
bool getHasPreloaded ()
 Property has been preloaded.
LoadGuiTheme getLoader ()
 GuiTheme loader.
String getPath ()
 Path to animator.
bool logPreloadProblems (ElementClass elementClass, Console console)
 Log preloading problems.
ECPGuiTheme new (String name, LoadGuiTheme loader)
 Create property.
ECPGuiTheme new (String name, LoadGuiTheme loader, String path)
 Create property with initial path.
void preloadResources (ElementClass elementClass, PreloadCounter counter)
 Preload resources if supported.
void setGuiTheme (GuiTheme animator)
 Set animator or null if not present.
void setPath (String path)
 Set path to animator.
void setValue (Object value)
 Set value of property from XML decoded value.
Public Member Functions inherited from Dragengine.Scenery.ElementClassProperty
void dispose ()
 Dispose of element class property to break reference loops.
String getName ()
 Name.
ElementClassProperty new (String name)
 Create property.

Detailed Description

GuiTheme class property for use with XML loading.

GuiTheme is set from XML using a path. Loads the gui theme during preloading. The value of the property is then the loaded resource. If loading fails null gui theme is stored.

Member Function Documentation

◆ copyValue()

void Dragengine.Scenery.ECPGuiTheme.copyValue ( ElementClass elementClass,
ElementClassProperty property )

Copy value from another element class property of the same type.

Version
1.17

References getHasPreloaded().

Referenced by logPreloadProblems().

◆ getGuiTheme() [1/2]

GuiTheme Dragengine.Scenery.ECPGuiTheme.getGuiTheme ( )

GuiTheme or null if not present.

References getPath().

Referenced by getGuiTheme(), and getHasPreloaded().

◆ getGuiTheme() [2/2]

GuiTheme Dragengine.Scenery.ECPGuiTheme.getGuiTheme ( StubWithProperties stub,
ElementClass eclass )

GuiTheme modified by stub property if present.

If named stub property is not present or empty string the stored animator is returned. If the named stub property is present it is loaded as animator resource.

References getGuiTheme(), getPath(), logPreloadProblems(), new(), and preloadResources().

◆ getHasPreloaded()

bool Dragengine.Scenery.ECPGuiTheme.getHasPreloaded ( )

Property has been preloaded.

References getGuiTheme().

Referenced by copyValue().

◆ getLoader()

LoadGuiTheme Dragengine.Scenery.ECPGuiTheme.getLoader ( )

GuiTheme loader.

Referenced by getPath().

◆ getPath()

String Dragengine.Scenery.ECPGuiTheme.getPath ( )

Path to animator.

References getLoader().

Referenced by getGuiTheme(), and getGuiTheme().

◆ logPreloadProblems()

bool Dragengine.Scenery.ECPGuiTheme.logPreloadProblems ( ElementClass elementClass,
Console console )

Log preloading problems.

Returns
True if problems are present.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References copyValue().

Referenced by getGuiTheme().

◆ new() [1/2]

ECPGuiTheme Dragengine.Scenery.ECPGuiTheme.new ( String name,
LoadGuiTheme loader )

Create property.

References new().

Referenced by getGuiTheme(), new(), and new().

◆ new() [2/2]

ECPGuiTheme Dragengine.Scenery.ECPGuiTheme.new ( String name,
LoadGuiTheme loader,
String path )

Create property with initial path.

References new().

◆ preloadResources()

void Dragengine.Scenery.ECPGuiTheme.preloadResources ( ElementClass elementClass,
PreloadCounter counter )

Preload resources if supported.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References setValue().

Referenced by getGuiTheme().

◆ setGuiTheme()

void Dragengine.Scenery.ECPGuiTheme.setGuiTheme ( GuiTheme animator)

Set animator or null if not present.

References setPath().

Referenced by setValue().

◆ setPath()

void Dragengine.Scenery.ECPGuiTheme.setPath ( String path)

Set path to animator.

Referenced by setGuiTheme().

◆ setValue()

void Dragengine.Scenery.ECPGuiTheme.setValue ( Object value)

Set value of property from XML decoded value.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References setGuiTheme().

Referenced by preloadResources().


The documentation for this class was generated from the following file: