mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-06-02 09:51:47 +00:00
Added keyword help for some script types in the script editor
This commit is contained in:
parent
ec40df4765
commit
a196125255
11 changed files with 125 additions and 61 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue