public class JXCSkinLoader
extends java.lang.Object
JXCSkin
instances from
JXCSkinSources
.Constructor and Description |
---|
JXCSkinLoader(@NotNull Model model,
@NotNull InventoryView inventoryView,
@NotNull FloorView floorView,
@NotNull SpellsView spellView,
@NotNull SpellSkillView spellSkillsView,
@NotNull FacesManager facesManager,
@NotNull MapUpdaterState mapUpdaterState,
@NotNull KeyBindings defaultKeyBindings,
@NotNull OptionManager optionManager,
int defaultTileSize,
@NotNull KeybindingsManager keybindingsManager,
@NotNull QuestsView questView,
@NotNull CommandHistoryFactory commandHistoryFactory,
@NotNull KnowledgeView knowledgeView,
@NotNull KnowledgeTypeView knowledgeTypeView,
boolean avoidCopyArea,
@NotNull GuiManager guiManager,
@NotNull GuiFactory guiFactory,
@NotNull PendingDirections pendingDirections,
@NotNull java.lang.String soundsCredits,
float fontScaleFactor)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
@NotNull JXCSkin |
load(@NotNull JXCSkinSource skinSource,
@NotNull CrossfireServerConnection crossfireServerConnection,
@NotNull GuiStateManager guiStateManager,
@NotNull TooltipManager tooltipManager,
@NotNull JXCWindowRenderer windowRenderer,
@NotNull GUIElementListener elementListener,
@NotNull MetaserverModel metaserverModel,
@NotNull CharacterModel characterModel,
@NotNull CommandQueue commandQueue,
@NotNull Shortcuts shortcuts,
@NotNull CommandExecutor commandExecutor,
@NotNull CommandCallback commandCallback,
@NotNull Macros macros,
@NotNull SmoothFaces smoothFaces)
Loads the skin from its external representation.
|
public JXCSkinLoader(@NotNull @NotNull Model model, @NotNull @NotNull InventoryView inventoryView, @NotNull @NotNull FloorView floorView, @NotNull @NotNull SpellsView spellView, @NotNull @NotNull SpellSkillView spellSkillsView, @NotNull @NotNull FacesManager facesManager, @NotNull @NotNull MapUpdaterState mapUpdaterState, @NotNull @NotNull KeyBindings defaultKeyBindings, @NotNull @NotNull OptionManager optionManager, int defaultTileSize, @NotNull @NotNull KeybindingsManager keybindingsManager, @NotNull @NotNull QuestsView questView, @NotNull @NotNull CommandHistoryFactory commandHistoryFactory, @NotNull @NotNull KnowledgeView knowledgeView, @NotNull @NotNull KnowledgeTypeView knowledgeTypeView, boolean avoidCopyArea, @NotNull @NotNull GuiManager guiManager, @NotNull @NotNull GuiFactory guiFactory, @NotNull @NotNull PendingDirections pendingDirections, @NotNull @NotNull java.lang.String soundsCredits, float fontScaleFactor)
model
- the model instance to useinventoryView
- the inventory item view to usefloorView
- the floor view to usespellView
- the spells view to usespellSkillsView
- the spell skills view to usefacesManager
- the faces manager instance to usemapUpdaterState
- the map updater state instance to usedefaultKeyBindings
- the default key bindingsoptionManager
- the option manager to usedefaultTileSize
- the default tile size for the map viewkeybindingsManager
- the keybindings manager to usequestView
- the quests view to usecommandHistoryFactory
- the command history factory to usknowledgeView
- the knowledge view to useknowledgeTypeView
- the knowledge type view to useavoidCopyArea
- whether map scrolling is done by copying pixel
areas; if unset, always repaint all map squaresguiManager
- the GUI Manager to useguiFactory
- the global GUI factory instancependingDirections
- the pending directions instance to showsoundsCredits
- the credits for the sound filesfontScaleFactor
- the scale factor for font sizes@NotNull public @NotNull JXCSkin load(@NotNull @NotNull JXCSkinSource skinSource, @NotNull @NotNull CrossfireServerConnection crossfireServerConnection, @NotNull @NotNull GuiStateManager guiStateManager, @NotNull @NotNull TooltipManager tooltipManager, @NotNull @NotNull JXCWindowRenderer windowRenderer, @NotNull @NotNull GUIElementListener elementListener, @NotNull @NotNull MetaserverModel metaserverModel, @NotNull @NotNull CharacterModel characterModel, @NotNull @NotNull CommandQueue commandQueue, @NotNull @NotNull Shortcuts shortcuts, @NotNull @NotNull CommandExecutor commandExecutor, @NotNull @NotNull CommandCallback commandCallback, @NotNull @NotNull Macros macros, @NotNull @NotNull SmoothFaces smoothFaces) throws JXCSkinException
skinSource
- the source to load fromcrossfireServerConnection
- the server connection to attach toguiStateManager
- the gui state manager instancetooltipManager
- the tooltip manager to updatewindowRenderer
- the window renderer to add toelementListener
- the element listener to notifymetaserverModel
- the metaserver mode to usecharacterModel
- the character model to usecommandQueue
- the command queue to useshortcuts
- the shortcuts to usecommandExecutor
- the command executor for executing commandscommandCallback
- the command callback to usemacros
- the macros instance to usesmoothFaces
- the smooth facesJXCSkinException
- if the skin cannot be loaded