Skip to content

Commit

Permalink
Questie: update
Browse files Browse the repository at this point in the history
  • Loading branch information
KasVital committed Mar 19, 2017
1 parent 5184b47 commit 5d92b4f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 10 deletions.
3 changes: 3 additions & 0 deletions !Questie/Database/newObjects.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2966,6 +2966,9 @@ QuestieNewObjects = {
locations = {
{1,1,0.5442,0.354},
},
openedby = {
["Wooden Key"] = 1
}
},
[175950] = {
name = "Sixth Mosh\'aru Tablet",
Expand Down
29 changes: 20 additions & 9 deletions !Questie/Modules/QuestieGUI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,17 @@ end

Questie.minimapButton:SetMovable(true)
Questie.minimapButton:EnableMouse(true)
Questie.minimapButton:RegisterForDrag('LeftButton')
Questie.minimapButton:RegisterForClicks("LeftButtonUp", "RightButtonUp")
Questie.minimapButton:SetScript("OnDragStop", function()
Questie.minimapButton:SetFrameStrata('HIGH')
Questie.minimapButton:SetWidth(31)
Questie.minimapButton:SetHeight(31)
Questie.minimapButton:SetFrameLevel(9)
Questie.minimapButton:SetHighlightTexture('Interface\\Minimap\\UI-Minimap-ZoomButton-Highlight')
Questie.minimapButton:SetPoint("TOPLEFT", Minimap, "TOPLEFT", 52-(80*cos(QuestieMinimapPosition)),(80*sin(QuestieMinimapPosition))-52)

Questie.minimapButton:RegisterForDrag("LeftButton")
Questie.minimapButton.draggingFrame = CreateFrame("Frame", "QuestieMinimapDragging", Questie.minimapButton)
Questie.minimapButton.draggingFrame:Hide();
Questie.minimapButton.draggingFrame:SetScript("OnUpdate", function()
local xpos,ypos = GetCursorPosition()
local xmin,ymin = Minimap:GetLeft(), Minimap:GetBottom()

Expand All @@ -17,13 +25,16 @@ Questie.minimapButton:SetScript("OnDragStop", function()
QuestieMinimapPosition = math.deg(math.atan2(ypos,xpos))
Questie.minimapButton:SetPoint("TOPLEFT", Minimap, "TOPLEFT", 52-(80*cos(QuestieMinimapPosition)),(80*sin(QuestieMinimapPosition))-52)
end)
Questie.minimapButton:SetScript("OnDragStart", function()
this:LockHighlight();
Questie.minimapButton.draggingFrame:Show();
end)
Questie.minimapButton:SetScript("OnDragStop", function()
this:UnlockHighlight();
Questie.minimapButton.draggingFrame:Hide();
end)

Questie.minimapButton:SetFrameStrata('HIGH')
Questie.minimapButton:SetWidth(31)
Questie.minimapButton:SetHeight(31)
Questie.minimapButton:SetFrameLevel(9)
Questie.minimapButton:SetHighlightTexture('Interface\\Minimap\\UI-Minimap-ZoomButton-Highlight')
Questie.minimapButton:SetPoint("TOPLEFT", Minimap, "TOPLEFT", 52-(80*cos(QuestieMinimapPosition)),(80*sin(QuestieMinimapPosition))-52)
Questie.minimapButton:RegisterForClicks("LeftButtonUp", "RightButtonUp")
Questie.minimapButton:SetScript("OnClick", function()
if ( arg1 == "LeftButton" ) then
Questie:Toggle()
Expand Down
1 change: 0 additions & 1 deletion !Questie/Modules/QuestieQuest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,6 @@ function Questie:UpdateQuestInZone(Zone, force)
QuestieTracker:updateTrackerCache(hash, i, level);
end
end
QuestieTracker:FillTrackingFrame();
end
if (foundChange and not force) then
break;
Expand Down

0 comments on commit 5d92b4f

Please sign in to comment.