Inheritance: Terraria.GameContent.UI.Elements.UIPanel
Exemplo n.º 1
0
        public override int CompareTo(object obj)
        {
            UIModSourceItem uIModSourceItem = obj as UIModSourceItem;

            if (uIModSourceItem == null)
            {
                return(base.CompareTo(obj));
            }
            if (uIModSourceItem.builtMod == null && builtMod == null)
            {
                return(modName.Text.CompareTo(uIModSourceItem.modName.Text));
            }

            if (uIModSourceItem.builtMod == null)
            {
                return(-1);
            }

            if (builtMod == null)
            {
                return(1);
            }

            return(uIModSourceItem.builtMod.lastModified.CompareTo(builtMod.lastModified));
        }
Exemplo n.º 2
0
        public override int CompareTo(object obj)
        {
            UIModSourceItem uIModSourceItem = obj as UIModSourceItem;

            if (uIModSourceItem == null)
            {
                return(base.CompareTo(obj));
            }
            return(uIModSourceItem.lastBuildTime.CompareTo(lastBuildTime));
        }