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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addEventScript​(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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 use
        scriptEnding - the suffix for script files
        name - the default event type
        scriptArchUtils - the script arch utils to use
        scriptFileFilter - the script file filter to use
        projectSettings - the project settings to use
        mapManager - the map manager instance to use
        pathManager - the path manager for converting path names
        scriptEditControl - 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 to
        scriptArchData - the ScriptArchData instance to display
        parent - the parent frame for the editor