Class SkinLoader
java.lang.Object
com.realtime.crossfire.jxclient.main.SkinLoader
Loader for
JXCSkins and attaching them to the client.-
Constructor Summary
ConstructorsConstructorDescriptionSkinLoader(@NotNull CommandCallback commandCallback, @NotNull MetaserverModel metaserverModel, @Nullable Resolution resolution, @NotNull Macros macros, @NotNull JXCWindowRenderer windowRenderer, @NotNull CrossfireServerConnection server, @NotNull GuiStateManager guiStateManager, @NotNull TooltipManager tooltipManager, @NotNull CommandQueue commandQueue, @NotNull JXCSkinLoader skinLoader, @NotNull CommandExecutor commandExecutor, @NotNull Shortcuts shortcuts, @NotNull CharacterModel characterModel, @NotNull SmoothFaces smoothFaces, @NotNull GuiFactory guiFactory) Creates a new instance. -
Method Summary
-
Constructor Details
-
SkinLoader
public SkinLoader(@NotNull @NotNull CommandCallback commandCallback, @NotNull @NotNull MetaserverModel metaserverModel, @Nullable @Nullable Resolution resolution, @NotNull @NotNull Macros macros, @NotNull @NotNull JXCWindowRenderer windowRenderer, @NotNull @NotNull CrossfireServerConnection server, @NotNull @NotNull GuiStateManager guiStateManager, @NotNull @NotNull TooltipManager tooltipManager, @NotNull @NotNull CommandQueue commandQueue, @NotNull @NotNull JXCSkinLoader skinLoader, @NotNull @NotNull CommandExecutor commandExecutor, @NotNull @NotNull Shortcuts shortcuts, @NotNull @NotNull CharacterModel characterModel, @NotNull @NotNull SmoothFaces smoothFaces, @NotNull @NotNull GuiFactory guiFactory) Creates a new instance.- Parameters:
commandCallback- the command callback to usemetaserverModel- the metaserver model to useresolution- the size of the client area,nullfor defaultmacros- the macros instancewindowRenderer- the window renderer to useserver- the crossfire server connection to useguiStateManager- the gui state manager to usetooltipManager- the tooltip manager to usecommandQueue- the command queue to useskinLoader- the skin loader instancecommandExecutor- the command executor to useshortcuts- the shortcuts to usecharacterModel- the character model to usesmoothFaces- the smooth facesguiFactory- the gui factory for creating GUI instances
-
-
Method Details
-
loadSkin
@NotNull public @NotNull JXCSkin loadSkin(@NotNull @NotNull String skinName) throws JXCSkinException Loads a skin file.- Parameters:
skinName- the skin file name- Returns:
- the loaded skin
- Throws:
JXCSkinException- if the skin file cannot be loaded
-