private void ScriptGridOpen() { string fullPath = null; if (scriptTable != null && scriptTable.Rows.Count > 0 && scriptlistView.SelectedItems.Count == 1) { string filename = scriptlistView.SelectedItems[0].Text; fullPath = Settings.GetFullPathForScript(filename); } if (fullPath != null) { EnhancedScriptEditor.Init(fullPath); } }
private void ScriptGridOpen() { string fullPath = null; if (scriptTable != null && scriptTable.Rows.Count > 0 && scriptlistView.SelectedItems.Count == 1) { string filename = scriptlistView.SelectedItems[0].SubItems[1].Text; //fullPath = (Process.GetCurrentProcess().MainModule.FileName.Substring(0, Process.GetCurrentProcess().MainModule.FileName.LastIndexOf("\\") + 1) + "Scripts\\") + filename; fullPath = Path.Combine(Assistant.Engine.RootPath, "Scripts", filename); } if (fullPath != null) { EnhancedScriptEditor.Init(fullPath); } }
private static void InspectGumps(string[] param) { EnhancedScriptEditor.InspectGumps(); }
private void buttonScriptEditorNew_Click(object sender, EventArgs e) { EnhancedScriptEditor.Init(null); // Open clear editor }