Description:
This is a plug-in for oUF, so in order to make this plug-in work, you would need to download that.
You can find a link under the big download button to the right.
This is a plug-in to show a simple xp bar with oUF.
Features:
Can display a bar and text representing your experience.
If player is at max level the bar cluster is hidden
Note:
To use this in your oUF layout you will need a Experience member on your oUF unit object (self)
Example code:
if(unit == 'player') then
self.Experience = CreateFrame('StatusBar', nil, self)
self.Experience:SetPoint('TOP', self, 'BOTTOM', 0, -10)
self.Experience:SetStatusBarTexture(texture)
self.Experience:SetStatusBarColor(0, 1, 0)
self.Experience:SetHeight(11)
self.Experience:SetWidth(230)
end
This will place your xp bar below the player frame (as seen on picture)
You can also add things like a value text on it, like this
self.Experience.text = self.Experience:CreateFontString(nil, 'OVERLAY')
self.Experience.text:SetPoint('CENTER', self.Experience)
self.Experience.text:SetFontObject(GameFontNormalSmall)
self.Experience.text:SetTextColor(1, 1, 1)
self.Experience.text:SetJustifyH('LEFT')
This will place a value text above the xp bar (also shown on pic)
Todo:
Add rested xp bar
Add tooltip
Add pet xp bar |
|