WoWInterface SVN WhoFramedWatcherWabbit

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 24 to Rev 23
    Reverse comparison

Rev 24 → Rev 23

trunk/Who Framed Watcher Wabbit/Who Framed Watcher Wabbit.toc
1,6 → 1,6
## Interface: 60000
## Name: Who Framed Watcher Wabbit?
## Version: 2.0.1
## Version: 2.0
## Notes: Various tweaks to improve the quest watch frame
## SavedVariables: WFWWDB
## SavedVariablesPerCharacter: WFWWPCDB
13,4 → 13,5
libs\LibSharedMedia-3.0\lib.xml
libs\AceGUI-3.0-SharedMediaWidgets\widget.xml
 
bindings.xml
wfww.lua
\ No newline at end of file
trunk/Who Framed Watcher Wabbit/wfww.lua
212,7 → 212,7
end,
order = 8.5,
},
--[[ questSpacing = {
questSpacing = {
name = "Quest Spacing",
desc = "Change the spacing between quests.",
type = "range",
226,7 → 226,7
ObjectiveTracker_Update()
end,
order = 8.51,
},]]
},
--[[lineSpacing = {
name = "Line Spacing",
desc = "Change the spacing between lines.",
435,7 → 435,7
set = function(_,key)
SetOverrideBinding(OTFContainer, false, db.keybind, nil) --clear old binding
if key ~= "" then --set new
SetOverrideBindingClick(OTFContainer, false, key, "WFWWkeybindButton")
local bound = SetOverrideBinding(OTFContainer, false, key, "WFWWCOLLAPSE")
end
db.keybind = key
end,
508,7 → 508,7
OTFContainer:SetScale(db.scale)
end
 
local function ExpandObjectiveTracker()
function OTFContainer.ExpandObjectiveTracker()
if ObjectiveTrackerFrame.collapsed then
OTFContainer:SetHeight(db.height)
OTFContainer:SetWidth(280)
522,14 → 522,16
otfHeader.Title:Hide()
end
end
local ExpandObjectiveTracker = OTFContainer.ExpandObjectiveTracker
 
local function CollapseObjectiveTracker()
function OTFContainer.CollapseObjectiveTracker()
if not ObjectiveTrackerFrame.collapsed then
OTFContainer:SetHeight(30)
OTFContainer:SetWidth(150)
ObjectiveTracker_MinimizeButton_OnClick() --default function called by OnClick
end
end
local CollapseObjectiveTracker = OTFContainer.CollapseObjectiveTracker
 
function Appearance()
OTFContainer:SetBackdrop({
570,7 → 572,7
v.Dash:SetShadowColor(0,0,0,shadow)
end
 
-- ObjectiveTracker_Update()
ObjectiveTracker_Update()
end
 
local function SetUpContainer()
580,26 → 582,15
SetSize()
Appearance()
--SkinButtons() --add later for rABS or Masque(?) support
 
CreateFrame("Button", "WFWWkeybindButton")
WFWWkeybindButton:SetScript("OnClick", function()
if ObjectiveTrackerFrame.collapsed then
ExpandObjectiveTracker()
else
CollapseObjectiveTracker()
end
end)
if db.keybind ~= "" then
SetOverrideBindingClick(OTFContainer, false, db.keybind, "WFWWkeybindButton")
SetOverrideBinding(OTFContainer, false, db.keybind, "CLICK minimizeButton:LeftButton")
end
 
-- DEFAULT_OBJECTIVE_TRACKER_MODULE.blockOffsetY = -db.questSpacing
DEFAULT_OBJECTIVE_TRACKER_MODULE.blockOffsetY = -db.questSpacing
--otfQuests.module.linespacing = db.lineSpacing
--otfAchievements.module.linespacing = db.lineSpacing
 
--make sure fonts for other modules are good, too
 
FontChanges()
local function HookForUpdates(module, block, objectiveKey, text, lineType, useFullHeight, hideDash, colorStyle)
local header = block.HeaderText
local line = block.lines[objectiveKey]
621,6 → 612,7
for i = 1, #ObjectiveTrackerFrame.MODULES do
hooksecurefunc(ObjectiveTrackerFrame.MODULES[i], "AddObjective", HookForUpdates)
end
FontChanges()
 
ObjectiveTrackerFrame:SetParent(OTFContainer)
ObjectiveTrackerFrame:SetClampedToScreen(false)
681,7 → 673,7
end)
minimizeButton:SetScript("OnLeave", function() GameTooltip:Hide() end)
 
-- ObjectiveTracker_Update()
ObjectiveTracker_Update()
end
 
local function SetUpDB()
trunk/Who Framed Watcher Wabbit/bindings.xml New file
0,0 → 1,9
<Bindings>
<Binding name="WFWWCOLLAPSE" >
if ObjectiveTrackerFrame.collapsed then
OTFContainer.ExpandObjectiveTracker()
else
OTFContainer.CollapseObjectiveTracker()
end
</Binding>
</Bindings>
\ No newline at end of file