Skip to content
This repository has been archived by the owner on Aug 9, 2020. It is now read-only.

AutoVendor

Travis edited this page Jul 8, 2018 · 4 revisions

Creates a button that allows toggling whether junk should be auto-sold to merchants.

Example:

local Bags = LibContainer:New('bags', 'MyBags')
Bags:SetPoint('CENTER')
Bags:On('PostCreateContainer', function(Container)
    local AutoVendor = Container:AddWidget('AutoVendor')
    AutoVendor:SetPoint('TOPRIGHT')
    AutoVendor:SetSize(20, 20)
    AutoVendor:SetTexture(...)
end)
Clone this wiki locally