Added keyword help for some script types in the script editor

This commit is contained in:
codeimp 2009-05-10 17:02:47 +00:00
parent ec40df4765
commit a196125255
11 changed files with 125 additions and 61 deletions

View file

@ -421,6 +421,7 @@ namespace CodeImp.DoomBuilder.Controls
buttonsave.Enabled = (t != null) && t.ExplicitSave;
buttonsaveall.Enabled = (explicitsavescripts > 0);
buttoncompile.Enabled = (t != null) && (t.Config.Compiler != null);
buttonkeywordhelp.Enabled = (t != null) && !string.IsNullOrEmpty(t.Config.KeywordHelp);
buttonscriptconfig.Enabled = (t != null) && t.IsReconfigurable;
buttonundo.Enabled = (t != null);
buttonredo.Enabled = (t != null);
@ -516,6 +517,14 @@ namespace CodeImp.DoomBuilder.Controls
if(findreplaceform != null) findreplaceform.Dispose();
}
// Keyword help requested
private void buttonkeywordhelp_Click(object sender, EventArgs e)
{
// Get script
ScriptDocumentTab t = (tabs.SelectedTab as ScriptDocumentTab);
t.LaunchKeywordHelp();
}
// When the user changes the script configuration
private void buttonscriptconfig_Click(object sender, EventArgs e)
{