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 08-09-09, 07:22 AM  
karmamuscle
A Cobalt Mageweaver
 
karmamuscle's Avatar
AddOn Author - Click to view AddOns

Forum posts: 205
File comments: 173
Uploads: 1
ahh sorry then
Report comment to moderator  
Reply With Quote
Unread 08-09-09, 04:04 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 ckramme
Got this error just now.
I have bugsack, oUF, oUF_Caellian and oUF_Reputation loaded.
Code:
[2009/08/09 08:16:50-2-x1]: oUF_Reputation-30200.1-Beta\oUF_Reputation.lua:55: Usage: oUF_Caellian_player_Reputation:HookScript("type", function)
oUF_Reputation-30200.1-Beta\oUF_Reputation.lua:55: in function `enable'
oUF-1.3.16\ouf.lua:431: in function `EnableElement'
oUF-1.3.16\ouf.lua:278: in function <Interface\AddOns\oUF\ouf.lua:231>
oUF-1.3.16\ouf.lua:296: in function <Interface\AddOns\oUF\ouf.lua:293>
oUF-1.3.16\ouf.lua:346: in function `Spawn'
oUF_Caellian\oUF_cMain.lua:1034: in main chunk
Edit: Spelling
Thats a layout error
Report comment to moderator  
Reply With Quote
Unread 08-09-09, 12:19 AM  
karmamuscle
A Cobalt Mageweaver
 
karmamuscle's Avatar
AddOn Author - Click to view AddOns

Forum posts: 205
File comments: 173
Uploads: 1
Got this error just now.
I have bugsack, oUF, oUF_Caellian and oUF_Reputation loaded.
Code:
[2009/08/09 08:16:50-2-x1]: oUF_Reputation-30200.1-Beta\oUF_Reputation.lua:55: Usage: oUF_Caellian_player_Reputation:HookScript("type", function)
oUF_Reputation-30200.1-Beta\oUF_Reputation.lua:55: in function `enable'
oUF-1.3.16\ouf.lua:431: in function `EnableElement'
oUF-1.3.16\ouf.lua:278: in function <Interface\AddOns\oUF\ouf.lua:231>
oUF-1.3.16\ouf.lua:296: in function <Interface\AddOns\oUF\ouf.lua:293>
oUF-1.3.16\ouf.lua:346: in function `Spawn'
oUF_Caellian\oUF_cMain.lua:1034: in main chunk
Edit: Spelling
Last edited by karmamuscle : 08-09-09 at 12:20 AM.
Report comment to moderator  
Reply With Quote
Unread 08-08-09, 09:32 AM  
MoonWitch
A Firelord
AddOn Author - Click to view AddOns

Forum posts: 455
File comments: 162
Uploads: 9
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".
I'm backing P3lim as well here. He's painfully helpful, but doesn't sugarcoat things. He says it like it is.

Which brings me to : Thanks man - for the mouseover "hack" ya posted :P
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
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-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 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 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-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-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, 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-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-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-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
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.