PedsForm support for texture variations and alternative drawables, Sorting entries by name in YtdForm and when viewing Ydd in ModelForm

This commit is contained in:
dexy
2019-11-09 18:05:41 +11:00
Unverified
parent 87092996f8
commit 20545145a5
6 changed files with 303 additions and 147 deletions
+6
View File
@@ -946,7 +946,13 @@ namespace CodeWalker.Forms
bool check = true;
if (dict != null)
{
List<KeyValuePair<uint, Drawable>> items = new List<KeyValuePair<uint, Drawable>>();
foreach (var kvp in dict)
{
items.Add(kvp);
}
items.Sort((a, b) => { return a.Value?.Name?.CompareTo(b.Value?.Name ?? "") ?? 0; });
foreach (var kvp in items)
{
AddDrawableTreeNode(kvp.Value, kvp.Key, check);
check = false;