• 0

    posted a message on ArkInventory
    I propose an additional sorting option: by the location to equip an item, e.g. Finger, Hands,...

    The diff against r36123 of ArkInventory.lua:
    369a370
    >                    ["equiplocation"] = false,
    1139c1140
    <            i["name"], _, i["q"] = GetItemInfo( i.h )
    ---
    >            i["name"], _, i["q"], _, _, _, _, _, i["eql"] = GetItemInfo( i.h )
    2539a2541,2549
    >            if self:OptionLocalGet( loc_id, { "sort", "equiplocation" } ) then
    >                -- add location to equip to start of sort
    >                local e = i.eql
    >                if (e == nil) then
    >                    e=""
    >                end
    >                tinsert( s, 1, e )
    >            end
    > 
    3759a3770,3778
    >                        dd:AddLine( "text", "Include location to equip in sort",
    >                            "tooltipTitle", "Include location to equip in sort",
    >                            "tooltipText", "toggles the sorting of items by equip-location",
    >                            "checked", self:OptionLocalGet( loc_id, { "sort", "equiplocation" } ),
    >                            "func", function()
    >                                self:OptionLocalSet( loc_id, { "sort", "equiplocation" }, not self:OptionLocalGet( loc_id, { "sort", "equiplocation" } ) )
    >                                self:ContainerGenerateRebuildAll()
    >                            end
    >                        )
    Posted in: General AddOns
  • To post a comment, please or register a new account.