btn:SetPoint(]] .. RDXUI.AnchorCodeFromDescriptor(desc.anchor) .. [[); |
btn:SetWidth(]] .. desc.w .. [[); btn:SetHeight(]] .. desc.h .. [[); |
btn.tex = VFLUI.CreateTexture(btn); |
btn.tex:SetDrawLayer("]] .. (desc.drawLayer or "ARTWORK") .. [[", ]] .. (desc.sublevel or "2") .. [[); |
btn.tex:SetPoint("TOPLEFT", btn, "TOPLEFT", ]] .. ebsos .. [[, -]] .. ebsos .. [[); |
btn.tex:SetPoint("BOTTOMRIGHT", btn, "BOTTOMRIGHT", -]] .. ebsos .. [[, ]] .. ebsos .. [[); |
btn.tex:SetTexCoord(0.08, 1-0.08, 0.08, 1-0.08); |