mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 20:32:34 +00:00
15b2adfe30
Fixed, Texture Browser Form: well, I broke "Tab" key functionality again (in previous commit)... Maintenance: changed curly braces style to match DB2 one (hopefully not breaking anything in the process...). Maintenance: changed private method names casing to match DB2 one.
23 lines
570 B
C#
23 lines
570 B
C#
using System.Drawing;
|
|
using CodeImp.DoomBuilder.Geometry;
|
|
|
|
namespace CodeImp.DoomBuilder.BuilderModes
|
|
{
|
|
public class HintLabel : LineLengthLabel
|
|
{
|
|
private string text = "";
|
|
public string Text { get { return text; } set { text = value; Update(); } }
|
|
|
|
public HintLabel() : base(false)
|
|
{
|
|
label.Color = General.Colors.InfoLine;
|
|
}
|
|
|
|
protected override void Update()
|
|
{
|
|
Vector2D delta = end - start;
|
|
label.Text = text;
|
|
label.Rectangle = new RectangleF(start.x + delta.x * 0.5f, start.y + delta.y * 0.5f, 0f, 0f);
|
|
}
|
|
}
|
|
}
|