Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(3 Kb)
Download
Updated: 10-15-14 11:47 AM
Addon for:
oUF.
Compatibility:
Warlords of Draenor Pre-Patch (6.0.2)
Updated:10-15-14 11:47 AM
Created:12-27-08 12:29 AM
Downloads:15,382
Favorites:92
MD5:
Categories:oUF: Plugins, Warlords of Draenor Beta

oUF Reputation  Popular! (More than 5000 hits)

Version: 60000.10-Release
by: p3lim [More]

Supported oUF Version: 1.6.x

Description:
oUF Reputation is a element plug-in made for the UnitFrame framework oUF.
It does nothing by itself, and requires a layout that supports it to function.

Features:


Note:
For details on how to implement this in your own layout, please see this wiki:
http://github.com/p3lim-wow/oUF_Reputation/wiki
Don't forget to add this addon to your OptionalDeps!

Issues & Requests
To submit a bug report or feature request, please visit the Issue Tracker.

Changes in 60000.10-Release:
  • Added: License
  • Added: Changelog
  • Changed: Update Interface version
  • Changed: Internal performance tweaks
Changes in 50400.9-Release:
  • Added: Support for friendships (NPC-specific factions)
  • Changed: Update Interface version
Changes in 50001.8-Release:
  • Changed: Update Interface version
  • Changed: Added support for packagers to set the version automatically
  • Removed: Support for oUF 1.5
Changes in 40300.7-Release:
  • Changed: Update Interface version
  • Changed: Update support for oUF 1.6
  • Fixed: [standing] tag returning IDs instead of text
  • Fixed: Tags not updating properly due to unitless event
  • Fixed: Taints caused by Blizzard leaking a global variable
Changes in 40200.6-Release:
  • Added: Option to color the bar by standing
  • Changed: Update Interface version
  • Fixed: Normalize the reputation values in all the tags
Changes in 40000.5-Release:
  • Changed: Register tags regardless of element being added or not
  • Fixed: [reputation] tag
Changes in 40000.4-Release:
  • Added: Tags
  • Added: Override method
  • Added: ForceUpdate method
  • Added: PreUpdate method
  • Changed: Update support for oUF 1.4
  • Removed: Tooltip option
Changes in 40000.3-Release:
  • Added: Embedding support
  • Changed: Update Interface version
Changes in 30200.2-Release:
  • Fixed: Hide the tooltips properly
Changes in 30200.1-Beta:
  • First public release
Archived Files (13)
File Name
Version
Size
Author
Date
50400.9-Release
2kB
p3lim
06-19-14 05:01 AM
50001.8-Release
1kB
p3lim
08-30-12 06:38 AM
40300.7-Release
1kB
p3lim
01-07-12 08:34 AM
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 09:14 AM
30000.5
1kB
p3lim
02-07-09 03:18 PM
30000.4
1kB
p3lim
01-14-09 02:39 PM


Post A Reply Comment Options
Unread 08-30-12, 06:38 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1320
File comments: 1185
Uploads: 25
When updating to 50001.8-Release, keep in mind that you will need oUF 1.6 for this plug-in to work!
p3lim is offline Report comment to moderator  
Reply With Quote
Unread 01-07-12, 08:22 AM  
Wimpface
A Molten Giant
 
Wimpface's Avatar
AddOn Author - Click to view AddOns

Forum posts: 643
File comments: 265
Uploads: 23
Originally Posted by p3lim
Originally Posted by Wimpface
Originally Posted by p3lim
They update for me, could I have a look at your code?
Terribly sorry if this is a layout error, as that's not what this comment section is for.

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.
I've noticed the same now, something is wrong with the tags, I will see if I can find out why.
Great, glad I could help! Or something along those lines.
__________________
All I see is strobe lights blinding me in my hindsight.
Wimpface is offline Report comment to moderator  
Reply With Quote
Unread 01-07-12, 07:48 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1320
File comments: 1185
Uploads: 25
Originally Posted by Wimpface
Originally Posted by p3lim
They update for me, could I have a look at your code?
Terribly sorry if this is a layout error, as that's not what this comment section is for.

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.
I've noticed the same now, something is wrong with the tags, I will see if I can find out why.
p3lim is offline Report comment to moderator  
Reply With Quote
Unread 01-07-12, 07:28 AM  
Wimpface
A Molten Giant
 
Wimpface's Avatar
AddOn Author - Click to view AddOns

Forum posts: 643
File comments: 265
Uploads: 23
Originally Posted by p3lim
They update for me, could I have a look at your code?
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
Terribly sorry if this is a layout error, as that's not what this comment section is for.

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.
__________________
All I see is strobe lights blinding me in my hindsight.
Wimpface is offline Report comment to moderator  
Reply With Quote
Unread 01-07-12, 07:19 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1320
File comments: 1185
Uploads: 25
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.

Originally Posted by Wimpface
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.
This is new, I will fix that.

Originally Posted by Wimpface
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.
This is correct, I will see if I can find out why.
Last edited by p3lim : 01-07-12 at 07:47 AM.
p3lim is offline Report comment to moderator  
Reply With Quote
Unread 01-07-12, 01:51 AM  
Wimpface
A Molten Giant
 
Wimpface's Avatar
AddOn Author - Click to view AddOns

Forum posts: 643
File comments: 265
Uploads: 23
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.
__________________
All I see is strobe lights blinding me in my hindsight.
Last edited by Wimpface : 01-07-12 at 01:53 AM.
Wimpface is offline Report comment to moderator  
Reply With Quote
Unread 11-08-10, 04:35 PM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1320
File comments: 1185
Uploads: 25
Originally posted by Jaidynne
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.
http://www.wowinterface.com/download...tionWatch.html
p3lim is offline Report comment to moderator  
Reply With Quote
Unread 11-08-10, 04:07 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1391
File comments: 3398
Uploads: 89
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
This will make the statusbar and the background that I created colored by faction colors.
__________________
| Simple is beautiful.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
zork is offline Report comment to moderator  
Reply With Quote
Unread 07-11-10, 12:01 PM  
Jaidynne
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.
Jaidynne is offline Report comment to moderator  
Reply With Quote
Unread 09-10-09, 11:48 AM  
Icerat
A Fallenroot Satyr

Forum posts: 28
File comments: 46
Uploads: 0
Re: Re: Re: color

Originally posted by p3lim
Use that table along with the function found here:
http://github.com/p3lim/oUF_P3lim/co...ae0204aee5ca11
Many Many thanks m8 worked a treat you are da man
Thanks again.
Icerat is offline Report comment to moderator  
Reply With Quote
Unread 09-07-09, 04:49 PM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1320
File comments: 1185
Uploads: 25
Re: Re: color

Originally posted by Icerat
Is this possible? If so may i ask how?
Use that table along with the function found here:
http://github.com/p3lim/oUF_P3lim/co...ae0204aee5ca11
p3lim is offline Report comment to moderator  
Reply With Quote
Unread 09-07-09, 01:18 PM  
Icerat
A Fallenroot Satyr

Forum posts: 28
File comments: 46
Uploads: 0
Re: color

Is this possible? If so may i ask how?


Originally posted by Quokka
How would I get it to color the bar

Code:
local FACTION_BAR_COLORS = {
	[0] = {r = 1, g = 0.3, b = 0.22}, 
	[1] = {r = 0.8, g = 0.3, b = 0.22}, -- hated, dark red
	[2] = {r = 1, g = 0, b = 0},		-- hostile, bright red
	[3] = {r = 1, g = 0.5, b = 0},		-- unfriendly, orange
	[4] = {r = 0.9, g = 0.7, b = 0},	-- neutral, yellow
    [5] = {r = 0, g = 0.6, b = 0.1},	-- friendly, dark green
	[6] = {r = 0, g = 1, b = 0},		-- honored,	bright green
	[7] = {r = 0.25, g = 0.4, b = 0.9},	-- reverted, blue
	[8] = {r = 0.6, g = 0.2, b = 0.8},	-- exalted, purple
}
aint working any sugestions
Icerat is offline Report comment to moderator  
Reply With Quote
Unread 08-27-09, 08:07 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1320
File comments: 1185
Uploads: 25
Originally posted by MoonWitch
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)
Thanks, that is my intention
p3lim is offline Report comment to moderator  
Reply With Quote
Unread 08-26-09, 04:20 PM  
MoonWitch
A Scalebane Royal Guard
AddOn Author - Click to view AddOns

Forum posts: 437
File comments: 157
Uploads: 8
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)
MoonWitch is offline Report comment to moderator  
Reply With Quote
Unread 08-23-09, 12:28 PM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1320
File comments: 1185
Uploads: 25
Originally posted by MoonWitch
I assume the one of github?
GitHub = Alpha versions
WoWI/Curse = Beta/Release versions

When I tag an addon on GitHub the version gets updated on Curse and WoWI.
p3lim is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

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.