Giter VIP home page Giter VIP logo

ouf_experience's Introduction

oUF Experience

This is an addon for the popular MMORPG "World of Warcraft".
It can be downloaded at one of the following sites:

Description

oUF Experience 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:

  • Experience/honor bar.
  • Rested bar (optional).
  • Tags.
  • Automatically hides under certain conditions:
    • Player has reached max level.
    • Player has locked their experience gain.
    • Player has reached trial account level cap.
    • Player is in a vehicle.
    • Player has disabled honor-tracking.
    • Player has reached max honor level.

For details on how to implement this in your own layout, please see the wiki:
https://github.com/p3lim-wow/oUF_Experience/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.

ouf_experience's People

Contributors

github-actions[bot] avatar manriel avatar p3lim avatar rainrider avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

pedrozc90

ouf_experience's Issues

Issue [experience:per] and [experience:perrested]

I've never properly took the time to understand how oUF tags work, but I've run into an issue with [experience:per] and [experience:perrested].

I'm running latest oUF:master, and oUF_Experience:master

I've worked around the issue for now, by replacing [experience:per] with:

['experience:per'] = function(unit)
    local cur = (IsWatchingHonorAsXP() and UnitHonor or UnitXP) ('player')
    local max = (IsWatchingHonorAsXP() and UnitHonorMax or UnitXPMax) ('player')
    return math.floor(cur / max * 100 + 0.5)
end,

Am I doing something wrong?

Stack:

Message: ...\sInterface\embeds\oUF_Experience\oUF_Experience.lua:13: attempt to call field 'curxp' (a nil value)
Time: 04/23/17 22:03:09
Count: 1
Stack: ...\sInterface\embeds\oUF_Experience\oUF_Experience.lua:13: in function `?'
...rface\AddOns\sInterface\embeds\oUF\elements\tags.lua:641: in function `UpdateTag'
...rface\AddOns\sInterface\embeds\oUF\elements\tags.lua:472: in function `func'
Interface\AddOns\sInterface\embeds\oUF\ouf.lua:159: in function <Interface\AddOns\sInterface\embeds\oUF\ouf.lua:148>
(tail call): ?

Locals: unit = "player"
(*temporary) = <function> defined =[C]:-1
(*temporary) = nil
(*temporary) = "player"
(*temporary) = "attempt to call field 'curxp' (a nil value)"

Backdrop doesn't hide when in a Vehicle

I think I've reported this issue on WoWInterface, but better to report it where it matters. :)

When in a vehicle the backdrop (if you have one of course) doesn't hide.

Before the vehicle: http://cl.ly/3F3y/content

In the Vehicle: http://cl.ly/3FWk/content

I've set the backdrop to the Rested Frame.

I fixed it in the post update, but I think it's worth it to open the issue anyway:

-- Experience Bar Pre Update
local ExperiencePreUpdate = function (Experience, unit, min, max)

    if unit == 'vehicle' then
        Experience.Rested:SetBackdropColor(cfg.bdc.r,cfg.bdc.g,cfg.bdc.b,0)
    else
        Experience.Rested:SetBackdropColor(cfg.bdc.r,cfg.bdc.g,cfg.bdc.b,cfg.bdc.a)
    end
end

Issue with Exp bar in unitframe

oUF 8.0.0
Exp 80000.24
oUF_Drk r30

Turning off the exp bar goes away turning it on gives the following error - not sure if this is oUF or the way the Exp bar is embedded.

8x ...Ons\oUF_Drk\embeds\oUF_Experience\oUF_Experience.lua:162: Usage: :SetAlpha(alpha 0 to 1)
[C]: in function SetAlpha' ...Ons\oUF_Drk\embeds\oUF_Experience\oUF_Experience.lua:162: in function <...Ons\oUF_Drk\embeds\oUF_Experience\oUF_Experience.lua:150> ...Ons\oUF_Drk\embeds\oUF_Experience\oUF_Experience.lua:195: in function <...Ons\oUF_Drk\embeds\oUF_Experience\oUF_Experience.lua:182> (tail call): ? oUF\ouf-8.0.0.lua:211: in function <oUF\ouf.lua:200> (tail call): ? [C]: in function Show'
FrameXML\SecureStateDriver.lua:83: in function <FrameXML\SecureStateDriver.lua:73>
FrameXML\SecureStateDriver.lua:137: in function <FrameXML\SecureStateDriver.lua:119>

Locals:
(*temporary) = {
__owner = oUF_DrkPlayerFrame {
}
ForceUpdate = defined @oUF_Drk\embeds\oUF_Experience\oUF_Experience.lua:205
restedAlpha = 0.15
__accountMaxLevel = 110
Text = {
}
Rested = {
}
0 =
}
(*temporary) = nil

OverrideUpdateColor called on wrong frame?

Line 95 in oUF_Experience.lua currently says:
(self.OverrideUpdateColor or UpdateColor)(element, showHonor)

Shouldn't it be:
(element.OverrideUpdateColor or UpdateColor)(element, showHonor)

?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.