Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function OpenBags()
- if Bagnon:IsShown() then Bagnon:Hide(); else Bagnon:Show(); end
- end
- local button = CreateFrame("Button","OpenBagFrame", UIParent)
- button:SetFrameStrata("LOW")
- button:SetWidth(64)
- button:SetHeight(64)
- button:SetScale(0.25)
- local ntex = button:CreateTexture(OpenBagTexture, "LOW")
- ntex:SetTexture("Interface\\AddOns\\ButtonToggle\\Texture\\MC_trappedchest_icon.tga")
- ntex:SetAllPoints(button)
- button:SetNormalTexture(ntex)
- local htex = button:CreateTexture(SWKTMButtonTextureHighlight, "LOW")
- htex:SetTexture("Interface\\AddOns\\ButtonToggle\\Texture\\MC_trappedchest_iconHL.tga")
- htex:SetAllPoints(button)
- button:SetHighlightTexture(htex)
- local ptex = button:CreateTexture(SWKTMButtonTexturePushed, "LOW")
- ptex:SetTexture("Interface\\AddOns\\ButtonToggle\\Texture\\MC_trappedchest_icon.tga")
- ptex:SetAllPoints(button)
- button:SetPushedTexture(ptex)
- button:SetPoint("CENTER", UIParent, 500, 800)
- button:Show()
- button:SetScript("OnClick", function()
- OpenBags()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement