Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if not auctionfunc then
- -- local aFrame = CreateFrame("Frame")
- local aFrame = CreateFrame("Button", nil, UIParent, "SecureActionButtonTemplate");
- aFrame:SetSize(40,40)
- aFrame:SetPoint("CENTER",0,-250)
- aFrame:EnableMouse(true)
- aFrame:SetMovable(true)
- aFrame:RegisterForClicks("LeftButtonUp", "RightButtonUp")
- aFrame:SetScript("OnClick", function(self, button)
- if button == "RightButton" then
- print("Вы нажали ПКМ")
- elseif button == "LeftButton" then
- print("Вы нажали ЛКМ")
- end
- end)
- aFrame:SetScript("OnMouseDown", function(self)
- if IsLeftControlKeyDown() == 1 then
- self:StartMoving()
- end
- end)
- aFrame:SetScript("OnMouseUp", function(self)
- self:StopMovingOrSizing()
- end)
- local bTexture = aFrame:CreateTexture()
- bTexture:SetAllPoints()
- bTexture:SetTexture("Interface\\Icons\\Spell_Nature_Rejuvenation")
- auctionfunc = true end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement