mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-20 10:53:19 +00:00
Fixed, Game Configurations window: current configuration was not marked as changed when changing nodebuilders or engine test parameters.
Fixed, Game Configurations window: current map is marked as changed when applying changes done in the window. Changed, UDMF saving: removed extra line break between map elements.
This commit is contained in:
parent
d71b5814e1
commit
28f306489a
2 changed files with 16 additions and 12 deletions
|
@ -695,7 +695,7 @@ namespace CodeImp.DoomBuilder.IO
|
|||
db.Append(leveltabs); db.Append("{"); db.Append(newline);
|
||||
db.Append(OutputStructure(c, level + 1, newline, whitespace));
|
||||
db.Append(leveltabs); db.Append("}"); db.Append(newline);
|
||||
if(whitespace) { db.Append(leveltabs); db.Append(newline); }
|
||||
//if(whitespace) { db.Append(leveltabs); db.Append(newline); } //mxd. Let's save a few Kbs by using single line breaks...
|
||||
}
|
||||
// Check if the value is of boolean type
|
||||
else if(cs[i].Value is bool)
|
||||
|
|
|
@ -280,23 +280,23 @@ namespace CodeImp.DoomBuilder.Windows
|
|||
// Nodebuilder selection changed
|
||||
private void nodebuildersave_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// Leave when no configuration selected
|
||||
if(configinfo == null) return;
|
||||
// Leave during setup or when no configuration selected
|
||||
if(preventchanges || configinfo == null || nodebuildersave.SelectedItem == null) return;
|
||||
|
||||
// Apply to selected configuration
|
||||
if(nodebuildersave.SelectedItem != null)
|
||||
configinfo.NodebuilderSave = (nodebuildersave.SelectedItem as NodebuilderInfo).Name;
|
||||
configinfo.NodebuilderSave = (nodebuildersave.SelectedItem as NodebuilderInfo).Name;
|
||||
configinfo.Changed = true; //mxd
|
||||
}
|
||||
|
||||
// Nodebuilder selection changed
|
||||
private void nodebuildertest_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// Leave when no configuration selected
|
||||
if(configinfo == null) return;
|
||||
// Leave during setup or when no configuration selected
|
||||
if(preventchanges || configinfo == null || nodebuildertest.SelectedItem == null) return;
|
||||
|
||||
// Apply to selected configuration
|
||||
if(nodebuildertest.SelectedItem != null)
|
||||
configinfo.NodebuilderTest = (nodebuildertest.SelectedItem as NodebuilderInfo).Name;
|
||||
configinfo.NodebuilderTest = (nodebuildertest.SelectedItem as NodebuilderInfo).Name;
|
||||
configinfo.Changed = true; //mxd
|
||||
}
|
||||
|
||||
// Test application changed
|
||||
|
@ -320,18 +320,19 @@ namespace CodeImp.DoomBuilder.Windows
|
|||
cbEngineSelector.Items[cbEngineSelector.SelectedIndex] = configinfo.TestProgramName;
|
||||
}
|
||||
|
||||
configinfo.Changed = true;
|
||||
configinfo.Changed = true; //mxd
|
||||
}
|
||||
|
||||
// Test parameters changed
|
||||
private void testparameters_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
// Leave when no configuration selected
|
||||
if(configinfo == null) return;
|
||||
if(preventchanges || configinfo == null) return;
|
||||
|
||||
// Apply to selected configuration
|
||||
configinfo = listconfigs.SelectedItems[0].Tag as ConfigurationInfo;
|
||||
configinfo.TestParameters = testparameters.Text;
|
||||
configinfo.Changed = true; //mxd
|
||||
|
||||
// Show example result
|
||||
CreateParametersExample();
|
||||
|
@ -396,9 +397,12 @@ namespace CodeImp.DoomBuilder.Windows
|
|||
if(ci.Changed) General.Configs[i].Apply(ci);
|
||||
}
|
||||
|
||||
//mxd. Update linedef color presets
|
||||
//mxd. Update linedef color presets, mark the map as changed.
|
||||
if(General.Map != null && General.Map.Map != null)
|
||||
{
|
||||
General.Map.Map.UpdateCustomLinedefColors();
|
||||
General.Map.IsChanged = true;
|
||||
}
|
||||
|
||||
// Close
|
||||
this.DialogResult = DialogResult.OK;
|
||||
|
|
Loading…
Reference in a new issue