I've added a theme functionality to the HUD. As the default theme I've taken Amos' GTK-like textures.
See org.xith3d.ui.hud.utils.WidgetTheme and org.xith3d.ui.hud.resources.themes.GTK.zip, which is the default-theme.
To change the theme just call the static method:
1
| HUD.setTheme(new WidgetTheme(new FileInputStream(new File("myZipArchive")))); |
or:
1
| HUD.setTheme(new WidgetTheme(new File("myZipArchive"))); |
or for built-in themes like GTK:
1 2 3
| HUD.setTheme(new WidgetTheme("GTK")); or HUD.setTheme("GTK"); |
Marvin