mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2024-11-10 06:41:49 +00:00
Disable SRB2-related preview buttons in Visual Mode, reword some actions
This commit is contained in:
parent
8f3ce1fc01
commit
e7687b183d
3 changed files with 16 additions and 5 deletions
|
@ -417,9 +417,9 @@ togglenightspath
|
|||
|
||||
togglezoomtubes
|
||||
{
|
||||
title = "Toggle Zoom Tube Waypoint Paths";
|
||||
title = "Toggle Zoom Tube Paths";
|
||||
category = "classic";
|
||||
description = "Toggles zoom tube waypoint path rendering in classic modes.";
|
||||
description = "Toggles zoom tube path rendering in classic modes.";
|
||||
allowkeys = true;
|
||||
allowmouse = false;
|
||||
allowscroll = false;
|
||||
|
|
4
Source/Core/Windows/MainForm.Designer.cs
generated
4
Source/Core/Windows/MainForm.Designer.cs
generated
|
@ -1868,7 +1868,7 @@ namespace CodeImp.DoomBuilder.Windows
|
|||
this.buttontogglezoomtubes.Name = "buttontogglezoomtubes";
|
||||
this.buttontogglezoomtubes.Size = new System.Drawing.Size(23, 22);
|
||||
this.buttontogglezoomtubes.Tag = "builder_togglezoomtubes";
|
||||
this.buttontogglezoomtubes.Text = "Show Zoom Tube Waypoint Paths";
|
||||
this.buttontogglezoomtubes.Text = "Show Zoom Tube Paths";
|
||||
this.buttontogglezoomtubes.Click += new System.EventHandler(this.InvokeTaggedAction);
|
||||
//
|
||||
// buttontogglepolypreview
|
||||
|
@ -2848,7 +2848,7 @@ namespace CodeImp.DoomBuilder.Windows
|
|||
this.itemrenderzoomtubes.Name = "itemrenderzoomtubes";
|
||||
this.itemrenderzoomtubes.Size = new System.Drawing.Size(215, 22);
|
||||
this.itemrenderzoomtubes.Tag = "builder_togglezoomtubes";
|
||||
this.itemrenderzoomtubes.Text = "Show Zoom Tube Waypoint Paths";
|
||||
this.itemrenderzoomtubes.Text = "Show Zoom Tube Paths";
|
||||
this.itemrenderzoomtubes.Click += new System.EventHandler(this.InvokeTaggedAction);
|
||||
//
|
||||
// itemrenderpolypreview
|
||||
|
|
|
@ -338,6 +338,17 @@ namespace CodeImp.DoomBuilder.Windows
|
|||
geomergemodesitems[i].Enabled = isclassicmode;
|
||||
}
|
||||
|
||||
// SRB2-related previews only matter in classic editing modes
|
||||
if (General.Map.SRB2)
|
||||
{
|
||||
buttontogglenightspath.Enabled = isclassicmode;
|
||||
buttontogglezoomtubes.Enabled = isclassicmode;
|
||||
buttontogglepolypreview.Enabled = isclassicmode;
|
||||
itemrendernightspath.Enabled = isclassicmode;
|
||||
itemrenderzoomtubes.Enabled = isclassicmode;
|
||||
itemrenderpolypreview.Enabled = isclassicmode;
|
||||
}
|
||||
|
||||
UpdateEditMenu();
|
||||
UpdatePrefabsMenu();
|
||||
}
|
||||
|
@ -2903,7 +2914,7 @@ namespace CodeImp.DoomBuilder.Windows
|
|||
General.Settings.RenderZoomtubes = !General.Settings.RenderZoomtubes;
|
||||
itemrenderzoomtubes.Checked = General.Settings.RenderZoomtubes;
|
||||
buttontogglezoomtubes.Checked = General.Settings.RenderZoomtubes;
|
||||
General.Interface.DisplayStatus(StatusType.Action, "Zoom tube waypoint path rendering is " + (General.Settings.RenderZoomtubes ? "ENABLED" : "DISABLED"));
|
||||
General.Interface.DisplayStatus(StatusType.Action, "Zoom tube path rendering is " + (General.Settings.RenderZoomtubes ? "ENABLED" : "DISABLED"));
|
||||
|
||||
// Redraw display to show changes
|
||||
General.Interface.RedrawDisplay();
|
||||
|
|
Loading…
Reference in a new issue