Interface ITheme
- All Superinterfaces:
org.rusherhack.core.feature.IFeature,org.rusherhack.core.feature.IFeatureConfigurable,org.rusherhack.core.interfaces.INamed,org.rusherhack.core.serialize.ISerializable<com.google.gson.JsonElement>,org.rusherhack.core.serialize.JsonSerializable
- All Known Implementing Classes:
ThemeBase
public interface ITheme
extends org.rusherhack.core.feature.IFeatureConfigurable, org.rusherhack.core.serialize.JsonSerializable
Interface for creating themes.
A theme is a feature which changes the look and feel of the menus.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleandeserialize(com.google.gson.JsonElement jsonElement) default @Nullable PanelHandlerBase<?>This theme's ClickGUI handlerdefault @Nullable HudHandlerBaseThis theme's HUD handlerdefault Colordefault @Nullable WindowHandlerBaseThis theme's window handlerdefault voidCalled when rusherhack is finished loading, and the theme should be initialized.default com.google.gson.JsonElementMethods inherited from interface org.rusherhack.core.feature.IFeature
getDescriptionMethods inherited from interface org.rusherhack.core.feature.IFeatureConfigurable
getSetting, getSettings, registerSettings, resetMethods inherited from interface org.rusherhack.core.interfaces.INamed
getAliases, getDisplayName, getNameMethods inherited from interface org.rusherhack.core.serialize.ISerializable
shouldAutoSave, shouldSerialize
-
Method Details
-
initialize
default void initialize()Called when rusherhack is finished loading, and the theme should be initialized. -
getClickGuiHandler
This theme's ClickGUI handler- Returns:
- panel handler for the ClickGUI, or null if this theme does not have a ClickGUI
-
getHudHandler
This theme's HUD handler- Returns:
- the hud handler, or null if this theme does not have a HUD
-
getWindowHandler
This theme's window handler- Returns:
- the window handler, or null if this theme does not have a window handler
-
getColorSetting
ColorSetting getColorSetting()- Returns:
- The ColorSetting for this theme
-
getPrimaryColor
-
serialize
default com.google.gson.JsonElement serialize()- Specified by:
serializein interfaceorg.rusherhack.core.serialize.ISerializable<com.google.gson.JsonElement>
-
deserialize
default boolean deserialize(com.google.gson.JsonElement jsonElement) - Specified by:
deserializein interfaceorg.rusherhack.core.serialize.ISerializable<com.google.gson.JsonElement>
-