public class SkinLoader
extends java.lang.Object
JXCSkins
and attaching them to the client.Constructor and Description |
---|
SkinLoader(CommandCallback commandCallback,
MetaserverModel metaserverModel,
Resolution resolution,
Macros macros,
JXCWindowRenderer windowRenderer,
CrossfireServerConnection server,
GuiStateManager guiStateManager,
TooltipManager tooltipManager,
CommandQueue commandQueue,
JXCSkinLoader skinLoader,
CommandExecutor commandExecutor,
Shortcuts shortcuts,
CharacterModel characterModel,
SmoothFaces smoothFaces,
GUICommandFactory guiCommandFactory)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
JXCSkin |
loadSkin(java.lang.String skinName)
Loads a skin file.
|
@NotNull private final CharacterModel characterModel
CharacterModel
instance for this window.@NotNull private final CommandCallback commandCallback
CommandCallback
instance.@NotNull private final CommandExecutor commandExecutor
CommandExecutor
instance.@NotNull private final CommandQueue commandQueue
CommandQueue
instance.@NotNull private final CurrentSpellManager currentSpellManager
CurrentSpellManager
instance for this window.@NotNull private final GUICommandFactory guiCommandFactory
GUICommandFactory
for creating commands.@NotNull private final GuiStateManager guiStateManager
GuiStateManager
instance.@NotNull private final MetaserverModel metaserverModel
MetaserverModel
instance for this window.@Nullable private final Resolution resolution
null
for default.@NotNull private final CrossfireServerConnection server
CrossfireServerConnection
to use.@NotNull private final JXCSkinLoader skinLoader
JXCSkinLoader
instance.@NotNull private final SmoothFaces smoothFaces
SmoothFaces
.@NotNull private final TooltipManager tooltipManager
TooltipManager
instance.@NotNull private final JXCWindowRenderer windowRenderer
JXCWindowRenderer
for this window.public 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 GUICommandFactory guiCommandFactory)
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 facesguiCommandFactory
- the gui command factory for creating commands@NotNull public JXCSkin loadSkin(@NotNull java.lang.String skinName) throws JXCSkinException
skinName
- the skin file nameJXCSkinException
- if the skin file cannot be loaded