Added routes and submenu

This commit is contained in:
User
2026-08-18 15:07:39 -05:00
parent bb237b8fae
commit 235645cc69
9 changed files with 528 additions and 25 deletions
+6 -1
View File
@@ -311,6 +311,7 @@ local function EnsureRow(index,parent)
row=CreateFrame("Button",nil,parent)
row:SetHeight(14)
row:EnableMouse(true)
if row.RegisterForClicks then row:RegisterForClicks("LeftButtonUp","RightButtonUp") end
local text=row:CreateFontString(nil,"ARTWORK","GameFontNormal")
text:SetPoint("TOPLEFT",row,"TOPLEFT",0,0)
@@ -332,6 +333,10 @@ local function EnsureRow(index,parent)
end)
row:SetScript("OnClick",function()
if not this.questID then return end
if arg1=="RightButton" then
if this.kind=="quest" and QuestieOcto.QuestMenu then QuestieOcto.QuestMenu:Open(this.questID,this) end
return
end
if IsShiftKeyDown and IsShiftKeyDown() then
if QuestieOcto.TrackerDriver then QuestieOcto.TrackerDriver:Toggle(this.questID) end
return
@@ -1031,4 +1036,4 @@ function T:Start()
self:Render()
end
QuestieOcto:RegisterMessage("FOUNDATION_READY",T,"Start")
QuestieOcto:RegisterMessage("FOUNDATION_READY",T,"Start")