WoWInterface SVN zz_Worldboss

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 54 to Rev 55
    Reverse comparison

Rev 54 → Rev 55

trunk/zz_Worldboss/core.lua
6,6 → 6,7
local maxlevel = 90
local curVersion = 6000
local db
local fmt = "|c0000ff00%s|r |c00ffffff%s|r"
local defaults = {
['hideRealm'] = true,
['sameRealm'] = true,
548,6 → 549,8
end
end
end
GameTooltip:AddLine("")
GameTooltip:AddLine(format(fmt,"CTRL+Leftclick","Reset Quests"))
end
local function setQuestPref(info,value)
local val, quest = strsplit("_",info[#info],2)
713,12 → 716,33
end
db['version'] = curVersion
end
local function ldbOnClick(self, button)
if(button == "LeftButton" and IsControlKeyDown()) then
reset()
elseif(IsShiftKeyDown() and button == "LeftButton") then
addon['db']['global']['ldbicons'][childName]['hide'] = not addon['db']['global']['ldbicons'][childName]['hide']
if(ldbicon) then
if(addon['db']['global']['ldbicons'][childName]['hide']) then
ldbicon:Hide(childName)
else
ldbicon:Show(childName)
end
end
elseif(button == "LeftButton") then
if(InterfaceOptionsFrame:IsVisible() and not InCombatLockdown()) then
InterfaceOptionsFrame:Hide()
else
InterfaceOptionsFrame_OpenToCategory(childName)
end
end
end
local function init()
addon['options'] = addon['InitConfig'](addon, childName, true, {
['name'] = childName,
['type'] = "launcher",
['icon'] = "Interface\\Icons\\ability_monk_roll",
['OnTooltipShow'] = OnTooltip,
['OnClick'] = ldbOnClick,
}, getPref,setPref)
db = addon['db']['profile'][childName]
if(db['sha']) then