WoWInterface SVN WhoFramedWatcherWabbit

Compare Revisions

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

Rev 11 → Rev 12

trunk/Who Framed Watcher Wabbit/Who Framed Watcher Wabbit.toc
1,6 → 1,6
## Interface: 40000
## Name: Who Framed Watcher Wabbit?
## Version: 1.5.2
## Version: 1.5.3
## Notes: Various tweaks to improve the quest watch frame
## SavedVariables: WFWWDB
## SavedVariablesPerCharacter: WFWWPCDB
trunk/Who Framed Watcher Wabbit/wfww.lua
652,17 → 652,35
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(_,_,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)
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
end
wideFrame = value
end
wideFrame = value
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
end
end)
end
678,4 → 696,7
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