Skip to content

Commit

Permalink
quick fix for DF
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiatra committed Nov 30, 2022
1 parent f4a6be3 commit c23233d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 14 deletions.
37 changes: 24 additions & 13 deletions Broker_MicroMenu.lua
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -220,14 +220,18 @@ function dataobj:OnEnter()
end)

local y, x = tooltip:AddLine()
tooltip:SetCell(y, 1, path.."achivements.tga", myProvider)
tooltip:SetCell(y, 2, _G.AchievementMicroButton.tooltipText)
tooltip:SetLineScript(y, "OnMouseUp", MouseHandler, _G.AchievementMicroButton)
if AchievementMicroButton then
tooltip:SetCell(y, 1, path.."achivements.tga", myProvider)
tooltip:SetCell(y, 2, _G.AchievementMicroButton.tooltipText)
tooltip:SetLineScript(y, "OnMouseUp", MouseHandler, _G.AchievementMicroButton)
end

local y, x = tooltip:AddLine()
tooltip:SetCell(y, 1, path.."quest.tga", myProvider)
tooltip:SetCell(y, 2, _G.QuestLogMicroButton.tooltipText)
tooltip:SetLineScript(y, "OnMouseUp", MouseHandler, _G.QuestLogMicroButton)
if QuestLogMicroButton then
local y, x = tooltip:AddLine()
tooltip:SetCell(y, 1, path.."quest.tga", myProvider)
tooltip:SetCell(y, 2, _G.QuestLogMicroButton.tooltipText)
tooltip:SetLineScript(y, "OnMouseUp", MouseHandler, _G.QuestLogMicroButton)
end

local y, x = tooltip:AddLine()
tooltip:SetCell(y, 1, "", myProvider, nil,"player",true)
Expand Down Expand Up @@ -280,16 +284,23 @@ function dataobj:OnEnter()

local y, x = tooltip:AddLine()
tooltip:SetCell(y, 1, nil, myProvider)
tooltip:SetCell(y, 2, _G.GameMenuButtonOptions:GetText())
if _G.GameMenuButtonOptions then
tooltip:SetCell(y, 2, _G.GameMenuButtonOptions:GetText())
end
tooltip:SetLineScript(y, "OnMouseUp", MouseHandler, function() _G.VideoOptionsFrame:Show() end)

local y, x = tooltip:AddLine()
tooltip:SetCell(y, 2, "Interface")
tooltip:SetLineScript(y, "OnMouseUp", MouseHandler, function() _G.InterfaceOptionsFrame:Show() end)
if _G.InterfaceOptionsFrame then
local y, x = tooltip:AddLine()
tooltip:SetCell(y, 2, "Interface")
tooltip:SetLineScript(y, "OnMouseUp", MouseHandler, function() _G.InterfaceOptionsFrame:Show() end)
end

local y, x = tooltip:AddLine()
tooltip:SetCell(y, 2, _G.GameMenuButtonKeybindings:GetText())
tooltip:SetLineScript(y, "OnMouseUp", MouseHandler, function() _G.KeyBindingFrame_LoadUI(); _G.KeyBindingFrame:Show() end)

if _G._G.GameMenuButtonKeybindings then
tooltip:SetCell(y, 2, _G.GameMenuButtonKeybindings:GetText())
tooltip:SetLineScript(y, "OnMouseUp", MouseHandler, function() _G.KeyBindingFrame_LoadUI(); _G.KeyBindingFrame:Show() end)
end

local y, x = tooltip:AddLine()
tooltip:SetCell(y, 2, _G.GameMenuButtonMacros:GetText())
Expand Down
2 changes: 1 addition & 1 deletion Broker_MicroMenu.toc
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 80200
## Interface: 100002
## Title: Broker: |cff00ff00MicroMenu|r
## Version: @project-version@
## Notes: Shows the mirco menu and game menu in a clickable broker tooltip.
Expand Down

0 comments on commit c23233d

Please sign in to comment.