WoWInterface SVN WhoFramedWatcherWabbit

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 12 to Rev 11
    Reverse comparison

Rev 12 → Rev 11

trunk/Who Framed Watcher Wabbit/Who Framed Watcher Wabbit.toc
1,6 → 1,6
## Interface: 40000
## Name: Who Framed Watcher Wabbit?
## Version: 1.5.3
## Version: 1.5.2
## Notes: Various tweaks to improve the quest watch frame
## SavedVariables: WFWWDB
## SavedVariablesPerCharacter: WFWWPCDB
trunk/Who Framed Watcher Wabbit/wfww.lua
652,35 → 652,17
SLASH_WFWW1 = "/wfww"
 
WFContainer:UnregisterEvent("PLAYER_ENTERING_WORLD")
WFContainer:RegisterEvent("QUEST_WATCH_UPDATE")
WFContainer:RegisterEvent("QUEST_AUTOCOMPLETE")
WFContainer:RegisterEvent("CVAR_UPDATE")
WFContainer:SetScript("OnEvent", function(_,event,...)
if event == "CVAR_UPDATE" then
local cvar,value = ...
if cvar == "WATCH_FRAME_WIDTH_TEXT" then
if not WatchFrame.userCollapsed then
if value == "1" then
WFContainer:SetWidth(350)
else
WFContainer:SetWidth(250)
end
WFContainer:SetScript("OnEvent", function(_,_,cvar,value)
if cvar == "WATCH_FRAME_WIDTH_TEXT" then
if not WatchFrame.userCollapsed then
if value == "1" then
WFContainer:SetWidth(350)
else
WFContainer:SetWidth(250)
end
wideFrame = value
end
else
local index = ...
if event == "QUEST_AUTOCOMPLETE" or index == 0 then
if WFWWPCDB.collapsed then
WFContainer:SetHeight(db.height)
if wideFrame == "1" then
WFContainer:SetWidth(350)
else
WFContainer:SetWidth(250)
end
WFWWPCDB.collapsed = false
end
end
wideFrame = value
end
end)
end
696,7 → 678,4
f:Hide()
end
end)
WFContainer:SetScript("OnEvent", function()
Initialize()
f:Show()
end)
\ No newline at end of file +WFContainer:SetScript("OnEvent", function() Initialize() f:Show() end) \ No newline at end of file