Compare commits
3 Commits
Author | SHA1 | Date |
---|---|---|
Robin Hüskes | a2de04c2f0 | |
Robin Hüskes | bb4d95ee64 | |
Robin Hüskes | afde0383f2 |
|
@ -1,5 +1,5 @@
|
|||
--[[ $Id: CallbackHandler-1.0.lua 1284 2022-09-25 09:15:30Z nevcairiel $ ]]
|
||||
local MAJOR, MINOR = "CallbackHandler-1.0", 7
|
||||
--[[ $Id: CallbackHandler-1.0.lua 26 2022-12-12 15:09:39Z nevcairiel $ ]]
|
||||
local MAJOR, MINOR = "CallbackHandler-1.0", 8
|
||||
local CallbackHandler = LibStub:NewLibrary(MAJOR, MINOR)
|
||||
|
||||
if not CallbackHandler then return end -- No upgrade needed
|
||||
|
@ -7,21 +7,16 @@ if not CallbackHandler then return end -- No upgrade needed
|
|||
local meta = {__index = function(tbl, key) tbl[key] = {} return tbl[key] end}
|
||||
|
||||
-- Lua APIs
|
||||
local error = error
|
||||
local securecallfunction, error = securecallfunction, error
|
||||
local setmetatable, rawget = setmetatable, rawget
|
||||
local next, select, pairs, type, tostring = next, select, pairs, type, tostring
|
||||
|
||||
local xpcall = xpcall
|
||||
|
||||
local function errorhandler(err)
|
||||
return geterrorhandler()(err)
|
||||
end
|
||||
|
||||
local function Dispatch(handlers, ...)
|
||||
local index, method = next(handlers)
|
||||
if not method then return end
|
||||
repeat
|
||||
xpcall(method, errorhandler, ...)
|
||||
securecallfunction(method, ...)
|
||||
index, method = next(handlers, index)
|
||||
until not method
|
||||
end
|
||||
|
|
|
@ -90,6 +90,8 @@ local function OnClick(_, button)
|
|||
end
|
||||
end
|
||||
end
|
||||
else
|
||||
ExpansionLandingPageMinimapButton:Click()
|
||||
end
|
||||
end
|
||||
local function tooltipsort(a, b)
|
||||
|
@ -164,6 +166,7 @@ local function OnTooltipShow(tip)
|
|||
tip:AddLine(L["No garrison found!"])
|
||||
end
|
||||
tip:AddLine(child:colorize(L["SHIFT LEFTCLICK toggles Garrison"], "00ff00"))
|
||||
tip:AddLine(child:colorize(L["WHEEL toggles Dragonflight Info"], "00ff00"))
|
||||
tip:AddLine(child:colorize(L["Press SHIFT for other characters info"], "00ff00"))
|
||||
end
|
||||
child['ldb'] = { -- https://github.com/tekkub/libdatabroker-1-1/wiki/Data-Specifications
|
||||
|
|
1
core.lua
1
core.lua
|
@ -98,6 +98,7 @@ function events:PLAYER_ENTERING_WORLD()
|
|||
if(db['hideStandard'] and ExpansionLandingPageMinimapButton) then
|
||||
ExpansionLandingPageMinimapButton:UnregisterAllEvents()
|
||||
ExpansionLandingPageMinimapButton:Hide()
|
||||
ExpansionLandingPageMinimapButton:HookScript("OnShow", ExpansionLandingPageMinimapButton.Hide)
|
||||
end
|
||||
child:switchDisplay(db['garrisonHideCombat'])
|
||||
end
|
||||
|
|
|
@ -15,4 +15,5 @@ if L then
|
|||
L["Hide Blizzards default garrison button"] = "Versteckt den Garnisonsknopf an der Minimap"
|
||||
L["Display Text"] = "Anzeigetext"
|
||||
L["Display Text description"] = "Text, der neben dem Icon angezeigt wird."
|
||||
L["WHEEL toggles Dragonflight Info"] = "MAUSRAD wechselt Zusammenfassung der Dracheninseln"
|
||||
end
|
|
@ -14,5 +14,6 @@ if L then
|
|||
L["Hide Blizzard"] = true
|
||||
L["Hide Blizzards default garrison button"] = true
|
||||
L["Display Text"] = true
|
||||
L["WHEEL toggles Dragonflight Info"] = true
|
||||
L["Display Text description"] = "Default text displayed next to icon"
|
||||
end
|
Loading…
Reference in New Issue