public class GameObjectAttributesDialogFactory<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends java.lang.Object
dialogs for editing
game object attributes
. For each game object instance at most one dialog is
created at a time. Dialog instances are dropped when the dialog is disposed.Constructor and Description |
---|
GameObjectAttributesDialogFactory(@NotNull ArchetypeTypeSet archetypeTypeSet,
@NotNull java.awt.Frame parent,
@NotNull CFTreasureListTree treasureListTree,
@NotNull FaceObjectProviders faceObjectProviders,
@NotNull AnimationObjects animationObjects,
@NotNull ProjectSettings projectSettings,
@NotNull javax.swing.filechooser.FileFilter mapFileFilter,
@NotNull javax.swing.filechooser.FileFilter scriptFileFilter,
@NotNull FaceObjects faceObjects,
@NotNull Spells<GameObjectSpell<G,A,R>> gameObjectSpells,
@NotNull Spells<NumberSpell> numberSpells,
int undefinedSpellIndex,
@NotNull TreasureTree treasureTree,
@NotNull javax.swing.ImageIcon noFaceSquareIcon,
@NotNull javax.swing.ImageIcon unknownSquareIcon,
@NotNull TextAreaDefaults textAreaDefaults,
@NotNull MapManager<G,A,R> mapManager)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
hideAttributeDialog(G gameObject)
Hides the game object attributes dialog for a given
GameObject
instance. |
void |
showAttributeDialog(G gameObject)
Shows the game object attributes dialog for a given
GameObject
instance. |
public GameObjectAttributesDialogFactory(@NotNull @NotNull ArchetypeTypeSet archetypeTypeSet, @NotNull @NotNull java.awt.Frame parent, @NotNull @NotNull CFTreasureListTree treasureListTree, @NotNull @NotNull FaceObjectProviders faceObjectProviders, @NotNull @NotNull AnimationObjects animationObjects, @NotNull @NotNull ProjectSettings projectSettings, @NotNull @NotNull javax.swing.filechooser.FileFilter mapFileFilter, @NotNull @NotNull javax.swing.filechooser.FileFilter scriptFileFilter, @NotNull @NotNull FaceObjects faceObjects, @NotNull @NotNull Spells<GameObjectSpell<G,A,R>> gameObjectSpells, @NotNull @NotNull Spells<NumberSpell> numberSpells, int undefinedSpellIndex, @NotNull @NotNull TreasureTree treasureTree, @NotNull @NotNull javax.swing.ImageIcon noFaceSquareIcon, @NotNull @NotNull javax.swing.ImageIcon unknownSquareIcon, @NotNull @NotNull TextAreaDefaults textAreaDefaults, @NotNull @NotNull MapManager<G,A,R> mapManager)
archetypeTypeSet
- the list of CF type-dataparent
- the parent frame for dialog boxestreasureListTree
- the treasure list tree to displayfaceObjectProviders
- the face object providers for looking up
facesanimationObjects
- the animation objects instance for choosing
animation namesprojectSettings
- the project settings to usemapFileFilter
- the file filter to use for map filesscriptFileFilter
- the file filter to use for script filesfaceObjects
- the face objects instance for choosing face namesgameObjectSpells
- the game object spells to usenumberSpells
- the numbered spells to useundefinedSpellIndex
- the index for "no spell"treasureTree
- the treasure tree to usenoFaceSquareIcon
- the image icon for no animationsunknownSquareIcon
- the image icon for undefined animationstextAreaDefaults
- the test area defaults for text fieldsmapManager
- the map manager instancepublic void showAttributeDialog(@NotNull G gameObject)
GameObject
instance.gameObject
- the GameObject to be displayed by this dialogpublic void hideAttributeDialog(@NotNull G gameObject)
GameObject
instance.gameObject
- the GameObject to be displayed by this dialog