public class ScriptArchEditor<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends java.lang.Object
ScriptedEventEditor
for the edition dialog.Constructor and Description |
---|
ScriptArchEditor(@NotNull ScriptedEventFactory<G,A,R> scriptedEventFactory,
@NotNull java.lang.String scriptEnding,
@NotNull java.lang.String name,
@NotNull ScriptArchUtils scriptArchUtils,
@NotNull javax.swing.filechooser.FileFilter scriptFileFilter,
@NotNull ProjectSettings projectSettings,
@NotNull MapManager<?,?,?> mapManager,
@NotNull PathManager pathManager,
@NotNull ScriptEditControl scriptEditControl)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addEventScript(G gameObject,
@NotNull ScriptArchData<G,A,R> scriptArchData,
@NotNull java.awt.Frame parent)
A popup is opened and the user can create a new scripting event which
gets attached to this gameObject.
|
public ScriptArchEditor(@NotNull @NotNull ScriptedEventFactory<G,A,R> scriptedEventFactory, @NotNull @NotNull java.lang.String scriptEnding, @NotNull @NotNull java.lang.String name, @NotNull @NotNull ScriptArchUtils scriptArchUtils, @NotNull @NotNull javax.swing.filechooser.FileFilter scriptFileFilter, @NotNull @NotNull ProjectSettings projectSettings, @NotNull @NotNull MapManager<?,?,?> mapManager, @NotNull @NotNull PathManager pathManager, @NotNull @NotNull ScriptEditControl scriptEditControl)
scriptedEventFactory
- the scripted event factory instance to usescriptEnding
- the suffix for script filesname
- the default event typescriptArchUtils
- the script arch utils to usescriptFileFilter
- the script file filter to useprojectSettings
- the project settings to usemapManager
- the map manager instance to usepathManager
- the path manager for converting path namesscriptEditControl
- the script edit control to usepublic void addEventScript(@NotNull G gameObject, @NotNull @NotNull ScriptArchData<G,A,R> scriptArchData, @NotNull @NotNull java.awt.Frame parent)
gameObject
- the game object to add event toscriptArchData
- the ScriptArchData
instance to displayparent
- the parent frame for the editor