mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-21 03:11:40 +00:00
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:
parent
05939279dc
commit
0039945086
7 changed files with 15 additions and 8 deletions
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue