Skip to content
This repository was archived by the owner on Mar 28, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.4.0.0")]
10 changes: 5 additions & 5 deletions BetterSorting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static class BattleTech_UI_MechLabInventoryWidget_ListView_Patch
{
private static bool Prefix(MechLabInventoryWidget_ListView __instance)
{
IComparer<ListElementController_BASE> currComp = Traverse.Create(__instance).Field("currentListItemSorter").GetValue<IComparer<ListElementController_BASE>>();
IComparer<InventoryDataObject_BASE> currComp = Traverse.Create(__instance).Field("currentListItemSorter").GetValue<IComparer<InventoryDataObject_BASE>>();
bool currDir = Traverse.Create(__instance).Field("invertSort").GetValue<bool>();

try
Expand All @@ -33,9 +33,9 @@ private static bool Prefix(MechLabInventoryWidget_ListView __instance)
}
}

public class Comparer_ListView : IComparer<ListElementController_BASE>
public class Comparer_ListView : IComparer<InventoryDataObject_BASE>
{
public int Compare(ListElementController_BASE a, ListElementController_BASE b)
public int Compare(InventoryDataObject_BASE a, InventoryDataObject_BASE b)
{
return BetterSorting.Compare(ListElementControllerCompare.Wrap(b), ListElementControllerCompare.Wrap(a));
}
Expand Down Expand Up @@ -236,7 +236,7 @@ public class ListElementControllerCompare

private static string LOSTECH = "component_type_lostech";

public static ListElementControllerCompare Wrap(ListElementController_BASE item)
public static ListElementControllerCompare Wrap(InventoryDataObject_BASE item)
{
return new ListElementControllerCompare(item);
}
Expand All @@ -246,7 +246,7 @@ public static ListElementControllerCompare Wrap(ListElementController_BASE_NotLi
return new ListElementControllerCompare(item);
}

private ListElementControllerCompare(ListElementController_BASE item)
private ListElementControllerCompare(InventoryDataObject_BASE item)
{
salvageDef = item.salvageDef;
componentDef = item.componentDef;
Expand Down