mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-18 22:41:46 +00:00
Main form, warnings indicator: fixed a redraw bug when showing more than 999 errors/warnings.
Sector/Linedef edit form: float values were incorrectly formatted in some cases.
This commit is contained in:
parent
993328b57b
commit
b39dcdcb9a
2 changed files with 4 additions and 3 deletions
|
@ -117,9 +117,9 @@ namespace CodeImp.DoomBuilder.Controls
|
|||
}
|
||||
else if(textbox.AllowDecimal)
|
||||
{
|
||||
float newvalue = textbox.GetResultFloat(0.0f) - (buttons.Value * stepsizeFloat);
|
||||
float newvalue = (float)Math.Round(textbox.GetResultFloat(0.0f) - (buttons.Value * stepsizeFloat), General.Map.FormatInterface.VertexDecimals);
|
||||
if((newvalue < 0.0f) && !textbox.AllowNegative) newvalue = 0.0f;
|
||||
textbox.Text = newvalue.ToString(General.Map.FormatInterface.DecimalsFormat);
|
||||
textbox.Text = newvalue.ToString("0.0");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
3
Source/Core/Windows/MainForm.Designer.cs
generated
3
Source/Core/Windows/MainForm.Designer.cs
generated
|
@ -1869,7 +1869,7 @@ namespace CodeImp.DoomBuilder.Windows
|
|||
this.statuslabel.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.statuslabel.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
|
||||
this.statuslabel.Name = "statuslabel";
|
||||
this.statuslabel.Size = new System.Drawing.Size(340, 18);
|
||||
this.statuslabel.Size = new System.Drawing.Size(309, 18);
|
||||
this.statuslabel.Spring = true;
|
||||
this.statuslabel.Text = "Initializing user interface...";
|
||||
this.statuslabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
|
@ -2107,6 +2107,7 @@ namespace CodeImp.DoomBuilder.Windows
|
|||
this.warnsLabel.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.warnsLabel.Image = global::CodeImp.DoomBuilder.Properties.Resources.WarningOff;
|
||||
this.warnsLabel.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
this.warnsLabel.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
|
||||
this.warnsLabel.Name = "warnsLabel";
|
||||
this.warnsLabel.Size = new System.Drawing.Size(44, 18);
|
||||
this.warnsLabel.Text = "0";
|
||||
|
|
Loading…
Reference in a new issue