mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2024-11-10 06:41:49 +00:00
Added, Visual mode: added support for "Change Floor Brightness to this Brightness" and "Change Ceiling Brightness to this Brightness" Boom actions.
Changed, Sectors mode: "Flip Linedefs" and "Align Linedefs" actions will no longer flip single-sided linedefs with only front side. Fixed, Script Editor: fixed a crash when trying to update script navigator combo box when switching to a never saved ACS script.
This commit is contained in:
parent
f8fb7eb057
commit
1050f80c52
5 changed files with 19 additions and 9 deletions
|
@ -107,7 +107,8 @@ floor
|
|||
|
||||
213
|
||||
{
|
||||
title = "Floor Change Brightness to this Brightness";
|
||||
title = "Change Floor Brightness to this Brightness";
|
||||
id = "Boom_Transfer_FloorLight";
|
||||
prefix = "";
|
||||
}
|
||||
|
||||
|
@ -641,7 +642,8 @@ ceiling
|
|||
|
||||
261
|
||||
{
|
||||
title = "Ceiling Brightness to this Brightness";
|
||||
title = "Change Ceiling Brightness to this Brightness";
|
||||
id = "Boom_Transfer_CeilingLight";
|
||||
prefix = "";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -551,6 +551,7 @@ constants
|
|||
APROP_Damage;
|
||||
APROP_DamageFactor;
|
||||
APROP_DamageMultiplier;
|
||||
APROP_DamageType;
|
||||
APROP_DeathSound;
|
||||
APROP_Dormant;
|
||||
APROP_Dropped;
|
||||
|
|
|
@ -1174,6 +1174,7 @@ constants
|
|||
DMSS_EXFILTER;
|
||||
DMSS_EXSPECIES;
|
||||
DMSS_EITHER;
|
||||
DMSS_INFLICTORDMGTYPE;
|
||||
FMDF_NOPITCH;
|
||||
FMDF_NOANGLE;
|
||||
FMDF_INTERPOLATE;
|
||||
|
|
|
@ -2327,8 +2327,12 @@ namespace CodeImp.DoomBuilder.Geometry
|
|||
{
|
||||
foreach(Linedef l in frontlines)
|
||||
{
|
||||
l.FlipVertices();
|
||||
l.FlipSidedefs();
|
||||
// Skip single-sided lines with only front side
|
||||
if(l.Back != null)
|
||||
{
|
||||
l.FlipVertices();
|
||||
l.FlipSidedefs();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2723,13 +2723,13 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
// Make undo
|
||||
if(selected.Count > 1)
|
||||
{
|
||||
General.Map.UndoRedo.CreateUndo("Align linedefs of " + selected.Count + " sectors");
|
||||
General.Interface.DisplayStatus(StatusType.Action, "Aligned linedefs of " + selected.Count + "sectors.");
|
||||
General.Map.UndoRedo.CreateUndo("Flip linedefs of " + selected.Count + " sectors");
|
||||
General.Interface.DisplayStatus(StatusType.Action, "Flipped linedefs of " + selected.Count + "sectors.");
|
||||
}
|
||||
else
|
||||
{
|
||||
General.Map.UndoRedo.CreateUndo("Align sector linedefs");
|
||||
General.Interface.DisplayStatus(StatusType.Action, "Aligned sector linedefs.");
|
||||
General.Map.UndoRedo.CreateUndo("Flip sector linedefs");
|
||||
General.Interface.DisplayStatus(StatusType.Action, "Flipped sector linedefs.");
|
||||
}
|
||||
|
||||
HashSet<Linedef> selectedlines = new HashSet<Linedef>();
|
||||
|
@ -2737,7 +2737,9 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
{
|
||||
foreach(Sidedef side in s.Sidedefs)
|
||||
{
|
||||
if(!selectedlines.Contains(side.Line)) selectedlines.Add(side.Line);
|
||||
// Skip single-sided lines with only front side
|
||||
if(!selectedlines.Contains(side.Line) && (side.Line.Back != null || side.Line.Front == null))
|
||||
selectedlines.Add(side.Line);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue