Add tooltips to overflowing labels
This commit is contained in:
committed by
abcdefg30
parent
1fee50be2e
commit
fde215360c
@@ -192,7 +192,9 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
() => SelectMap(preview),
|
||||
StartMissionClicked);
|
||||
|
||||
item.Get<LabelWidget>("TITLE").GetText = () => preview.Title;
|
||||
var label = item.Get<LabelWithTooltipWidget>("TITLE");
|
||||
WidgetUtils.TruncateLabelToTooltip(label, preview.Title);
|
||||
|
||||
missionList.AddChild(item);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user