Quantcast
WoWInterface: SVN - NeedyGreedy - Path Comparison - /trunk Rev 113 and /trunk Rev 112

WoWInterface SVN NeedyGreedy

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 113 to Rev 112
    Reverse comparison

Rev 113 → Rev 112

NeedyGreedy.lua
167,35 → 167,18
set = "SetHighlightSelf",
},
highlightSelfColor = {
name = L["Highlight Self Color"],
name = "HighLightSelf Color",
type = "color",
order = 38,
get = "GetHighlightSelfColor",
set = "SetHighlightSelfColor",
hasAlpha = false,
},
highlightWinner = {
name = L["Highlight Winner"],
desc = L["Color winning loot rolls differently"],
type = "toggle",
order = 40,
get = "GetHighlightWinner",
set = "SetHighlightWinner",
},
 
highlightWinnerColor = {
name = L["HighLight Winner Color"],
type = "color",
order = 41,
get = "GetHighlightWinnerColor",
set = "GetHighlightWinnerColor",
hasAlpha = false,
},
showGroupOnly = {
name = L["Hide Non-Members"],
desc = L["Only display the names of members currently in your party"],
type = "toggle",
order = 50,
order = 40,
get = "GetShowGroupOnly",
set = "SetShowGroupOnly",
},
316,8 → 299,6
noSpamMode = false,
highlightSelf = false,
highlightSelfColor = {1, 0.8, 0, 1},
highlightWinner = false,
highlightWinnerColor = {0, 1, 0, 1},
}
}
 
1042,22 → 1023,18
 
function NeedyGreedy:RollText(number, winner, winnerIsSelf)
local hexColor = ""
local r, g, b, a = unpack({1, 1, 1, 1})
local r, g, b, a = unpack(self.db.profile.highlightSelfColor)
 
if number then
number = " - " .. number
if self.db.profile.highlightWinner and winner then
r, g, b, a = unpack(self.db.profile.highlightWinnerColor)
hexColor = string.format("|cff%2X%2X%2X", 255*r, 255*g, 255*b)
if winner then
if self.db.profile.highlightSelf and winnerIsSelf then
hexColor = string.format("|cff%x%x%x", 255*r, 255*g, 255*b)
else
hexColor = gC
end
number = hexColor .. number .. "|r"
end
 
if self.db.profile.highlightSelf and winnerIsSelf then
r, g, b, a = unpack(self.db.profile.highlightSelfColor)
hexColor = string.format("|cff%2X%2X%2X", 255*r, 255*g, 255*b)
end
 
number = hexColor .. number .. "|r"
 
return number
else
return ""
1329,26 → 1306,8
self:RefreshTooltip()
end
 
function NeedyGreedy:GetHighlightWinner(info)
return self.db.profile.highlightWinner
end
 
function NeedyGreedy:SetHighlightWinner(info, highlightWinner)
self.db.profile.highlightWinner = highlightWinner
self:RefreshTooltip()
end
 
function NeedyGreedy:GetHighlightWinnerColor(info)
return unpack(self.db.profile.highlightWinnerColor)
end
 
function NeedyGreedy:SetHighlightWinnerColor(info, r, g, b, a)
self.db.profile.highlightWinnerColor = {r, g, b, a}
self:RefreshTooltip()
end
 
 
 
-- QTip Frames
local LibQTip = LibStub('LibQTip-1.0')
local COL_MIN_WIDTH = 60
Localization/enUS.lua
65,10 → 65,6
L["Loot Summary"] = true
L["Print loot roll summary message to chat frame"] = true
L["Highlight Self"] = true
L["Highlight Self Color"] = true
L["Color loot you have won differently"] = true
L["Highlight Winner"] = true
L["Color winning loot rolls differently"] = true
L["HighLight Winner Color"] = true
 
end