diff --git a/media/.svn/entries b/media/.svn/entries deleted file mode 100644 index 42c2663..0000000 --- a/media/.svn/entries +++ /dev/null @@ -1,232 +0,0 @@ -10 - -dir -31 -svn+ssh://svn@svn.curseforge.net/wow/ouf_lanerra/mainline/trunk/media -svn+ssh://svn@svn.curseforge.net/wow/ouf_lanerra/mainline - - - -2010-08-22T21:39:57.035990Z -23 -lanerra - - - - - - - - - - - - - - -694fdc02-a382-488d-9e21-d3b31be74a47 - -font.ttf -file - - - - -2010-08-11T04:02:18.000000Z -2ceedb2b4812b2445b7514c6ab2b9e52 -2010-07-26T08:24:49.693240Z -2 -lanerra -has-props - - - - - - - - - - - - - - - - - - - - -119384 - -statusbarTexture.tga -file - - - - -2010-08-11T04:02:18.000000Z -fd602ce81e23cb45761c5138723a84b3 -2010-07-26T08:24:49.693240Z -2 -lanerra -has-props - - - - - - - - - - - - - - - - - - - - -32812 - -ComboPoint.blp -file - - - - -2010-08-11T04:02:18.000000Z -afc8a0558e9b91230e3c6ed8d2a4a883 -2010-07-26T08:24:49.693240Z -2 -lanerra -has-props - - - - - - - - - - - - - - - - - - - - -1854 - -borderBackground.tga -file - - - - -2010-08-11T04:02:18.000000Z -6f0d80c159dec416703b63ebb50d720b -2010-07-26T08:24:49.693240Z -2 -lanerra -has-props - - - - - - - - - - - - - - - - - - - - -77881 - -Border.tga -file - - - - -2010-08-06T10:59:12.000000Z -f421d9382d9872a01bde0530e4e696d7 -2010-08-22T21:38:49.976287Z -22 -lanerra -has-props - - - - - - - - - - - - - - - - - - - - -16428 - -debuffGlow.tga -file - - - - -2010-08-11T04:02:18.000000Z -7c0538a9d5f34ef4da3c72dc3c552381 -2010-08-10T21:01:32.668536Z -20 -lanerra -has-props - - - - - - - - - - - - - - - - - - - - -16428 - diff --git a/media/.svn/prop-base/Border.tga.svn-base b/media/.svn/prop-base/Border.tga.svn-base deleted file mode 100644 index 5e9587e..0000000 --- a/media/.svn/prop-base/Border.tga.svn-base +++ /dev/null @@ -1,5 +0,0 @@ -K 13 -svn:mime-type -V 24 -application/octet-stream -END diff --git a/media/.svn/prop-base/ComboPoint.blp.svn-base b/media/.svn/prop-base/ComboPoint.blp.svn-base deleted file mode 100644 index 5e9587e..0000000 --- a/media/.svn/prop-base/ComboPoint.blp.svn-base +++ /dev/null @@ -1,5 +0,0 @@ -K 13 -svn:mime-type -V 24 -application/octet-stream -END diff --git a/media/.svn/prop-base/borderBackground.tga.svn-base b/media/.svn/prop-base/borderBackground.tga.svn-base deleted file mode 100644 index 5e9587e..0000000 --- a/media/.svn/prop-base/borderBackground.tga.svn-base +++ /dev/null @@ -1,5 +0,0 @@ -K 13 -svn:mime-type -V 24 -application/octet-stream -END diff --git a/media/.svn/prop-base/debuffGlow.tga.svn-base b/media/.svn/prop-base/debuffGlow.tga.svn-base deleted file mode 100644 index 5e9587e..0000000 --- a/media/.svn/prop-base/debuffGlow.tga.svn-base +++ /dev/null @@ -1,5 +0,0 @@ -K 13 -svn:mime-type -V 24 -application/octet-stream -END diff --git a/media/.svn/prop-base/font.ttf.svn-base b/media/.svn/prop-base/font.ttf.svn-base deleted file mode 100644 index 5e9587e..0000000 --- a/media/.svn/prop-base/font.ttf.svn-base +++ /dev/null @@ -1,5 +0,0 @@ -K 13 -svn:mime-type -V 24 -application/octet-stream -END diff --git a/media/.svn/prop-base/statusbarTexture.tga.svn-base b/media/.svn/prop-base/statusbarTexture.tga.svn-base deleted file mode 100644 index 5e9587e..0000000 --- a/media/.svn/prop-base/statusbarTexture.tga.svn-base +++ /dev/null @@ -1,5 +0,0 @@ -K 13 -svn:mime-type -V 24 -application/octet-stream -END diff --git a/media/.svn/text-base/Border.tga.svn-base b/media/.svn/text-base/Border.tga.svn-base deleted file mode 100644 index 080087e..0000000 Binary files a/media/.svn/text-base/Border.tga.svn-base and /dev/null differ diff --git a/media/.svn/text-base/ComboPoint.blp.svn-base b/media/.svn/text-base/ComboPoint.blp.svn-base deleted file mode 100644 index 1578d0c..0000000 Binary files a/media/.svn/text-base/ComboPoint.blp.svn-base and /dev/null differ diff --git a/media/.svn/text-base/borderBackground.tga.svn-base b/media/.svn/text-base/borderBackground.tga.svn-base deleted file mode 100644 index 6ab8cf0..0000000 Binary files a/media/.svn/text-base/borderBackground.tga.svn-base and /dev/null differ diff --git a/media/.svn/text-base/debuffGlow.tga.svn-base b/media/.svn/text-base/debuffGlow.tga.svn-base deleted file mode 100644 index baa831e..0000000 Binary files a/media/.svn/text-base/debuffGlow.tga.svn-base and /dev/null differ diff --git a/media/.svn/text-base/font.ttf.svn-base b/media/.svn/text-base/font.ttf.svn-base deleted file mode 100644 index 1ca255c..0000000 Binary files a/media/.svn/text-base/font.ttf.svn-base and /dev/null differ diff --git a/media/.svn/text-base/statusbarTexture.tga.svn-base b/media/.svn/text-base/statusbarTexture.tga.svn-base deleted file mode 100644 index ddf3e54..0000000 Binary files a/media/.svn/text-base/statusbarTexture.tga.svn-base and /dev/null differ diff --git a/modules/.svn/entries b/modules/.svn/entries deleted file mode 100644 index ecc827c..0000000 --- a/modules/.svn/entries +++ /dev/null @@ -1,130 +0,0 @@ -10 - -dir -31 -svn+ssh://svn@svn.curseforge.net/wow/ouf_lanerra/mainline/trunk/modules -svn+ssh://svn@svn.curseforge.net/wow/ouf_lanerra/mainline - - - -2010-08-31T23:42:15.588666Z -28 -lanerra - - - - - - - - - - - - - - -694fdc02-a382-488d-9e21-d3b31be74a47 - -DispellableDebuffs.lua -file -66 - - - -2011-02-16T19:18:31.235809Z -d8ad72be94f8dbb0cce7d33ee628c8d9 -2011-03-07T00:26:26.860962Z -66 -lanerra -has-props - - - - - - - - - - - - - - - - - - - - -3893 - -Threat.lua -file -66 - - - -2011-02-16T19:19:00.115461Z -85530c17d7252999b457a8aeeb748108 -2011-03-07T00:26:26.860962Z -66 -lanerra -has-props - - - - - - - - - - - - - - - - - - - - -1854 - -Smooth.lua -file - - - - -2009-08-22T03:53:32.000000Z -8de9cf8be0491c8099c10d1ae6f652fc -2010-07-26T08:24:57.563124Z -3 -lanerra -has-props - - - - - - - - - - - - - - - - - - - - -1079 - diff --git a/modules/.svn/prop-base/DispellableDebuffs.lua.svn-base b/modules/.svn/prop-base/DispellableDebuffs.lua.svn-base deleted file mode 100644 index bdbd305..0000000 --- a/modules/.svn/prop-base/DispellableDebuffs.lua.svn-base +++ /dev/null @@ -1,5 +0,0 @@ -K 13 -svn:eol-style -V 6 -native -END diff --git a/modules/.svn/prop-base/Smooth.lua.svn-base b/modules/.svn/prop-base/Smooth.lua.svn-base deleted file mode 100644 index bdbd305..0000000 --- a/modules/.svn/prop-base/Smooth.lua.svn-base +++ /dev/null @@ -1,5 +0,0 @@ -K 13 -svn:eol-style -V 6 -native -END diff --git a/modules/.svn/prop-base/Threat.lua.svn-base b/modules/.svn/prop-base/Threat.lua.svn-base deleted file mode 100644 index bdbd305..0000000 --- a/modules/.svn/prop-base/Threat.lua.svn-base +++ /dev/null @@ -1,5 +0,0 @@ -K 13 -svn:eol-style -V 6 -native -END diff --git a/modules/.svn/text-base/DispellableDebuffs.lua.svn-base b/modules/.svn/text-base/DispellableDebuffs.lua.svn-base deleted file mode 100644 index 47ee443..0000000 --- a/modules/.svn/text-base/DispellableDebuffs.lua.svn-base +++ /dev/null @@ -1,118 +0,0 @@ ---[[-------------------------------------------------------------------- - oUF_DispelHighlight - Highlights oUF frames by dispellable debuff type. - Originally based on Ammo's oUF_DebuffHighlight. - - You may embed this module in your own layout, but please do not - distribute it as a standalone plugin. - - To have your frame's health bar highlighted: - frame.DispelHighlight = true - - To use your own highlighting function: - frame.DispelHighlight = function(frame, event, unit, debuffType, canDispel) - -- debuffType : string or nil : type of the highest priority debuff, nil if no debuffs - -- canDispel : boolean : indicates whether the player can dispel the debuff - end - - To highlight only debuffs you can dispel: - frame.DispelHighlightFilter = true -----------------------------------------------------------------------]] - -if not oUF then return end -if select(4, GetAddOnInfo('oUF_DispelHighlight')) then return end - -local _, playerClass = UnitClass('player') - -local canDispel -if playerClass == 'DRUID' then - canDispel = { Curse = true, Poison = true } -elseif playerClass == 'MAGE' then - canDispel = { Curse = true } -elseif playerClass == 'PALADIN' then - canDispel = { Disease = true, Magic = true, Poison = true } -elseif playerClass == 'PRIEST' then - canDispel = { Disease = true, Magic = true } -elseif playerClass == 'SHAMAN' then - canDispel = { Curse = true, Disease = true, Poison = true } -end - -local DebuffPriority = { } -for type, priority in pairs({ Curse = 2, Disease = 4, Magic = 1, Poison = 3 }) do - table.insert(DebuffPriority, type) - DebuffPriority[type] = ((canDispel and canDispel[type]) and 10 or 5) - priority -end -table.sort(DebuffPriority, function(a, b) return DebuffPriority[a] > DebuffPriority[b] end) - -local DebuffTypeColor = { } -for type, color in pairs(_G.DebuffTypeColor) do - DebuffTypeColor[type] = { color.r, color.g, color.b } -end - ------------------------------------------------------------------------- - -local unitDebuffType = { } - -local function applyDispelHighlight(self, event, unit, bar) - local debuffType = unitDebuffType[unit] - if debuffType then - bar:SetStatusBarColor(unpack(DebuffTypeColor[debuffType])) - end -end - -local function Update(self, event, unit) - if self.unit ~= unit then return end - -- print('Update', unit) - - if not UnitCanAssist('player', unit) then return end - -- print('not UnitCanAssist') - - local debuffType - - local i = 1 - while true do - local name, _, _, _, type = UnitAura(unit, i, 'HARMFUL') - if not name then break end - -- print('UnitAura', unit, i, name or 'NONE', type or 'NONE') - if type and (not debuffType or DebuffPriority[type] > DebuffPriority[debuffType]) then - -- print('debuffType', type) - debuffType = type - end - i = i + 1 - end - - if unitDebuffType[unit] ~= debuffType then - -- print('unitDebuffType', unitDebuffType[unit] or 'NONE', 'debuffType', debuffType or 'NONE') - - unitDebuffType[unit] = debuffType - - if type(self.DispelHighlight) == 'function' then - self:DispelHighlight(event, unit, debuffType, canDispel and canDispel[debuffType]) - else - if debuffType and self.DispelHighlightFilter and not (canDispel and canDispel[debuffType]) then return end - applyDispelHighlight(self, event, unit, self.Health) - end - end -end - -local function Enable(self) - if not self.DispelHighlight or (self.DispelHighlightFilter and not canDispel) then return end - - self:RegisterEvent('UNIT_AURA', Update) - - if type(self.DispelHighlight) ~= 'function' then - local o = self.PostUpdateHealth - self.PostUpdateHealth = function(...) - if o then o(...) end - applyDispelHighlight(...) - end - end -end - -local function Disable(self) - if not self.DispelHighlight or not canDispel then return end - - self:UnregisterEvent('UNIT_AURA', Update) -end - -oUF:AddElement('DispelHighlight', Update, Enable, Disable) diff --git a/modules/.svn/text-base/Smooth.lua.svn-base b/modules/.svn/text-base/Smooth.lua.svn-base deleted file mode 100644 index 0272e55..0000000 --- a/modules/.svn/text-base/Smooth.lua.svn-base +++ /dev/null @@ -1,45 +0,0 @@ -if not oUF then return end - -local smoothing = {} -local function Smooth(self, value) - if value ~= self:GetValue() or value == 0 then - smoothing[self] = value - else - smoothing[self] = nil - end -end - -local function SmoothBar(self, bar) - bar.SetValue_ = bar.SetValue - bar.SetValue = Smooth -end - -local function hook(frame) - frame.SmoothBar = SmoothBar - if frame.Health and frame.Health.Smooth then - frame:SmoothBar(frame.Health) - end - if frame.Power and frame.Power.Smooth then - frame:SmoothBar(frame.Power) - end -end - -for i, frame in ipairs(oUF.objects) do hook(frame) end -oUF:RegisterInitCallback(hook) - -local f, min, max = CreateFrame('Frame'), math.min, math.max -f:SetScript('OnUpdate', function() - local limit = 30/GetFramerate() - for bar, value in pairs(smoothing) do - local cur = bar:GetValue() - local new = cur + min((value-cur)/3, max(value-cur, limit)) - if new ~= new then - new = value - end - bar:SetValue_(new) - if cur == value or abs(new - value) < 2 then - bar:SetValue_(value) - smoothing[bar] = nil - end - end -end) \ No newline at end of file diff --git a/modules/.svn/text-base/Threat.lua.svn-base b/modules/.svn/text-base/Threat.lua.svn-base deleted file mode 100644 index 6c0b28b..0000000 --- a/modules/.svn/text-base/Threat.lua.svn-base +++ /dev/null @@ -1,67 +0,0 @@ ---[[-------------------------------------------------------------------- - oUF_ThreatHighlight - Highlights oUF frames by threat level. - - Simple usage: - self.ThreatHighlight = true - - Advanced usage: - self.ThreatHighlight = function(self, unit, status) end -----------------------------------------------------------------------]] - -local _, ns = ... -local oUF = ns.oUF or oUF -if not oUF then return end - -local unitThreatStatus = { } - -local function applyThreatHighlight(self, unit) - local status = unitThreatStatus[unit] - if status then - local r, g, b = GetThreatStatusColor(status) - self:SetStatusBarColor(r, g, b) - end -end - -local function Update(self, event, unit) - if self.unit ~= unit then return end - - local status = UnitThreatSituation(unit) - -- local status = UnitIsFriend(unit, 'player') and UnitThreatSituation(unit) or UnitThreatSituation('player', unit) - -- print('ThreatHighlight Update', event, unit, status) - - if status and status > 0 then - if type(self.ThreatHighlight) == 'function' then - self.ThreatHighlight(self, unit, status) - else - unitThreatStatus[unit] = status - applyThreatHighlight(self.Health, unit) - end - elseif type(self.ThreatHighlight) == 'function' then - self.ThreatHighlight(self, unit, 0) - end -end - -local function Enable(self) - if not self.ThreatHighlight then return end - - self:RegisterEvent('UNIT_THREAT_SITUATION_UPDATE', Update) - - if type(self.ThreatHighlight) ~= 'function' then - local o = self.Health.PostUpdate - self.Health.PostUpdate = function(...) - if o then o(...) end - applyThreatHighlight(...) - end - end - - return true -end - -local function Disable(self) - if not self.ThreatHighlight then return end - - self:UnregisterEvent('UNIT_THREAT_SITUATION_UPDATE', Update) -end - -oUF:AddElement('ThreatHighlight', Update, Enable, Disable)