Disable SRB2-related preview buttons in Visual Mode, reword some actions

This commit is contained in:
spherallic 2023-05-01 23:05:49 +02:00
parent 8f3ce1fc01
commit e7687b183d
3 changed files with 16 additions and 5 deletions

View file

@ -417,9 +417,9 @@ togglenightspath
togglezoomtubes togglezoomtubes
{ {
title = "Toggle Zoom Tube Waypoint Paths"; title = "Toggle Zoom Tube Paths";
category = "classic"; category = "classic";
description = "Toggles zoom tube waypoint path rendering in classic modes."; description = "Toggles zoom tube path rendering in classic modes.";
allowkeys = true; allowkeys = true;
allowmouse = false; allowmouse = false;
allowscroll = false; allowscroll = false;

View file

@ -1868,7 +1868,7 @@ namespace CodeImp.DoomBuilder.Windows
this.buttontogglezoomtubes.Name = "buttontogglezoomtubes"; this.buttontogglezoomtubes.Name = "buttontogglezoomtubes";
this.buttontogglezoomtubes.Size = new System.Drawing.Size(23, 22); this.buttontogglezoomtubes.Size = new System.Drawing.Size(23, 22);
this.buttontogglezoomtubes.Tag = "builder_togglezoomtubes"; 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); this.buttontogglezoomtubes.Click += new System.EventHandler(this.InvokeTaggedAction);
// //
// buttontogglepolypreview // buttontogglepolypreview
@ -2848,7 +2848,7 @@ namespace CodeImp.DoomBuilder.Windows
this.itemrenderzoomtubes.Name = "itemrenderzoomtubes"; this.itemrenderzoomtubes.Name = "itemrenderzoomtubes";
this.itemrenderzoomtubes.Size = new System.Drawing.Size(215, 22); this.itemrenderzoomtubes.Size = new System.Drawing.Size(215, 22);
this.itemrenderzoomtubes.Tag = "builder_togglezoomtubes"; 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); this.itemrenderzoomtubes.Click += new System.EventHandler(this.InvokeTaggedAction);
// //
// itemrenderpolypreview // itemrenderpolypreview

View file

@ -338,6 +338,17 @@ namespace CodeImp.DoomBuilder.Windows
geomergemodesitems[i].Enabled = isclassicmode; 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(); UpdateEditMenu();
UpdatePrefabsMenu(); UpdatePrefabsMenu();
} }
@ -2903,7 +2914,7 @@ namespace CodeImp.DoomBuilder.Windows
General.Settings.RenderZoomtubes = !General.Settings.RenderZoomtubes; General.Settings.RenderZoomtubes = !General.Settings.RenderZoomtubes;
itemrenderzoomtubes.Checked = General.Settings.RenderZoomtubes; itemrenderzoomtubes.Checked = General.Settings.RenderZoomtubes;
buttontogglezoomtubes.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 // Redraw display to show changes
General.Interface.RedrawDisplay(); General.Interface.RedrawDisplay();