Package net.sf.gridarta.gui.scripts
Class ScriptedEventEditor<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.gui.scripts.ScriptedEventEditor<G,A,R>
-
public class ScriptedEventEditor<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.ObjectDialog to edit events linked to item scripting. SeeScriptArchEditorfor the creation dialog.
-
-
Constructor Summary
Constructors Constructor Description ScriptedEventEditor(@NotNull ProjectSettings projectSettings, @NotNull ScriptEditControl scriptEditControl)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voideditParameters(@NotNull ScriptedEvent<G,A,R> scriptedEvent, @NotNull java.awt.Frame parent)Edit path and plugin name for an event.@NotNull java.lang.StringgetInputOptions()@NotNull java.lang.StringgetInputPluginName()@NotNull java.lang.StringgetInputScriptPath()voidopenScript(@NotNull MapManager<?,?,?> mapManager, @NotNull java.lang.String scriptPath, @NotNull java.awt.Component parent)Opens the script pad to display a script.
-
-
-
Constructor Detail
-
ScriptedEventEditor
public ScriptedEventEditor(@NotNull @NotNull ProjectSettings projectSettings, @NotNull @NotNull ScriptEditControl scriptEditControl)Creates a new instance.- Parameters:
projectSettings- the project settings instancescriptEditControl- the script edit control instance
-
-
Method Detail
-
openScript
public void openScript(@NotNull @NotNull MapManager<?,?,?> mapManager, @NotNull @NotNull java.lang.String scriptPath, @NotNull @NotNull java.awt.Component parent)Opens the script pad to display a script.- Parameters:
mapManager- the map manager instancescriptPath- the script pathparent- the parent component for dialog boxes
-
editParameters
public void editParameters(@NotNull @NotNull ScriptedEvent<G,A,R> scriptedEvent, @NotNull @NotNull java.awt.Frame parent)Edit path and plugin name for an event. A popup dialog is shown with input text fields for file path and plugin name.- Parameters:
scriptedEvent- the eventparent- the parent frame for dialog boxes
-
getInputScriptPath
@NotNull public @NotNull java.lang.String getInputScriptPath()
-
getInputPluginName
@NotNull public @NotNull java.lang.String getInputPluginName()
-
getInputOptions
@NotNull public @NotNull java.lang.String getInputOptions()
-
-