WoWInterface SVN WhoFramedWatcherWabbit

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 16 to Rev 15
    Reverse comparison

Rev 16 → Rev 15

trunk/Who Framed Watcher Wabbit/Who Framed Watcher Wabbit.toc
1,6 → 1,6
## Interface: 40200
## Interface: 40100
## Name: Who Framed Watcher Wabbit?
## Version: 1.7.1
## Version: 1.7
## Notes: Various tweaks to improve the quest watch frame
## SavedVariables: WFWWDB
## SavedVariablesPerCharacter: WFWWPCDB
trunk/Who Framed Watcher Wabbit/libs/AceGUI-3.0/widgets/AceGUIWidget-DropDown.lua
1,4 → 1,4
--[[ $Id: AceGUIWidget-DropDown.lua 1029 2011-06-10 23:10:58Z nevcairiel $ ]]--
--[[ $Id: AceGUIWidget-DropDown.lua 997 2010-12-01 18:36:28Z nevcairiel $ ]]--
local AceGUI = LibStub("AceGUI-3.0")
 
-- Lua APIs
356,7 → 356,7
 
do
local widgetType = "Dropdown"
local widgetVersion = 25
local widgetVersion = 24
 
--[[ Static data ]]--
 
460,7 → 460,6
 
self:SetHeight(44)
self:SetWidth(200)
self:SetLabel()
end
 
-- exported, AceGUI callback
472,6 → 471,7
self.pullout = nil
 
self:SetText("")
self:SetLabel("")
self:SetDisabled(false)
self:SetMultiselect(false)
 
516,14 → 516,12
self.label:SetText(text)
self.label:Show()
self.dropdown:SetPoint("TOPLEFT",self.frame,"TOPLEFT",-15,-18)
self:SetHeight(44)
self.alignoffset = 30
self.frame:SetHeight(44)
else
self.label:SetText("")
self.label:Hide()
self.dropdown:SetPoint("TOPLEFT",self.frame,"TOPLEFT",-15,0)
self:SetHeight(26)
self.alignoffset = 12
self.frame:SetHeight(26)
end
end
 
667,8 → 665,10
self.SetItemValue = SetItemValue
self.SetItemDisabled = SetItemDisabled
 
self.alignoffset = 30
self.alignoffset = 31
 
frame:SetHeight(44)
frame:SetWidth(200)
frame:SetScript("OnHide",Dropdown_OnHide)
 
dropdown:ClearAllPoints()
trunk/Who Framed Watcher Wabbit/libs/AceGUI-3.0/widgets/AceGUIContainer-TreeGroup.lua
2,14 → 2,14
TreeGroup Container
Container that uses a tree control to switch between groups.
-------------------------------------------------------------------------------]]
local Type, Version = "TreeGroup", 34
local Type, Version = "TreeGroup", 33
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
 
-- Lua APIs
local next, pairs, ipairs, assert, type = next, pairs, ipairs, assert, type
local math_min, math_max, floor = math.min, math.max, floor
local select, tremove, unpack, tconcat = select, table.remove, unpack, table.concat
local select, tremove, unpack = select, table.remove, unpack
 
-- WoW APIs
local CreateFrame, UIParent = CreateFrame, UIParent
385,7 → 385,7
end
end,
 
["RefreshTree"] = function(self,scrollToSelection)
["RefreshTree"] = function(self)
local buttons = self.buttons
local lines = self.lines
 
407,8 → 407,6
local tree = self.tree
 
local treeframe = self.treeframe
 
status.scrollToSelection = status.scrollToSelection or scrollToSelection -- needs to be cached in case the control hasn't been drawn yet (code bails out below)
 
self:BuildLevel(tree, 1)
 
418,9 → 416,6
if maxlines <= 0 then return end
 
local first, last
 
scrollToSelection = status.scrollToSelection
status.scrollToSelection = nil
 
if numlines <= maxlines then
--the whole tree fits in the frame
436,33 → 431,11
if numlines - status.scrollvalue < maxlines then
status.scrollvalue = numlines - maxlines
end
self.noupdate = nil
first, last = status.scrollvalue+1, status.scrollvalue + maxlines
--show selection?
if scrollToSelection and status.selected then
local show
for i,line in ipairs(lines) do -- find the line number
if line.uniquevalue==status.selected then
show=i
end
end
if not show then
-- selection was deleted or something?
elseif show>=first and show<=last then
-- all good
else
-- scrolling needed!
if show<first then
status.scrollvalue = show-1
else
status.scrollvalue = show-maxlines
end
first, last = status.scrollvalue+1, status.scrollvalue + maxlines
end
end
if self.scrollbar:GetValue() ~= status.scrollvalue then
self.scrollbar:SetValue(status.scrollvalue)
end
self.noupdate = nil
first, last = status.scrollvalue+1, status.scrollvalue + maxlines
end
 
local buttonnum = 1
494,7 → 467,6
button:Show()
buttonnum = buttonnum + 1
end
 
end,
 
["SetSelected"] = function(self, value)
509,12 → 481,11
self.filter = false
local status = self.status or self.localstatus
local groups = status.groups
local path = {...}
for i = 1, #path do
groups[tconcat(path, "\001", 1, i)] = true
for i = 1, select('#', ...) do
groups[BuildUniqueValue(select(i, ...))] = true
end
status.selected = uniquevalue
self:RefreshTree(true)
self:RefreshTree()
self:Fire("OnGroupSelected", uniquevalue)
end,
 
trunk/Who Framed Watcher Wabbit/wfww.lua
62,6 → 62,20
type = "header",
order = .5,
},
scale = {
name = "WatchFrame scale",
desc = "The scale of the entire tracker frame.",
type = "range",
min = .5,
max = 2,
step = .05,
get = function() return db.scale end,
set = function(_, scale)
db.scale = scale
SetSize()
end,
order = 1,
},
anchor = {
name = "Screen Anchor",
desc = "What side of the screen you would like the WatchFrame located at. The tracker will also collapse in this direction.",
80,7 → 94,7
db.yOffset = "0"
MoveWatchFrame()
end,
order = 1,
order = 2,
},
xOffset = {
name = "X Offset",
94,7 → 108,7
db.xOffset = xOffset
MoveWatchFrame()
end,
order = 2,
order = 3,
},
yOffset = {
name = "Y Offset",
108,20 → 122,6
db.yOffset = yOffset
MoveWatchFrame()
end,
order = 3,
},
scale = {
name = "WatchFrame scale",
desc = "The scale of the entire tracker frame.",
type = "range",
min = .5,
max = 2,
step = .05,
get = function() return db.scale end,
set = function(_, scale)
db.scale = scale
SetSize()
end,
order = 4,
},
height = {
272,7 → 272,6
desc = "The background color and transparency.\n\nIf you wish to use a custom background texture and do not want it colored, set this to white.",
type = "color",
hasAlpha = true,
width = "double",
get = function() return db.bgColor.r, db.bgColor.g, db.bgColor.b, db.bgColor.a end,
set = function(_,r,g,b,a)
db.bgColor.r = r
298,19 → 297,19
end,
order = 11,
},
borderColor = {
name = "Border Color",
desc = "Color of the watch frame's border.",
type = "color",
disabled = function() return db.classBorder end,
get = function() return db.borderColor.r, db.borderColor.g, db.borderColor.b end,
set = function(_,r,g,b)
db.borderColor.r = r
db.borderColor.g = g
db.borderColor.b = b
borderAlpha = {
name = "Border Alpha",
desc = "Transparency of the border.",
type = "range",
min = 0,
max = 1,
step = .05,
get = function() return db.borderAlpha end,
set = function(_, borderAlpha)
db.borderAlpha = borderAlpha
Appearance()
end,
order = 12,
order = 11.5,
},
classBorder = {
name = "Class Colored Border",
321,21 → 320,21
db.classBorder = not db.classBorder
Appearance()
end,
order = 12.5,
order = 12,
},
borderAlpha = {
name = "Border Alpha",
desc = "Transparency of the border.",
type = "range",
min = 0,
max = 1,
step = .05,
get = function() return db.borderAlpha end,
set = function(_, borderAlpha)
db.borderAlpha = borderAlpha
borderColor = {
name = "Border Color",
desc = "Color of the watch frame's border.",
type = "color",
disabled = function() return db.classBorder end,
get = function() return db.borderColor.r, db.borderColor.g, db.borderColor.b end,
set = function(_,r,g,b)
db.borderColor.r = r
db.borderColor.g = g
db.borderColor.b = b
Appearance()
end,
order = 13,
order = 12.5,
},
borderWidth = {
name = "Border Width",
349,7 → 348,7
db.borderWidth = borderWidth
Appearance()
end,
order = 13.5,
order = 13,
},
inset = {
name = "Inset",