Quantcast
View Feature Request
alpha
Feature #: 2817
File: XPBarNone
Date: 07-18-08 12:44 AM
By: alydis
Status: Flagged for Future Version
Simple edit to add alpha to XPBarNone:


Left file: C:\Users\Alydis\Desktop\Core.lua
Right file: D:\World of Warcraft\Interface\Addons\XPBarNone\Core.lua
339c339
< return self.db.profile.normal.r, self.db.profile.normal.g, self.db.profile.normal.b
---
> return self.db.profile.normal.r, self.db.profile.normal.g, self.db.profile.normal.b, self.db.profile.normal.a
341,342c341,342
< set = function(r, g, b)
< self.db.profile.normal.r, self.db.profile.normal.g, self.db.profile.normal.b = r, g, b
---
> set = function(r, g, b, a)
> self.db.profile.normal.r, self.db.profile.normal.g, self.db.profile.normal.b, self.db.profile.normal.a = r, g, b, a
345c345
< hasAlpha = false
---
> hasAlpha = true
352c352
< return self.db.profile.rested.r, self.db.profile.rested.g, self.db.profile.rested.b
---
> return self.db.profile.rested.r, self.db.profile.rested.g, self.db.profile.rested.b, self.db.profile.rested.a
354,355c354,355
< set = function(r, g, b)
< self.db.profile.rested.r, self.db.profile.rested.g, self.db.profile.rested.b = r, g, b
---
> set = function(r, g, b, a)
> self.db.profile.rested.r, self.db.profile.rested.g, self.db.profile.rested.b, self.db.profile.rested.a = r, g, b, a
358c358
< hasAlpha = false
---
> hasAlpha = true
365c365
< return self.db.profile.resting.r, self.db.profile.resting.g, self.db.profile.resting.b
---
> return self.db.profile.resting.r, self.db.profile.resting.g, self.db.profile.resting.b, self.db.profile.resting.a
367,368c367,368
< set = function(r, g, b)
< self.db.profile.resting.r, self.db.profile.resting.g, self.db.profile.resting.b = r, g, b
---
> set = function(r, g, b, a)
> self.db.profile.resting.r, self.db.profile.resting.g, self.db.profile.resting.b, self.db.profile.resting.a = r, g, b, a
371c371
< hasAlpha = false
---
> hasAlpha = true
378c378
< return self.db.profile.remaining.r, self.db.profile.remaining.g, self.db.profile.remaining.b
---
> return self.db.profile.remaining.r, self.db.profile.remaining.g, self.db.profile.remaining.b, self.db.profile.remaining.a
380,381c380,381
< set = function(r, g, b)
< self.db.profile.remaining.r, self.db.profile.remaining.g, self.db.profile.remaining.b = r, g, b
---
> set = function(r, g, b, a)
> self.db.profile.remaining.r, self.db.profile.remaining.g, self.db.profile.remaining.b, self.db.profile.remaining.a = r, g, b, a
384c384
< hasAlpha = false
---
> hasAlpha = true
874c874
< XPBarNoneA:SetStatusBarColor(normal.r, normal.g, normal.b)
---
> XPBarNoneA:SetStatusBarColor(normal.r, normal.g, normal.b, normal.a)
880c880
< XPBarNoneR:SetStatusBarColor(remaining.r, remaining.g, remaining.b)
---
> XPBarNoneR:SetStatusBarColor(remaining.r, remaining.g, remaining.b, remaining.a)
885c885
< XPBarNoneA:SetStatusBarColor(resting.r, resting.g, resting.b)
---
> XPBarNoneA:SetStatusBarColor(resting.r, resting.g, resting.b, resting.a)
888c888
< XPBarNoneA:SetStatusBarColor(rested.r, rested.g, rested.b)
---
> XPBarNoneA:SetStatusBarColor(rested.r, rested.g, rested.b, rested.a)