Definition at line 1060 of file ItemSorting.cs.
1061 {
1064 for (
int i = 0;
i <
inv.Length;
i++)
1065 {
1067 {
1070 {
1072 }
1073 }
1074 }
1076 {
1079 {
1080 continue;
1081 }
1082 int num = item2.maxStack -
item2.stack;
1084 {
1086 {
1087 continue;
1088 }
1091 {
1094 {
1096 }
1097 item2.stack +=
num2;
1098 item3.stack -=
num2;
1100 if (
item3.stack == 0)
1101 {
1106 break;
1107 }
1108 if (num == 0)
1109 {
1110 break;
1111 }
1112 }
1113 }
1114 }
1116 for (
int l = 0;
l <
inv.Length;
l++)
1117 {
1119 {
1122 {
1124 }
1125 }
1126 }
1131 {
1134 {
1136 }
1138 }
1142 {
1145 }
1149 {
1151 ItemSlot.SetGlow(
num5,
num4, Main.player[Main.myPlayer].chest != -1);
1154 {
1157 }
1160 }
1161 }
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)
void AddRange(IEnumerable< KeyValuePair< TKey, TValue > > collection)
void Add(TKey key, TValue value)
static List< ItemSortingLayer > _layerList
static void SetupSortingPriorities()
References Terraria.UI.ItemSorting._layerList, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Collections.Generic.Dictionary< TKey, TValue >.AddRange(), System.Collections.Generic.Dictionary< TKey, TValue >.Contains(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.item, System.list, Terraria.Main.myPlayer, Terraria.Main.player, System.Collections.Generic.Dictionary< TKey, TValue >.Remove(), Terraria.UI.ItemSlot.SetGlow(), and Terraria.UI.ItemSorting.SetupSortingPriorities().
Referenced by Terraria.UI.ItemSorting.SortChest(), and Terraria.UI.ItemSorting.SortInventory().