Gridarta Editor
net.sf.gridarta.gui.scripts.ScriptedEventEditor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R > Class Template Reference

Dialog to edit events linked to item scripting. More...

+ Inheritance diagram for net.sf.gridarta.gui.scripts.ScriptedEventEditor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:
+ Collaboration diagram for net.sf.gridarta.gui.scripts.ScriptedEventEditor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:

Public Member Functions

void editParameters (@NotNull final ScriptedEvent< G, A, R > scriptedEvent, @NotNull final Frame parent)
 Edit path and plugin name for an event. More...
 
String getInputOptions ()
 
String getInputPluginName ()
 
String getInputScriptPath ()
 
void openScript (@NotNull final MapManager<?, ?, ?> mapManager, @NotNull final String scriptPath, @NotNull final Component parent)
 Opens the script pad to display a script. More...
 
 ScriptedEventEditor (@NotNull final ProjectSettings projectSettings, @NotNull final ScriptEditControl scriptEditControl)
 Creates a new instance. More...
 

Private Attributes

JTextComponent inputOptions
 
JTextComponent inputPluginName
 
JTextComponent inputScriptPath
 
final ProjectSettings projectSettings
 The project settings instance. More...
 
final ScriptEditControl scriptEditControl
 The ScriptEditControl to use. More...
 

Static Private Attributes

static final ActionBuilder ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta")
 Action Builder. More...
 

Detailed Description

Dialog to edit events linked to item scripting.

See ScriptArchEditor for the creation dialog.

Definition at line 54 of file ScriptedEventEditor.java.

Constructor & Destructor Documentation

◆ ScriptedEventEditor()

net.sf.gridarta.gui.scripts.ScriptedEventEditor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.ScriptedEventEditor ( @NotNull final ProjectSettings  projectSettings,
@NotNull final ScriptEditControl  scriptEditControl 
)

Creates a new instance.

Parameters
projectSettingsthe project settings instance
scriptEditControlthe script edit control instance

Definition at line 88 of file ScriptedEventEditor.java.

Member Function Documentation

◆ editParameters()

void net.sf.gridarta.gui.scripts.ScriptedEventEditor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.editParameters ( @NotNull final ScriptedEvent< G, A, R >  scriptedEvent,
@NotNull final 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
scriptedEventthe event
parentthe parent frame for dialog boxes

Definition at line 125 of file ScriptedEventEditor.java.

Referenced by net.sf.gridarta.gui.scripts.ScriptArchDataUtils< G, A, R >.modifyEventScript().

+ Here is the caller graph for this function:

◆ getInputOptions()

String net.sf.gridarta.gui.scripts.ScriptedEventEditor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getInputOptions ( )

Definition at line 190 of file ScriptedEventEditor.java.

◆ getInputPluginName()

String net.sf.gridarta.gui.scripts.ScriptedEventEditor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getInputPluginName ( )

Definition at line 185 of file ScriptedEventEditor.java.

◆ getInputScriptPath()

String net.sf.gridarta.gui.scripts.ScriptedEventEditor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getInputScriptPath ( )

Definition at line 180 of file ScriptedEventEditor.java.

◆ openScript()

void net.sf.gridarta.gui.scripts.ScriptedEventEditor< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.openScript ( @NotNull final MapManager<?, ?, ?>  mapManager,
@NotNull final String  scriptPath,
@NotNull final Component  parent 
)

Opens the script pad to display a script.

Parameters
mapManagerthe map manager instance
scriptPaththe script path
parentthe parent component for dialog boxes

Definition at line 99 of file ScriptedEventEditor.java.

Referenced by net.sf.gridarta.gui.scripts.ScriptArchDataUtils< G, A, R >.modifyEventScript().

+ Here is the caller graph for this function:

Member Data Documentation

◆ ACTION_BUILDER

◆ inputOptions

◆ inputPluginName

◆ inputScriptPath

◆ projectSettings

◆ scriptEditControl


The documentation for this class was generated from the following file: