| Tested: | Hour of Twilight 4.3 |
| Updated: | 01-07-12 07:34 AM |
| Created: | 12-26-08 11:29 PM |
| Downloads: | 13,346 |
| Favorites: | 89 |
| MD5: |

File Name |
Version |
Size |
Author |
Date |
40200.6-Release |
1kB |
p3lim |
10-03-11 07:26 PM |
|
40000.5-Release |
1kB |
p3lim |
10-14-10 11:56 AM |
|
40000.4-Release |
1kB |
p3lim |
10-13-10 12:40 PM |
|
30200.2-Release |
1kB |
p3lim |
08-22-09 03:20 PM |
|
30200.1-Beta |
1kB |
p3lim |
08-08-09 10:07 AM |
|
30200.8 |
1kB |
p3lim |
08-04-09 02:47 PM |
|
30100.7 |
1kB |
p3lim |
04-17-09 09:33 AM |
|
30000.6 |
1kB |
p3lim |
02-08-09 08:14 AM |
|
30000.5 |
1kB |
p3lim |
02-07-09 02:18 PM |
|
30000.4 |
1kB |
p3lim |
01-14-09 01:39 PM |
![]() |
Comment Options |
|
|
|||
|
|||
|
|
|
|
||
Code:
local function PostUpdateReputation(self, event, unit, bar) local _, id = GetWatchedFactionInfo() bar:SetStatusBarColor(FACTION_BAR_COLORS[id].r, FACTION_BAR_COLORS[id].g, FACTION_BAR_COLORS[id].b) end Code:
if(IsAddOnLoaded('oUF_Reputation')) and UnitLevel('PLAYER') == 85 then
-- Position and size
local Reputation = CreateFrame('StatusBar', nil, self)
Reputation:SetPoint('BOTTOM', UIParent, 'BOTTOM', -1, 1)
Reputation:SetHeight(21)
Reputation:SetWidth(471)
Reputation:SetFrameLevel(9)
Reputation:SetFrameStrata('HIGH')
Reputation:SetStatusBarTexture(Media.statusBar)
Reputation:SetAlpha(0)
-- Color the bar by current standing
Reputation.colorStanding = true
-- Text display
local Value = Reputation:CreateFontString(nil, 'OVERLAY')
Value:SetAllPoints(Reputation)
Value:SetFontObject(GameFontHighlight)
self:Tag(Value, '[reputation] - [currep] / [maxrep] - [standing]')
-- Add a background
local Repbg = Reputation:CreateTexture(nil, 'BACKGROUND')
Repbg:SetAllPoints(Reputation)
Repbg:SetTexture(Media.statusBar)
Repbg:SetVertexColor(0.15, 0.15, 0.15, 1)
-- Mouseover!
Reputation:HookScript('OnEnter', function(self) self:SetAlpha(1) end)
Reputation:HookScript('OnLeave', function(self) self:SetAlpha(0) end)
Reputation:EnableMouse(true)
local RepGradient = Reputation:CreateTexture(nil, "OVERLAY")
RepGradient:SetTexture(Media.statusBar)
RepGradient:SetGradientAlpha("VERTICAL",.2,.2,.2,.15,.25,.25,.25,.6)--]]
-- Register it with oUF
self.Reputation = Reputation
end
They update if I change my watched reputation, or if I reload my UI, but at first login it all just says "0 - 0 / 0 - 0" or similar to that. ![]()
__________________
![]() Signature by Haylie <3 |
||
|
|
|
|
|||
|
I don't use this plugin myself, I just update it when it needs to be.
So, I am kind of dependant on bug reports.
Last edited by p3lim : 01-07-12 at 06:47 AM.
|
|||
|
|
|
|
|
|
Hi p3lim, when using the [standing] tag you don't get a string output like 'Neutral', or 'Exalted'. The return is instead the StandingID (http://www.wowwiki.com/API_TYPE_StandingId) which is not really helpful and definitely not pretty.
Are there plans to fix the standing tag? I tinkered around with it myself but I didn't get far, I reckon someone with your knowledge would be able to do this however. ![]() I'd also like to point out that none of your tags are available upon first login, and you have to reload your UI for the text to update. Or change your watched faction I suppose. ![]()
__________________
![]() Signature by Haylie <3
Last edited by Wimpface : 01-07-12 at 12:53 AM.
|
|
|
|
|
|
||
|
||
|
|
|
|
||
|
Hey p3lim. oUF_Experience and oUF_Reputation are both awesome.
I embedded both and added this to the reputation update function: Code:
reputation:SetStatusBarColor(FACTION_BAR_COLORS[standing].r, FACTION_BAR_COLORS[standing].g, FACTION_BAR_COLORS[standing].b)
if reputation.bg then
reputation.bg:SetVertexColor(FACTION_BAR_COLORS[standing].r, FACTION_BAR_COLORS[standing].g, FACTION_BAR_COLORS[standing].b)
end
__________________
| Simple is beautiful. | Blog | Roth UI | Roth UI FAQ | GoogleCode | DevShots | TheBigOne | Guild | zorker.de
|
||
|
|
|
|
|
|
A Defias Bandit
Forum posts: 2
File comments: 49
Uploads: 0
|
Is there a way to add auto-watching of reputation to this? Similar to XPBarNone? (I.E. If I'm doing quests for rep for lets say... I don't know, Sporegarr, then I go into ICC, It changes to watch Ashen Verdict?)
Thanks. |
|
|
|
|
||
|
A Fallenroot Satyr
Forum posts: 28
File comments: 47
Uploads: 0
|
Re: Re: Re: color
![]() Thanks again. |
|
|
|
|
|
||
|
Re: Re: color
http://github.com/p3lim/oUF_P3lim/co...ae0204aee5ca11 |
||
|
|
|
|
||
|
A Fallenroot Satyr
Forum posts: 28
File comments: 47
Uploads: 0
|
Re: color
Is this possible? If so may i ask how?
|
|
|
|
|
|
||
![]() |
||
|
|
|
|
|
|
Will do next time then
Again, sorry.But I do have to hand it to you, I love the plugs you've written (or rather, I <3 your code, it's sexy) |
|
|
|
|
|
||
WoWI/Curse = Beta/Release versions When I tag an addon on GitHub the version gets updated on Curse and WoWI. |
||
|
|
|
|
|
|
I assume the one of github?
|
|
|
|
![]() |
You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.