Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function DuskButtons()
- local buttonsize = 32;
- -- Item order: Topleft, Topright, Bottomleft, Bottomright
- local items = {"Hearthstone", "Wormhole Generator: Northrend", "Dark Jade Focusing Lens", "Shadow Crystal Focusing Lens"};
- local anchor = "RIGHT";
- local xoffset = -100;
- local yoffset = 0;
- for i = 1, 4 do
- local button = CreateFrame("CheckButton", "DuskButton"..i, UIParent, "SecureActionButtonTemplate");
- button:SetAttribute("type", "item");
- button:SetAttribute("item", items[i]);
- local xoffsets = {-1, 0, -1, 0};
- local yoffsets = {0, 0, -1, -1};
- button:SetWidth(buttonsize);
- button:SetHeight(buttonsize);
- button:SetPoint(anchor, UIParent, anchor, xoffset+(xoffsets[i]*(buttonsize+5)), yoffset+(yoffsets[i]*(buttonsize+5)));
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement