public FLArchiveCreatorForm(FLScriptEditor editor) { Editor = editor; InitializeComponent(); StyleManager.RegisterControls(this); Icon = FLEditorPluginHost.FLEditorIcon; }
public static void LoadPlugins(FLScriptEditor editor) { AttributeManager.AddAttributeHandler(new ToolbarItemAttributeHandler(editor)); PluginManager.AddPlugin( new DefaultToolbarItems(), new PluginAssemblyPointer( "fl-editor-toolbar", "", "", "9.9.9.9", editor.PluginHost ) ); PluginManager.LoadPlugins(editor.PluginHost); }
public static Form GetRequestedForm() { Form ed = null; if (string.IsNullOrEmpty(FLScriptEditor.Settings.WorkingDir) && !string.IsNullOrEmpty(FLScriptEditor.Settings.ScriptPath)) { if (FLScriptEditor.Settings.ScriptPath.EndsWith(".flc")) { ed = new ExportViewer(FLScriptEditor.Settings.ScriptPath); } else { ed = new FLScriptEditor(FLScriptEditor.Settings.ScriptPath); } } else if (!string.IsNullOrEmpty(FLScriptEditor.Settings.ScriptPath) && !string.IsNullOrEmpty(FLScriptEditor.Settings.WorkingDir)) { if (FLScriptEditor.Settings.ScriptPath.EndsWith(".flc")) { ed = new ExportViewer(FLScriptEditor.Settings.ScriptPath); } else { ed = new FLScriptEditor(FLScriptEditor.Settings.ScriptPath, FLScriptEditor.Settings.WorkingDir); } } else { ed = new FLScriptEditor(); } return(ed); }
public FLEditorPluginHost(FLScriptEditor editor) { Editor = editor; }