Advertisement
Arborus

MapButton

Nov 10th, 2014
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. OnLoad:
  2. self:RegisterEvent("PLAYER_ENTERING_WORLD")
  3. OnEvent:
  4. self.bg:SetVertexColor(.35, .91, 1, 1)
  5. OnEnter:
  6. self.bg:SetVertexColor(.2, .56, .6, 1)
  7. OnLeave:
  8. self.bg:SetVertexColor(.35, .91, 1, 1)
  9. OnClick:
  10. if pressed then
  11. if IsControlKeyDown() then
  12. if SkadaBarWindowMeter:IsVisible() then
  13. SkadaBarWindowMeter:Hide()
  14. else
  15. SkadaBarWindowMeter:Show()
  16. end
  17. elseif
  18. IsAltKeyDown() then
  19. if SkadaBarWindowMeter:IsVisible() then
  20. Skada:OpenReportWindow(window)
  21. end
  22. else
  23. if Minimap:IsVisible() then
  24. Minimap:Hide()
  25. self.bg:SetVertexColor(.35, .91, 1, 1)
  26. self.text:SetTextColor(0, 0, 0, 1)
  27. else
  28. Minimap:Show()
  29. self.text:SetTextColor(.35, .91, 1, 1)
  30. end
  31. end
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement