Download
(5Kb)
Download
Updated: 02-22-22 12:04 PM
Addon for:
oUF.
Compatibility:
Eternity's End (9.2.0)
Updated:02-22-22 12:04 PM
Created:12-27-08 12:29 AM
Downloads:21,786
Favorites:88
MD5:

oUF Reputation  Popular! (More than 5000 hits)

Version: 90200.22-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 90200.22-Release:
  • Changed: Update Interface version
Archived Files (2)
File Name
Version
Size
Author
Date
90105.21-Release
5kB
p3lim
11-03-21 12:18 PM
90100.20-Release
5kB
p3lim
07-01-21 12:08 AM


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: 268
File comments: 498
Uploads: 2
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: 268
File comments: 498
Uploads: 2
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: 1710
File comments: 1222
Uploads: 43
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: 268
File comments: 498
Uploads: 2
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: 268
File comments: 498
Uploads: 2
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: 1710
File comments: 1222
Uploads: 43
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: 1710
File comments: 1222
Uploads: 43
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: 268
File comments: 498
Uploads: 2
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: 1710
File comments: 1222
Uploads: 43
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: 268
File comments: 498
Uploads: 2
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: 1710
File comments: 1222
Uploads: 43
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: 204
Uploads: 4
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: 1710
File comments: 1222
Uploads: 43
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: 204
Uploads: 4
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: 1710
File comments: 1222
Uploads: 43
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.