Add tooltips to overflowing labels
This commit is contained in:
committed by
abcdefg30
parent
1fee50be2e
commit
fde215360c
@@ -287,7 +287,9 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
() => currentFilename == filepath && currentPackage == package,
|
||||
() => { LoadAsset(package, filepath); });
|
||||
|
||||
item.Get<LabelWidget>("TITLE").GetText = () => filepath;
|
||||
var label = item.Get<LabelWithTooltipWidget>("TITLE");
|
||||
WidgetUtils.TruncateLabelToTooltip(label, filepath);
|
||||
|
||||
item.IsVisible = () =>
|
||||
{
|
||||
bool visible;
|
||||
|
||||
Reference in New Issue
Block a user