Advertisement
Guest User

Wholly Quest Info Frame

a guest
Sep 15th, 2019
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. <Frame name="com_mithrandir_whollyQuestInfoFrame" parent="QuestFrame" enableMouse="true">
  2. <Size>
  3. <AbsDimension x="60" y="14" />
  4. </Size>
  5. <Scripts>
  6. <OnEnter>
  7. Wholly:QuestInfoEnter(self)
  8. </OnEnter>
  9. <OnLeave>
  10. GameTooltip:Hide()
  11. </OnLeave>
  12. </Scripts>
  13. <Anchors>
  14. <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
  15. <Offset>
  16. <AbsDimension x="-40" y="-55" />
  17. </Offset>
  18. </Anchor>
  19. </Anchors>
  20. <Layers>
  21. <Layer level="BACKGROUND">
  22. <FontString name="$parentText" inherits="GameFontNormal" justifyH="RIGHT" text="None">
  23. <Size>
  24. <AbsDimension x="60" y="20" />
  25. </Size>
  26. </FontString>
  27. </Layer>
  28. </Layers>
  29. </Frame>
  30.  
  31. if nil == com_mithrandir_whollyQuestInfoFrame then
  32. local frame = CreateFrame("Frame", "com_mithrandir_whollyQuestInfoFrame", QuestFrame)
  33. frame:EnableMouse(true)
  34. frame:SetSize(60, 14)
  35. frame:SetPoint("TOPRIGHT", QuestFrame, "TOPRIGHT", -40, -55)
  36. frame:SetScript("OnEnter", function(self) Wholly:QuestInfoEnter(self) end)
  37. frame:SetScript("OnLeave", function(self) GameTooltip:Hide() end)
  38. local fontString = frame:CreateFontString("com_mithrandir_whollyQuestInfoFrameText", "BACKGROUND", "GameFontNormal")
  39. fontString:SetJustifyH("RIGHT")
  40. fontString:SetSize(60, 20)
  41. fontString:SetText("None")
  42. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement