Class GUITheme
java.lang.Object
com.blackrook.gui.GUITheme
GUI theme for objects and whole GUI layers.
- Author:
- Matthew Tropiano
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a font associated with a theme key, or null if not a font or none is associated.getTexture(String key) Returns a texture associated with a theme key, or null if not a texture or none is associated.voidset(String key, GUIFontType font) Sets a theme font by key.voidSets a theme skin by key.
-
Field Details
-
name
Theme name. -
textureMap
-
-
Constructor Details
-
GUITheme
-
-
Method Details
-
set
-
set
Sets a theme font by key. Re-setting an existing key replaces it.- Parameters:
key- the theme key.font- the skin to use. if null, the key is removed.
-
getTexture
-
getFont
Returns a font associated with a theme key, or null if not a font or none is associated.- Parameters:
key- the key to use.- Returns:
- the corresponding font, or null if none found or if the value at this key is not a font.
-