generated from Exiles/coa-template
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1de3ac8d18 | |||
| a5b67340ff |
+11
-5
@@ -162,11 +162,17 @@ local function getOptions()
|
||||
return options
|
||||
end
|
||||
|
||||
local function optFunc()
|
||||
-- open the profiles tab before, so the menu expands
|
||||
InterfaceOptionsFrame_OpenToCategory(Mapster.optionsFrames.Profiles)
|
||||
InterfaceOptionsFrame_OpenToCategory(Mapster.optionsFrames.Mapster)
|
||||
InterfaceOptionsFrame:Raise()
|
||||
local function optFunc()
|
||||
-- CoA: InterfaceOptionsFrame_OpenToCategory / InterfaceOptionsFrame are nil on 3.3.5;
|
||||
-- fall back to AceConfigDialog which works on all clients.
|
||||
if InterfaceOptionsFrame_OpenToCategory then
|
||||
-- open the profiles tab before, so the menu expands
|
||||
InterfaceOptionsFrame_OpenToCategory(Mapster.optionsFrames.Profiles)
|
||||
InterfaceOptionsFrame_OpenToCategory(Mapster.optionsFrames.Mapster)
|
||||
if InterfaceOptionsFrame then InterfaceOptionsFrame:Raise() end
|
||||
else
|
||||
LibStub("AceConfigDialog-3.0"):Open("Mapster")
|
||||
end
|
||||
end
|
||||
|
||||
function Mapster:SetupOptions()
|
||||
|
||||
@@ -199,7 +199,7 @@ local function Constructor()
|
||||
button:SetScript("OnKeyDown", Keybinding_OnKeyDown)
|
||||
button:SetScript("OnMouseDown", Keybinding_OnMouseDown)
|
||||
button:SetScript("OnMouseWheel", Keybinding_OnMouseWheel)
|
||||
button:SetScript("OnGamePadButtonDown", Keybinding_OnKeyDown)
|
||||
pcall(button.SetScript, button, "OnGamePadButtonDown", Keybinding_OnKeyDown)
|
||||
button:SetPoint("BOTTOMLEFT")
|
||||
button:SetPoint("BOTTOMRIGHT")
|
||||
button:SetHeight(24)
|
||||
|
||||
Reference in New Issue
Block a user