Package net.sf.gridarta.gui.scripts
Class ScriptArchEditor<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.gui.scripts.ScriptArchEditor<G,A,R>
-
public class ScriptArchEditor<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.ObjectDialog to create events linked to item scripting. SeeScriptedEventEditorfor the edition dialog.
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEventScript(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.
-
-
-
Constructor Detail
-
ScriptArchEditor
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)Creates a new instance.- Parameters:
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 use
-
-
Method Detail
-
addEventScript
public void addEventScript(@NotNull G gameObject, @NotNull @NotNull ScriptArchData<G,A,R> scriptArchData, @NotNull @NotNull java.awt.Frame parent)A popup is opened and the user can create a new scripting event which gets attached to this gameObject.- Parameters:
gameObject- the game object to add event toscriptArchData- theScriptArchDatainstance to displayparent- the parent frame for the editor
-
-