예제 #1
0
        public ExporterPlugin(AGS.Types.IAGSEditor editor)
        {
            this.editor = editor;

            settingsPane = new SettingsPanel(this);
            settingsPane.contentDocument = new AGS.Types.ContentDocument(settingsPane, "RHF Export Settings", this);

            editor.AddComponent(this);

            editor.GUIController.AddMenu(this, MENU_ID, MENU_TITLE, editor.GUIController.FileMenuID);
            AGS.Types.MenuCommands mainMenuCommands = new AGS.Types.MenuCommands(MENU_ID);
            mainMenuCommands.Commands.Add(new AGS.Types.MenuCommand(COMMAND_EXPORT_ID, COMMAND_EXPORT_TITLE));
            mainMenuCommands.Commands.Add(new AGS.Types.MenuCommand(COMMAND_EXPORT_ROOM_ID, COMMAND_EXPORT_ROOM_TITLE));
            mainMenuCommands.Commands.Add(new AGS.Types.MenuCommand(COMMAND_SETTINGS_ID, COMMAND_SETTINGS_TITLE));
            editor.GUIController.AddMenuItems(this, mainMenuCommands);
        }
예제 #2
0
 public CodeConvertPane(AGS.Types.IAGSEditor editor)
 {
     this.editor = editor;
     InitializeComponent();
 }