mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 20:32:34 +00:00
883527c37c
Tag Statistics form: you can now double click on Sectors, Linedefs or Things cell to select them, and right click to open their properties. Texture size labels were displayed incorrectly in some cases. Rewritten VerticesMode.DeleteItem() once again... Vertex Edit form now works in realtime mode. Vertex Edit form: ceiling and floor vertex offsets can now be cleared. Added StairSectorBuilder plugin (I suppose some external plugins will stop working in GZDB because I've changed ButtonStep to float in ButtonsNumericTextbox a couple revisions ago...). Preferences form: action description is now scrollable. Changed background color of Sector Edit form. Vertex' ZCeiling and ZFloor properties are now managed internally.
70 lines
1.6 KiB
C#
70 lines
1.6 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.Map;
|
|
|
|
#endregion
|
|
|
|
namespace CodeImp.DoomBuilder.Controls
|
|
{
|
|
internal partial class VertexInfoPanel : UserControl
|
|
{
|
|
// Constructor
|
|
public VertexInfoPanel()
|
|
{
|
|
// Initialize
|
|
InitializeComponent();
|
|
}
|
|
|
|
// This shows the info
|
|
public void ShowInfo(Vertex v)
|
|
{
|
|
// Vertex info
|
|
vertexinfo.Text = " Vertex " + v.Index + " ";
|
|
position.Text = v.Position.x.ToString("0.##") + ", " + v.Position.y.ToString("0.##");
|
|
|
|
//mxd. Height offsets
|
|
if(General.Map.UDMF) {
|
|
if(!float.IsNaN(v.ZCeiling)) {
|
|
zceiling.Text = v.ZCeiling.ToString("0.##");
|
|
zceiling.Enabled = true;
|
|
labelCeilingOffset.Enabled = true;
|
|
} else {
|
|
zceiling.Text = "--";
|
|
}
|
|
|
|
if(!float.IsNaN(v.ZFloor)) {
|
|
zfloor.Text = v.ZFloor.ToString("0.##");
|
|
zfloor.Enabled = true;
|
|
labelFloorOffset.Enabled = true;
|
|
} else {
|
|
zfloor.Text = "--";
|
|
}
|
|
|
|
panelOffsets.Visible = true;
|
|
} else {
|
|
panelOffsets.Visible = false;
|
|
}
|
|
|
|
// Show the whole thing
|
|
this.Show();
|
|
this.Update();
|
|
}
|
|
}
|
|
}
|