Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
UISortableElement.cs
Go to the documentation of this file.
1using Terraria.UI;
2
4
6{
7 public int OrderIndex;
8
9 public UISortableElement(int index)
10 {
11 OrderIndex = index;
12 }
13
14 public override int CompareTo(object obj)
15 {
16 if (obj is UISortableElement uISortableElement)
17 {
18 return OrderIndex.CompareTo(uISortableElement.OrderIndex);
19 }
20 return base.CompareTo(obj);
21 }
22}