Giter Site home page Giter Site logo

ouf_progress's Introduction

oUF Progress

Description

oUF Progress is an element for the unitframe framework oUF inspired by the progress bars of Dominos. It requires an oUF layout that supports it.

ouf_progress

Features

  • five different display modes that you can switch between with a left mouse click
    • artifact
    • azerite
    • experience
    • honor
    • reputation
  • OnMouseUp handlers per mode (left click is reserved for mode switching)
    • artifact toggles the Artifact UI
    • azerite toggles the Azerite Essence UI
    • honor toggles the PvP UI
    • reputation toggles the reputation tab of the character panel
  • tags ([progress:missing][ ($>progress:reps<$)] is the current default)
    • [progress:delta] - shows the last gain/loss for the currently displayed mode
    • [progress:missing] - shows the amount needed to reach the next standing for the currently displayed mode
    • [progress:reps] - shows the amount of repetitions needed to reach the next standing for the currently displayed mode
  • custom visibility conditions per mode
    • artifact - artifact equipped or not
    • azerite - Hearth of Azeroth equipped or not
    • experience - level-up, hitting the max level for the current expansion or toggling xp gains
    • honor - honor level-up or entering a pvp zone like a battleground
    • reputation - watched faction change
  • tooltip support per mode

Layout support

This is a minimal example of how to support this element in your oUF layout

-- self is the unitframe for the player unit
local progress = CreateFrame('StatusBar', nil, self)
progress:SetSize(120, 20)
progress:SetPoint('TOPLEFT', self, 'BOTTOMLEFT', 0, 0)

progress:EnableMouse(true)

local infoText = progress:CreateFontString(nil, 'OVERLAY')
infoText:SetPoint('CENTER')
progress.infoText = infoText

self.Progress = progress

For further customization see docs/customization.

Issues

If you have any problems, feel free to open an issue at Github.

License

Please see the LICENSE file.

ouf_progress's People

Contributors

rainrider avatar

Watchers

 avatar  avatar

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.