Eternity Engine game configuration: it's again possible to set the floor and ceiling brightness independently from the sector brightness

This commit is contained in:
biwa 2021-09-13 21:19:48 +02:00
parent 05939279dc
commit 0039945086
7 changed files with 15 additions and 8 deletions

View file

@ -236,6 +236,9 @@ mapformat_udmf
// WARNING: enabling this will make maps incompatible with Doom Builder 2 and can lead to problems in Slade 3!
longtexturenames = true;
// Enables setting brightness for floor and ceiling independently from each other
distinctfloorandceilingbrightness = true;
// Default nodebuilder configurations
defaultsavecompiler = "zdbsp_udmf_normal";
defaulttestcompiler = "zdbsp_udmf_fast";

View file

@ -365,7 +365,8 @@ mapformat_udmf
planeequationsupport = true;
// Enables setting brightness for floor, ceiling, and walls independently from each other
distinctsurfacebrightness = true;
distinctfloorandceilingbrightness = true;
distinctwallbrightness = true;
// Default nodebuilder configurations
defaultsavecompiler = "zdbsp_udmf_normal";

View file

@ -110,7 +110,8 @@ namespace CodeImp.DoomBuilder.Config
private readonly bool localsidedeftextureoffsets; //MaxW
private readonly bool effect3dfloorsupport;
private readonly bool planeequationsupport;
private readonly bool distinctsurfacebrightness;
private readonly bool distinctfloorandceilingbrightness;
private readonly bool distinctwallbrightness;
// Skills
private readonly List<SkillInfo> skills;
@ -283,7 +284,8 @@ namespace CodeImp.DoomBuilder.Config
public bool UseLocalSidedefTextureOffsets { get { return localsidedeftextureoffsets; } } //MaxW
public bool Effect3DFloorSupport { get { return effect3dfloorsupport; } }
public bool PlaneEquationSupport { get { return planeequationsupport; } }
public bool DistinctSurfaceBrightness { get { return distinctsurfacebrightness; } }
public bool DistinctFloorAndCeilingBrightness { get { return distinctfloorandceilingbrightness; } }
public bool DistinctWallBrightness { get { return distinctwallbrightness; } }
// Texture/flat/voxel sources
public IDictionary TextureRanges { get { return textureranges; } }
@ -458,7 +460,8 @@ namespace CodeImp.DoomBuilder.Config
localsidedeftextureoffsets = (cfg.ReadSetting("localsidedeftextureoffsets", false)); //MaxW
effect3dfloorsupport = cfg.ReadSetting("effect3dfloorsupport", false);
planeequationsupport = cfg.ReadSetting("planeequationsupport", false);
distinctsurfacebrightness = cfg.ReadSetting("distinctsurfacebrightness", false);
distinctfloorandceilingbrightness = cfg.ReadSetting("distinctfloorandceilingbrightness", false);
distinctwallbrightness = cfg.ReadSetting("distinctwallbrightness", false);
for (int i = 0; i < Linedef.NUM_ARGS; i++) makedoorargs[i] = cfg.ReadSetting("makedoorarg" + i.ToString(CultureInfo.InvariantCulture), 0);
//mxd. Update map format flags

View file

@ -239,7 +239,7 @@ namespace CodeImp.DoomBuilder.Windows
}
// Diable brightness controls?
if(!General.Map.Config.DistinctSurfaceBrightness)
if(!General.Map.Config.DistinctWallBrightness)
{
lightFront.Enabled = false;
cbLightAbsoluteFront.Enabled = false;

View file

@ -300,7 +300,7 @@ namespace CodeImp.DoomBuilder.Windows
floorslopecontrol.PivotMode = (SlopePivotMode)General.Settings.ReadSetting("windows." + configname + ".floorpivotmode", (int)SlopePivotMode.LOCAL);
// Diable brightness controls?
if(!General.Map.Config.DistinctSurfaceBrightness)
if(!General.Map.Config.DistinctFloorAndCeilingBrightness)
{
ceilBrightness.Enabled = false;
ceilLightAbsolute.Enabled = false;

View file

@ -1550,7 +1550,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
public virtual void OnChangeTargetBrightness(bool up)
{
//mxd. Change UDMF wall light?
if(General.Map.UDMF && General.Map.Config.DistinctSurfaceBrightness)
if(General.Map.UDMF && General.Map.Config.DistinctWallBrightness)
{
int light = Sidedef.Fields.GetValue("light", 0);
bool absolute = Sidedef.Fields.GetValue("lightabsolute", false);

View file

@ -459,7 +459,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
{
// Change the sector brightness if the map is not in UDMF format, or this ceiling is part of 3D-floor,
// or the game configuration doesn't support distinct surfave brightnesses
if(!General.Map.UDMF || (level != null && Sector.Sector != level.sector) || !General.Map.Config.DistinctSurfaceBrightness)
if(!General.Map.UDMF || (level != null && Sector.Sector != level.sector) || !General.Map.Config.DistinctFloorAndCeilingBrightness)
{
base.OnChangeTargetBrightness(up);
return;