Class SkinLoader

java.lang.Object
com.realtime.crossfire.jxclient.main.SkinLoader

public class SkinLoader extends Object
Loader for JXCSkins and attaching them to the client.
  • 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 use
      metaserverModel - the metaserver model to use
      resolution - the size of the client area, null for default
      macros - the macros instance
      windowRenderer - the window renderer to use
      server - the crossfire server connection to use
      guiStateManager - the gui state manager to use
      tooltipManager - the tooltip manager to use
      commandQueue - the command queue to use
      skinLoader - the skin loader instance
      commandExecutor - the command executor to use
      shortcuts - the shortcuts to use
      characterModel - the character model to use
      smoothFaces - the smooth faces
      guiFactory - 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