abbreviate the user support folder as in mod.yaml
This commit is contained in:
@@ -41,7 +41,8 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
||||
sourceDropdown.OnMouseDown = _ => ShowSourceDropdown(sourceDropdown);
|
||||
sourceDropdown.GetText = () =>
|
||||
{
|
||||
var name = assetSource != null ? assetSource.Name : "All Packages";
|
||||
var name = assetSource != null ? assetSource.Name.Replace(Platform.SupportDir, "^") : "All Packages";
|
||||
|
||||
if (name.Length > 15)
|
||||
name = "..." + name.Substring(name.Length - 15);
|
||||
|
||||
@@ -220,7 +221,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
||||
var item = ScrollItemWidget.Setup(itemTemplate,
|
||||
() => assetSource == source,
|
||||
() => { assetSource = source; PopulateAssetList(); });
|
||||
item.Get<LabelWidget>("LABEL").GetText = () => source != null ? source.Name : "All Packages";
|
||||
item.Get<LabelWidget>("LABEL").GetText = () => source != null ? source.Name.Replace(Platform.SupportDir, "^") : "All Packages";
|
||||
return item;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user