Linedef Info panel: tag text is now set in a more reliable fashion.

This commit is contained in:
MaxED 2014-03-14 14:21:34 +00:00
parent 417cdde4be
commit 29437409d4

View file

@ -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