Quantcast
Download
(3 Kb)
Download
Updated: 11-26-16 07:46 AM
Addon for:
oUF.
Compatibility:
Legion (7.0.3)
Updated:11-26-16 07:46 AM
Created:12-27-08 12:29 AM
Downloads:17,731
Favorites:92
MD5:

oUF Reputation  Popular! (More than 5000 hits)

Version: 70100.14-Release
by: p3lim [More]

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.

It has the following features:

  • Reputation bar
  • Tags

For details on how to implement this in your own layout, please see the wiki:
https://github.com/p3lim-wow/oUF_Reputation/wiki

Feedback

If you have a question, please use the comments section on Curse/WoWInterface.
If you would like to report a bug or contribute to the project, please follow this link to get started.

Legal

Please see the LICENSE file.

Changes in 70100.14-Release:
  • Added: Prefix to provided tags names
  • Changed: Improvements to the update and visibility logic

Changes in 70000.13-Release:
  • Fixes: Tags not updating correctly

Changes in 70000.12-Release:
  • Changed: Update Interface version

Changes in 60000.11-Release:
  • Added: PreUpdate callback
  • Fixed: Event not flagged as "unitless"
  • Fixed: Unnecessary tag updates

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 (17)
File Name
Version
Size
Author
Date
70000.13-Releas
3kB
p3lim
08-25-16 03:23 AM
70000.12-Releas
3kB
p3lim
07-19-16 08:06 AM
60000.11-Releas
3kB
p3lim
01-18-15 04:15 AM
60000.10-Releas
3kB
p3lim
10-15-14 11:47 AM
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 09-18-16, 06:17 PM  
neverg
A Frostmaul Preserver
 
neverg's Avatar
AddOn Author - Click to view AddOns

Forum posts: 254
File comments: 382
Uploads: 8
I found something related to this bug of the experience bar not showing when entering the world even tho the show xp as experience is ticked on a certain faction.

I opened an issue on Github to explain it there. Guess it is better.

https://github.com/p3lim-wow/oUF_Reputation/issues/4
__________________
My oUF Layout: oUF Lumen
Report comment to moderator  
Reply With Quote
Unread 09-16-16, 08:54 AM  
neverg
A Frostmaul Preserver
 
neverg's Avatar
AddOn Author - Click to view AddOns

Forum posts: 254
File comments: 382
Uploads: 8
Originally Posted by p3lim
Originally Posted by neverg
Hi p3lim,

Found another bug that didn't happen before this commits.

When entering the world, the reputation bar doesn't show up.
Need to go to Blizzard reputations to disable and enable again.

Didn't happen before so I guess it's a regression bug.
Are you using the factory in oUF to spawn your frames?
Nope, I spawn them individually:

Lua Code:
  1. -- -----------------------------------
  2. -- > SPAWN UNIT
  3. -- -----------------------------------
  4. if cfg.units[frame].show then
  5.   oUF:RegisterStyle("oUF_Lumen:"..frame:gsub("^%l", string.upper), createStyle)
  6.   oUF:SetActiveStyle("oUF_Lumen:"..frame:gsub("^%l", string.upper))
  7.   oUF:Spawn(frame, "oUF_Lumen"..frame:gsub("^%l", string.upper))
  8. end

https://github.com/greven/oUF_lumen/...layer.lua#L521
__________________
My oUF Layout: oUF Lumen
Report comment to moderator  
Reply With Quote
Unread 09-16-16, 06:37 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1542
File comments: 1210
Uploads: 30
Originally Posted by neverg
Hi p3lim,

Found another bug that didn't happen before this commits.

When entering the world, the reputation bar doesn't show up.
Need to go to Blizzard reputations to disable and enable again.

Didn't happen before so I guess it's a regression bug.
Are you using the factory in oUF to spawn your frames?
Report comment to moderator  
Reply With Quote
Unread 09-16-16, 02:42 AM  
neverg
A Frostmaul Preserver
 
neverg's Avatar
AddOn Author - Click to view AddOns

Forum posts: 254
File comments: 382
Uploads: 8
Hi p3lim,

Found another bug that didn't happen before this commits.

When entering the world, the reputation bar doesn't show up.
Need to go to Blizzard reputations to disable and enable again.

Didn't happen before so I guess it's a regression bug.
__________________
My oUF Layout: oUF Lumen
Report comment to moderator  
Reply With Quote
Unread 09-15-16, 11:51 AM  
neverg
A Frostmaul Preserver
 
neverg's Avatar
AddOn Author - Click to view AddOns

Forum posts: 254
File comments: 382
Uploads: 8
Originally Posted by p3lim
Try out the new version on GitHub, be aware of this commit though:
https://github.com/p3lim-wow/oUF_Rep...bfec1b395ac927
Working fine now, p3lim.

Thanks a lot for the quick fix. <3
__________________
My oUF Layout: oUF Lumen
Last edited by neverg : 09-15-16 at 11:55 AM.
Report comment to moderator  
Reply With Quote
Unread 09-15-16, 06:49 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1542
File comments: 1210
Uploads: 30
Originally Posted by p3lim
Originally Posted by neverg
Originally Posted by p3lim
Originally Posted by neverg
P3lim, you using this right now? I integrated oUF_Reputation and Experience into my oUF Layout, Experience is working fine, but Reputation doesn't update after rep gain.
I see that too, but there is only one event that I know, which it's currently using.
Ye, I went to check the events, can only find UPDATE_FACTION the one you are using.

This is probably a bug in Blizzard's side. Need to test with the default UI to see what happens.

Thanks, was trying to find out if I was the only one getting the behaviour. I'll report on my findings.
Looking into it now, it seems the bar gets updated just fine, it's just the tags that don't update for some reason.

Edit: found out why in one case, I'll see if that would solve things.
Try out the new version on GitHub, be aware of this commit though:
https://github.com/p3lim-wow/oUF_Rep...bfec1b395ac927
Report comment to moderator  
Reply With Quote
Unread 09-15-16, 04:05 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1542
File comments: 1210
Uploads: 30
Originally Posted by neverg
Originally Posted by p3lim
Originally Posted by neverg
P3lim, you using this right now? I integrated oUF_Reputation and Experience into my oUF Layout, Experience is working fine, but Reputation doesn't update after rep gain.
I see that too, but there is only one event that I know, which it's currently using.
Ye, I went to check the events, can only find UPDATE_FACTION the one you are using.

This is probably a bug in Blizzard's side. Need to test with the default UI to see what happens.

Thanks, was trying to find out if I was the only one getting the behaviour. I'll report on my findings.
Looking into it now, it seems the bar gets updated just fine, it's just the tags that don't update for some reason.

Edit: found out why in one case, I'll see if that would solve things.
Last edited by p3lim : 09-15-16 at 04:21 AM.
Report comment to moderator  
Reply With Quote
Unread 09-15-16, 03:36 AM  
neverg
A Frostmaul Preserver
 
neverg's Avatar
AddOn Author - Click to view AddOns

Forum posts: 254
File comments: 382
Uploads: 8
Originally Posted by p3lim
Originally Posted by neverg
P3lim, you using this right now? I integrated oUF_Reputation and Experience into my oUF Layout, Experience is working fine, but Reputation doesn't update after rep gain.
I see that too, but there is only one event that I know, which it's currently using.
Ye, I went to check the events, can only find UPDATE_FACTION the one you are using.

This is probably a bug in Blizzard's side. Need to test with the default UI to see what happens.

Thanks, was trying to find out if I was the only one getting the behaviour. I'll report on my findings.
__________________
My oUF Layout: oUF Lumen
Report comment to moderator  
Reply With Quote
Unread 09-14-16, 05:13 PM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1542
File comments: 1210
Uploads: 30
Originally Posted by neverg
P3lim, you using this right now? I integrated oUF_Reputation and Experience into my oUF Layout, Experience is working fine, but Reputation doesn't update after rep gain.
I see that too, but there is only one event that I know, which it's currently using.
Report comment to moderator  
Reply With Quote
Unread 09-14-16, 01:45 PM  
neverg
A Frostmaul Preserver
 
neverg's Avatar
AddOn Author - Click to view AddOns

Forum posts: 254
File comments: 382
Uploads: 8
P3lim, you using this right now? I integrated oUF_Reputation and Experience into my oUF Layout, Experience is working fine, but Reputation doesn't update after rep gain.
__________________
My oUF Layout: oUF Lumen
Last edited by neverg : 09-14-16 at 01:46 PM.
Report comment to moderator  
Reply With Quote
Unread 08-30-12, 06:38 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1542
File comments: 1210
Uploads: 30
When updating to 50001.8-Release, keep in mind that you will need oUF 1.6 for this plug-in to work!
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: 648
File comments: 206
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.
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: 1542
File comments: 1210
Uploads: 30
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.
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: 648
File comments: 206
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.
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: 1542
File comments: 1210
Uploads: 30
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.
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.