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(ScriptedEventFactory<G,A,R> scriptedEventFactory,
java.lang.String scriptEnding,
java.lang.String name,
ScriptArchUtils scriptArchUtils,
javax.swing.filechooser.FileFilter scriptFileFilter,
ProjectSettings projectSettings,
MapManager<?,?,?> mapManager,
PathManager pathManager,
ScriptEditControl scriptEditControl)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addEventScript(G gameObject,
ScriptArchData<G,A,R> scriptArchData,
java.awt.Frame parent)
A popup is opened and the user can create a new scripting event which
gets attached to this gameObject.
|
void |
createNewEvent(java.awt.Component frame,
ScriptArchData<G,A,R> scriptArchData,
G gameObject) |
public 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)
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 ScriptArchData<G,A,R> scriptArchData, @NotNull java.awt.Frame parent)
gameObject
- the game object to add event toscriptArchData
- the ScriptArchData
instance to displayparent
- the parent frame for the editorpublic void createNewEvent(@NotNull java.awt.Component frame, @NotNull ScriptArchData<G,A,R> scriptArchData, @NotNull G gameObject)