java.lang.Object com.realtime.crossfire.jxclient.main.SkinLoader
public class SkinLoader
Loader for JXCSkins
and attaching them to the client.
Constructor Summary | |
---|---|
SkinLoader(boolean debugGui,
MouseTracker mouseTracker,
CommandCallback commandCallback,
MetaserverModel metaserverModel,
Resolution resolution,
Macros macros,
JXCWindowRenderer windowRenderer,
CrossfireServerConnection server,
GuiStateManager guiStateManager,
TooltipManager tooltipManager,
CommandQueue commandQueue,
JXCSkinLoader skinLoader,
Commands commands,
Shortcuts shortcuts,
CharacterModel characterModel)
Creates a new instance. |
Method Summary | |
---|---|
JXCSkin |
loadSkin(java.lang.String skinName)
Loads a skin file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@NotNull private final CharacterModel characterModel
CharacterModel
instance for this window.
@NotNull private final CommandCallback commandCallback
CommandCallback
instance.
@NotNull private final CommandQueue commandQueue
CommandQueue
instance.
@NotNull private final Commands commands
Commands
instance.
@NotNull private final CurrentSpellManager currentSpellManager
CurrentSpellManager
instance for this window.
private final boolean debugGui
@NotNull private final GuiStateManager guiStateManager
GuiStateManager
instance.
@NotNull private final Macros macros
Macros
instance.
@NotNull private final MetaserverModel metaserverModel
MetaserverModel
instance for this window.
@NotNull private final MouseTracker mouseTracker
MouseTracker
instance.
@Nullable private final Resolution resolution
null
for default.
@NotNull private final CrossfireServerConnection server
CrossfireServerConnection
to use.
@NotNull private final Shortcuts shortcuts
Shortcuts
instance.
@NotNull private final JXCSkinLoader skinLoader
JXCSkinLoader
instance.
@NotNull private final TooltipManager tooltipManager
TooltipManager
instance.
@NotNull private final JXCWindowRenderer windowRenderer
JXCWindowRenderer
for this window.
Constructor Detail |
---|
public SkinLoader(boolean debugGui, @NotNull MouseTracker mouseTracker, @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 Commands commands, @NotNull Shortcuts shortcuts, @NotNull CharacterModel characterModel)
debugGui
- whether GUI elements should be highlightedmouseTracker
- the mouse tracker to usecommandCallback
- 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 instancecommands
- the commands to useshortcuts
- the shortcuts to usecharacterModel
- the character model to useMethod Detail |
---|
@NotNull public JXCSkin loadSkin(@NotNull java.lang.String skinName) throws JXCSkinException
skinName
- the skin file name
JXCSkinException
- if the skin file cannot be loaded