mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-26 05:41:45 +00:00
Draw Settings docker: fixed an issue where toggling the texture check boxes stopped texture overrides from being applied
This commit is contained in:
parent
ddd68de72e
commit
d363ab9c30
1 changed files with 22 additions and 0 deletions
|
@ -72,6 +72,10 @@ namespace CodeImp.DoomBuilder.BuilderModes.Interface
|
||||||
ceiling.Enabled = cbOverrideCeilingTexture.Checked;
|
ceiling.Enabled = cbOverrideCeilingTexture.Checked;
|
||||||
General.Map.Options.OverrideCeilingTexture = cbOverrideCeilingTexture.Checked;
|
General.Map.Options.OverrideCeilingTexture = cbOverrideCeilingTexture.Checked;
|
||||||
|
|
||||||
|
// If we don't set the default texture here it'll not be set until a different texture is selected
|
||||||
|
if (ceiling.Enabled)
|
||||||
|
General.Map.Options.DefaultCeilingTexture = ceiling.TextureName;
|
||||||
|
|
||||||
getsectortexturesfromselection.Enabled = (cbOverrideCeilingTexture.Checked || cbOverrideFloorTexture.Checked);
|
getsectortexturesfromselection.Enabled = (cbOverrideCeilingTexture.Checked || cbOverrideFloorTexture.Checked);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -79,6 +83,12 @@ namespace CodeImp.DoomBuilder.BuilderModes.Interface
|
||||||
{
|
{
|
||||||
floor.Enabled = cbOverrideFloorTexture.Checked;
|
floor.Enabled = cbOverrideFloorTexture.Checked;
|
||||||
General.Map.Options.OverrideFloorTexture = cbOverrideFloorTexture.Checked;
|
General.Map.Options.OverrideFloorTexture = cbOverrideFloorTexture.Checked;
|
||||||
|
|
||||||
|
// If we don't set the default texture here it'll not be set until a different texture is selected
|
||||||
|
if (floor.Enabled)
|
||||||
|
General.Map.Options.DefaultFloorTexture = floor.TextureName;
|
||||||
|
|
||||||
|
getsectortexturesfromselection.Enabled = (cbOverrideCeilingTexture.Checked || cbOverrideFloorTexture.Checked);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void cbOverrideTopTexture_CheckedChanged(object sender, EventArgs e)
|
private void cbOverrideTopTexture_CheckedChanged(object sender, EventArgs e)
|
||||||
|
@ -86,6 +96,10 @@ namespace CodeImp.DoomBuilder.BuilderModes.Interface
|
||||||
top.Enabled = cbOverrideTopTexture.Checked;
|
top.Enabled = cbOverrideTopTexture.Checked;
|
||||||
General.Map.Options.OverrideTopTexture = cbOverrideTopTexture.Checked;
|
General.Map.Options.OverrideTopTexture = cbOverrideTopTexture.Checked;
|
||||||
|
|
||||||
|
// If we don't set the default texture here it'll not be set until a different texture is selected
|
||||||
|
if (top.Enabled)
|
||||||
|
General.Map.Options.DefaultTopTexture = top.TextureName;
|
||||||
|
|
||||||
getsidetexturesfromselection.Enabled = (cbOverrideTopTexture.Checked || cbOverrideMiddleTexture.Checked || cbOverrideBottomTexture.Checked);
|
getsidetexturesfromselection.Enabled = (cbOverrideTopTexture.Checked || cbOverrideMiddleTexture.Checked || cbOverrideBottomTexture.Checked);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -94,6 +108,10 @@ namespace CodeImp.DoomBuilder.BuilderModes.Interface
|
||||||
middle.Enabled = cbOverrideMiddleTexture.Checked;
|
middle.Enabled = cbOverrideMiddleTexture.Checked;
|
||||||
General.Map.Options.OverrideMiddleTexture = cbOverrideMiddleTexture.Checked;
|
General.Map.Options.OverrideMiddleTexture = cbOverrideMiddleTexture.Checked;
|
||||||
|
|
||||||
|
// If we don't set the default texture here it'll not be set until a different texture is selected
|
||||||
|
if (middle.Enabled)
|
||||||
|
General.Map.Options.DefaultWallTexture = middle.TextureName;
|
||||||
|
|
||||||
getsidetexturesfromselection.Enabled = (cbOverrideTopTexture.Checked || cbOverrideMiddleTexture.Checked || cbOverrideBottomTexture.Checked);
|
getsidetexturesfromselection.Enabled = (cbOverrideTopTexture.Checked || cbOverrideMiddleTexture.Checked || cbOverrideBottomTexture.Checked);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -102,6 +120,10 @@ namespace CodeImp.DoomBuilder.BuilderModes.Interface
|
||||||
bottom.Enabled = cbOverrideBottomTexture.Checked;
|
bottom.Enabled = cbOverrideBottomTexture.Checked;
|
||||||
General.Map.Options.OverrideBottomTexture = cbOverrideBottomTexture.Checked;
|
General.Map.Options.OverrideBottomTexture = cbOverrideBottomTexture.Checked;
|
||||||
|
|
||||||
|
// If we don't set the default texture here it'll not be set until a different texture is selected
|
||||||
|
if (bottom.Enabled)
|
||||||
|
General.Map.Options.DefaultBottomTexture = bottom.TextureName;
|
||||||
|
|
||||||
getsidetexturesfromselection.Enabled = (cbOverrideTopTexture.Checked || cbOverrideMiddleTexture.Checked || cbOverrideBottomTexture.Checked);
|
getsidetexturesfromselection.Enabled = (cbOverrideTopTexture.Checked || cbOverrideMiddleTexture.Checked || cbOverrideBottomTexture.Checked);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue