mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-27 14:12:16 +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.
74 lines
1.8 KiB
C#
74 lines
1.8 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 System.Windows.Forms;
|
|
using CodeImp.DoomBuilder.Config;
|
|
|
|
#endregion
|
|
|
|
namespace CodeImp.DoomBuilder.Controls
|
|
{
|
|
public partial class PasteOptionsControl : UserControl
|
|
{
|
|
#region ================== Variables
|
|
|
|
#endregion
|
|
|
|
#region ================== Properties
|
|
|
|
#endregion
|
|
|
|
#region ================== Constructor
|
|
|
|
// Constructor
|
|
public PasteOptionsControl()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region ================== Methods
|
|
|
|
// This sets the options from the given PasteOptions
|
|
public void Setup(PasteOptions options)
|
|
{
|
|
// Setup controls
|
|
keeptags.Checked = (options.ChangeTags == 0);
|
|
renumbertags.Checked = (options.ChangeTags == 1);
|
|
removetags.Checked = (options.ChangeTags == 2);
|
|
removeactions.Checked = options.RemoveActions;
|
|
}
|
|
|
|
// This returns the options as set by the user
|
|
public PasteOptions GetOptions()
|
|
{
|
|
PasteOptions options = new PasteOptions();
|
|
|
|
// Collect settings
|
|
if(keeptags.Checked) options.ChangeTags = 0;
|
|
else if(renumbertags.Checked) options.ChangeTags = 1;
|
|
else if(removetags.Checked) options.ChangeTags = 2;
|
|
options.RemoveActions = removeactions.Checked;
|
|
|
|
return options;
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|