Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Вместо вот этого
- https://i.imgur.com/fk1KEcT.jpg
- вот это
- https://i.imgur.com/Jow89VC.jpg
- тут и иконка своя и галочка
- if not dai_lapu then
- local f = CreateFrame("CheckButton", "giftlapa", UIParent, "ChatConfigCheckButtonTemplate")
- f:SetSize(50, 50)
- f:SetHitRectInsets(5, 5, 5, 5)
- f:SetParent(MultiBarBottomLeftButton12)
- f:SetPoint("CENTER", 0, 38)
- f.tooltip = "Лапа"
- f:SetScript("OnUpdate", function()
- if f:GetChecked() == 1 then
- laparaid = 1
- if not UnitBuff("player", GetSpellInfo(79101)) then
- Cast(20217)
- end
- else
- laparaid = 0
- end
- end)
- local f = CreateFrame("Button", nil, UIParent, "SecureActionButtonTemplate, ActionButtonTemplate");
- f:SetParent(MultiBarBottomLeftButton12)
- f:SetPoint("CENTER", 0, 0)
- f:RegisterForClicks("AnyDown")
- f:SetSize(36, 36)
- f:SetAttribute("type", "macro");
- f:SetAttribute("macrotext",[[
- /click
- /run print('Вы click')
- ]])
- -- Icon:
- local icon = f:CreateTexture()
- icon:SetAllPoints(true)
- icon:SetTexture("Interface\\AddOns\\RotMode\\kaska kulak")
- f.icon = icon
- f:SetFrameStrata("HIGH");
- dai_lapu = true end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement