public class SkinLoader
extends java.lang.Object
JXCSkins
and attaching them to the client.Constructor and Description |
---|
SkinLoader(@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.
|
Modifier and Type | Method and Description |
---|---|
@NotNull JXCSkin |
loadSkin(@NotNull java.lang.String skinName)
Loads a skin file.
|
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)
commandCallback
- the command callback to usemetaserverModel
- the metaserver model to useresolution
- the size of the client area, null
for 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@NotNull public @NotNull JXCSkin loadSkin(@NotNull @NotNull java.lang.String skinName) throws JXCSkinException
skinName
- the skin file nameJXCSkinException
- if the skin file cannot be loaded