mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-24 04:41:10 +00:00
5e71585c99
Removed "Adjust heights to match relatively with surrounding sector" option from Preferences -> Pasting, because sector height adjustments are now handled by Edit Selection mode. Fixed, Sector info panel: in some cases 0 deg. floor/ceiling texture rotation was triggering texture offset/scale/rotation UI parts to be shown. Fixed even more cases when sidedefs belonging to linedefs, which were moved on top of existing linedefs, were incorrectly reassigned when applying Edit Selection and Drag Geometry modes. Fixed, Bridge mode: in some cases calculated floor/ceiling heights were not applied to the sectors created by the mode. Changed, internal: changed program's CurrentCulture to InvariantCulture.
89 lines
2.1 KiB
C#
89 lines
2.1 KiB
C#
|
|
#region ================== Copyright (c) 2007 Pascal vd Heiden
|
|
|
|
/*
|
|
* Copyright (c) 2007 Pascal vd Heiden, www.codeimp.com
|
|
* This program is released under GNU General Public License
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
*/
|
|
|
|
#endregion
|
|
|
|
#region ================== Namespaces
|
|
|
|
using CodeImp.DoomBuilder.IO;
|
|
|
|
#endregion
|
|
|
|
namespace CodeImp.DoomBuilder.Config
|
|
{
|
|
public class PasteOptions
|
|
{
|
|
#region ================== Constants
|
|
|
|
public const int TAGS_KEEP = 0;
|
|
public const int TAGS_RENUMBER = 1;
|
|
public const int TAGS_REMOVE = 2;
|
|
|
|
#endregion
|
|
|
|
#region ================== Variables
|
|
|
|
private int changetags; // See TAGS_ constants
|
|
private bool removeactions;
|
|
|
|
#endregion
|
|
|
|
#region ================== Properties
|
|
|
|
public int ChangeTags { get { return changetags; } set { changetags = value; } }
|
|
public bool RemoveActions { get { return removeactions; } set { removeactions = value; } }
|
|
|
|
#endregion
|
|
|
|
#region ================== Constructor / Disposer
|
|
|
|
// Constructor
|
|
public PasteOptions()
|
|
{
|
|
}
|
|
|
|
// Copy Constructor
|
|
public PasteOptions(PasteOptions p)
|
|
{
|
|
this.changetags = p.changetags;
|
|
this.removeactions = p.removeactions;
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region ================== Methods
|
|
|
|
// Make a copy
|
|
public PasteOptions Copy()
|
|
{
|
|
return new PasteOptions(this);
|
|
}
|
|
|
|
// This reads from configuration
|
|
internal void ReadConfiguration(Configuration cfg, string path)
|
|
{
|
|
changetags = cfg.ReadSetting(path + ".changetags", 0);
|
|
removeactions = cfg.ReadSetting(path + ".removeactions", false);
|
|
}
|
|
|
|
// This writes to configuration
|
|
internal void WriteConfiguration(Configuration cfg, string path)
|
|
{
|
|
cfg.WriteSetting(path + ".changetags", changetags);
|
|
cfg.WriteSetting(path + ".removeactions", removeactions);
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|