Class ScriptedEventEditor<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<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.Object
    Dialog to edit events linked to item scripting. See ScriptArchEditor for the creation dialog.
    • Constructor Detail

      • ScriptedEventEditor

        public ScriptedEventEditor​(@NotNull
                                   @NotNull ProjectSettings projectSettings,
                                   @NotNull
                                   @NotNull ScriptEditControl scriptEditControl)
        Creates a new instance.
        Parameters:
        projectSettings - the project settings instance
        scriptEditControl - 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 instance
        scriptPath - the script path
        parent - 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 event
        parent - 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()