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,787
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 12-27-08, 02:18 AM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar

Forum posts: 281
File comments: 252
Uploads: 5
It could be me not being awake yet or doing something wrong but i've had 2 issues.

1. login on a level 80 the bar is shown, even if mouseover is activated, i have to mouseover it once for it to behave normally.

2. login on a non level 80 gave me this:
Code:
Interface\AddOns\oUF_Reputation\oUF_Reputation.lua:25: attempt to index local 'bar' (a nil value)
Count: 1

Call Stack:
[C]: ?
Interface\AddOns\oUF_Reputation\oUF_Reputation.lua:25: in function `func'
Interface\AddOns\oUF\ouf.lua:423: in function <Interface\AddOns\oUF\ouf.lua:418>
[C]: in function `Show'
Interface\FrameXML\SecureStateDriver.lua:72: in function <Interface\FrameXML\SecureStateDriver.lua:62>
Interface\FrameXML\SecureStateDriver.lua:109: in function <Interface\FrameXML\SecureStateDriver.lua:79>
__________________
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }
Report comment to moderator  
Reply With Quote
Unread 12-27-08, 02:23 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1710
File comments: 1222
Uploads: 43
My fault, sorry
Will upload a fix right away.
Report comment to moderator  
Reply With Quote
Unread 01-09-09, 02:36 AM  
contramundi
A Chromatic Dragonspawn
 
contramundi's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 180
File comments: 79
Uploads: 2
sorry for being a complete noob here, but i found oUF and it looks really great, so i browsed for layouts and i found the hypocrisy one.... so far so good. I know how to disable/enable stuff in the .lua and how to place the elements on screen.

However:

Note:
Read the documentation inside the lua file for usage. --> can't find any documentation inside the lua. or do you mean the coding on top in brackets?
You need to add this addon to your layout's toc metadata! --> i guess i need to add this addon to the (in this case) Hipocrisy layout? or do i need to add it to the toc from oUF itself? (and what lines of code do i need to use for it?)

Dunno if there's a full documentation on how to use/change/add stuff in oUF somewhere? I believe there was one on the old wowace.com wiki's but most of them dissapeared after they made a new site. Even their new forums are a bit crappy i think.

anyways keep up the good work your doing here on WOWI

Greetz,

CM
Last edited by contramundi : 01-09-09 at 02:38 AM.
Report comment to moderator  
Reply With Quote
Unread 01-09-09, 09:29 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 contramundi
sorry for being a complete noob here, but i found oUF and it looks really great, so i browsed for layouts and i found the hypocrisy one.... so far so good. I know how to disable/enable stuff in the .lua and how to place the elements on screen.

However:

Note:
Read the documentation inside the lua file for usage. --> can't find any documentation inside the lua. or do you mean the coding on top in brackets?
You need to add this addon to your layout's toc metadata! --> i guess i need to add this addon to the (in this case) Hipocrisy layout? or do i need to add it to the toc from oUF itself? (and what lines of code do i need to use for it?)

Dunno if there's a full documentation on how to use/change/add stuff in oUF somewhere? I believe there was one on the old wowace.com wiki's but most of them dissapeared after they made a new site. Even their new forums are a bit crappy i think.

anyways keep up the good work your doing here on WOWI

Greetz,

CM
oUF is not for the average end user, and it will continue to be treated so.
There is no documentation on oUF, and there most likely wont be neither.

The documentation inside the file (in the brackets on top) is basically all you need to know about this element plug-in.

My description clearly says its for the layout toc file, not the oUF core.
You will need to add it as OptionalDeps, more info on what it is and what it does here.

Also, there is no need to sign posts/comments.
Report comment to moderator  
Reply With Quote
Unread 01-09-09, 11:07 AM  
contramundi
A Chromatic Dragonspawn
 
contramundi's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 180
File comments: 79
Uploads: 2
wow, your kind of bitchy in your replies. I was just asking for a tiny bit of help. Seeing as i'm neither a average end game user who only modifies existing UI's a tiny bit to get them as what they like, but neither am i a lua coder, my knowledge is still very limited.

but thanks for your reply and i already know for sure that asking your advise or help isn't needed because you wouldn't give it anyways.

GREETZ,

Contramundi


p.s. i always sign my comments, dunno what the problem is with that
Last edited by contramundi : 01-09-09 at 11:09 AM.
Report comment to moderator  
Reply With Quote
Unread 01-09-09, 11:41 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 contramundi
wow, your kind of bitchy in your replies. I was just asking for a tiny bit of help. Seeing as i'm neither a average end game user who only modifies existing UI's a tiny bit to get them as what they like, but neither am i a lua coder, my knowledge is still very limited.

but thanks for your reply and i already know for sure that asking your advise or help isn't needed because you wouldn't give it anyways.

GREETZ,

Contramundi


p.s. i always sign my comments, dunno what the problem is with that
Keep your nerdrage off this site, I gave you a straight up answer, which you asked for.
oUF is not designed for the average user, treat it as is.
Report comment to moderator  
Reply With Quote
Unread 01-13-09, 02:19 PM  
Quokka
A Chromatic Dragonspawn
 
Quokka's Avatar
AddOn Author - Click to view AddOns

Forum posts: 196
File comments: 239
Uploads: 15
color

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
Report comment to moderator  
Reply With Quote
Unread 01-14-09, 01:34 PM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1710
File comments: 1222
Uploads: 43
Re: color

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
Gonna work a bit with this plug-in today to make it better, like i did with oUF Experience last night
Report comment to moderator  
Reply With Quote
Unread 01-14-09, 01:47 PM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar

Forum posts: 281
File comments: 252
Uploads: 5
Originally posted by contramundi
and i already know for sure that asking your advise or help isn't needed because you wouldn't give it anyways.
Oh man you're so wrong about that, countless are those p3lim helped and not just once...

Unfortunately you are asking for something that's clearly stated on every single plugin description page, so basically "read before posting".
__________________
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }
Last edited by Caellian : 01-14-09 at 01:47 PM.
Report comment to moderator  
Reply With Quote
Unread 01-14-09, 02:54 PM  
Quokka
A Chromatic Dragonspawn
 
Quokka's Avatar
AddOn Author - Click to view AddOns

Forum posts: 196
File comments: 239
Uploads: 15
Originally posted by Caellian
Oh man you're so wrong about that, countless are those p3lim helped and not just once...

Unfortunately you are asking for something that's clearly stated on every single plugin description page, so basically "read before posting".
This I can backup. P3lim is and was a great help, like a lot off people here
Report comment to moderator  
Reply With Quote
Unread 01-15-09, 06:26 AM  
Luzzifus
A Warpwood Thunder Caller
 
Luzzifus's Avatar
AddOn Author - Click to view AddOns

Forum posts: 94
File comments: 237
Uploads: 6
Hi,

I've got a little question concerning overriding the reputation bar text, since I can't get this to work.

First I made that function according to your code, like this:

Code:
local function RepOverrideText(min, max, value, name, id)
...
end
Then I registered it in my reputation bar block:

Code:
self.Reputation.OverrideText = RepOverrideText
Now I tried to modify the text in that function:

Code:
self.Reputation.Text:SetFormattedText('%d / %d', value - min, max - min)
That obviously doesn't work since "self" is not a parameter to that function. Also your Update-Function doesn't seem to handle any return value. So how can I actually change the bars text without accessing it via "self.Reputation" or a "bar" parameter?

Thanks in advance!

**edit:

I managed to do what I wanted via using the PostUpdate function (btw. you forgot the "self" parameter to this function in the description part of your code):

Code:
local function RepOverrideText(self, event, unit, bar, min, max, value, name, id)
	self.Reputation.Text:SetFormattedText('%d / %d', value - min, max - min)
end
Still I'd like to know how it's supposed to be done with OverrideText.
Last edited by Luzzifus : 01-15-09 at 06:46 AM.
Report comment to moderator  
Reply With Quote
Unread 01-15-09, 09:57 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 Luzzifus
Hi,

I've got a little question concerning overriding the reputation bar text, since I can't get this to work.

First I made that function according to your code, like this:

Code:
local function RepOverrideText(min, max, value, name, id)
...
end
Then I registered it in my reputation bar block:

Code:
self.Reputation.OverrideText = RepOverrideText
Now I tried to modify the text in that function:

Code:
self.Reputation.Text:SetFormattedText('%d / %d', value - min, max - min)
That obviously doesn't work since "self" is not a parameter to that function. Also your Update-Function doesn't seem to handle any return value. So how can I actually change the bars text without accessing it via "self.Reputation" or a "bar" parameter?

Thanks in advance!

**edit:

I managed to do what I wanted via using the PostUpdate function (btw. you forgot the "self" parameter to this function in the description part of your code):

Code:
local function RepOverrideText(self, event, unit, bar, min, max, value, name, id)
	self.Reputation.Text:SetFormattedText('%d / %d', value - min, max - min)
end
Still I'd like to know how it's supposed to be done with OverrideText.
I didnt 'forget' the self argument, its always default in a normal api having an own function behind it.

Its called as oUF:OverrideText() and the first argument when using : is always self, even tho its not listed.
If it were oUF.OverrideText() there would be a different matter.

Your finished product, the last example you showed, is the right way to do it.
Though instead of using self.Reputation.Text you can use bar.Text
Last edited by p3lim : 01-15-09 at 09:58 AM.
Report comment to moderator  
Reply With Quote
Unread 08-04-09, 02:47 PM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1710
File comments: 1222
Uploads: 43
Ive had it with updating the mouseover mess that was requested, so i removed it from my code.

If you want to add it to your layout, follow this:
Mouseover + tooltip
Code:
self.Reputation:HookScript('OnEnter', function(self) self:SetAlpha(1) end)
self.Reputation:HookScript('OnLeave', function(self) self:SetAlpha(0) end)
Just mouseover:
Follow the above code, but use :SetScript instead of :HookScript

Want to customize your tooltip?
Use API's like normal people!
Report comment to moderator  
Reply With Quote
Unread 08-04-09, 04:15 PM  
dr_AllCOM3
A Cyclonian
 
dr_AllCOM3's Avatar
AddOn Author - Click to view AddOns

Forum posts: 40
File comments: 275
Uploads: 11
Originally posted by p3lim
If you want to add it to your layout, follow this:
Mouseover + tooltip
Doesn't work
Report comment to moderator  
Reply With Quote
Unread 08-05-09, 11:05 AM  
Icerat
A Fallenroot Satyr

Forum posts: 28
File comments: 46
Uploads: 0
Didnt work for me either how can i fix?

Originally posted by p3lim
Ive had it with updating the mouseover mess that was requested, so i removed it from my code.

If you want to add it to your layout, follow this:
Mouseover + tooltip
Code:
self.Reputation:HookScript('OnEnter', function(self) self:SetAlpha(1) end)
self.Reputation:HookScript('OnLeave', function(self) self:SetAlpha(0) end)
Just mouseover:
Follow the above code, but use :SetScript instead of :HookScript

Want to customize your tooltip?
Use API's like normal people!
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.