mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-17 01:22:18 +00:00
Linedef Info panel: tag text is now set in a more reliable fashion.
This commit is contained in:
parent
417cdde4be
commit
29437409d4
1 changed files with 4 additions and 3 deletions
|
@ -96,6 +96,7 @@ namespace CodeImp.DoomBuilder.Controls
|
|||
taglabel.Visible = false;
|
||||
tag.Visible = false;
|
||||
|
||||
//set activation
|
||||
foreach(LinedefActivateInfo ai in General.Map.Config.LinedefActivates) {
|
||||
if(l.Activate == ai.Index) {
|
||||
activation.Text = ai.Title;
|
||||
|
@ -124,6 +125,9 @@ namespace CodeImp.DoomBuilder.Controls
|
|||
taglabel.Visible = true;
|
||||
tag.Visible = true;
|
||||
|
||||
//set tag
|
||||
tag.Text = l.Tag + (General.Map.Options.TagLabels.ContainsKey(l.Tag) ? " (" + General.Map.Options.TagLabels[l.Tag] + ")" : string.Empty);
|
||||
|
||||
length.Top = labelPositionsY[0];
|
||||
lengthlabel.Top = labelPositionsY[0];
|
||||
unpegged.Top = labelPositionsY[0];
|
||||
|
@ -160,9 +164,6 @@ namespace CodeImp.DoomBuilder.Controls
|
|||
action.Text = act.ToString();
|
||||
length.Text = l.Length.ToString("0.##");
|
||||
angle.Text = l.AngleDeg + "\u00B0";
|
||||
if(tag.Visible) { //mxd
|
||||
tag.Text = l.Tag + (General.Map.Options.TagLabels.ContainsKey(l.Tag) ? " (" + General.Map.Options.TagLabels[l.Tag] + ")" : string.Empty);
|
||||
}
|
||||
unpegged.Text = peggedness;
|
||||
|
||||
//mxd
|
||||
|
|
Loading…
Reference in a new issue