GithubHelp home page GithubHelp logo

ansi / adibuttonauras Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adiaddons/adibuttonauras

0.0 1.0 0.0 472 KB

WoW addon - Display auras on action buttons.

License: GNU General Public License v3.0

adibuttonauras's Introduction

AdiButtonAuras

Display auras on action buttons.

AdiButtonAuras is a rewrite of Inline Aura, but different design decisions based on my experience with Inline Aura.

Features

Separate button overlays

A separate button overlay is created for each button, with border texture, texts and glowing animation.

Pro: avoid tainting the action buttons, thus causing ADDON_BLOCKED errors. There is also no need to hook various methods to re-apply the state after the stock UI modified them.

Con: this is not compatible with Masque or third-party action buttons.

Hard-coded rules

The rules are hard-coded using a pretty simple Domain Specific Language built on top of Lua.

Each rules specifies the spells to modify, the units and events to watch and one or more handlers. Several rules about the same spell are merged together, or thrown if the character doesn’t know the spell.

Each time one of the event is triggered for one of the unit, the handlers are called to update the state of the associated button.

A set of convenient functions are provided to easily configure most spells. If a more specific task is needed, Lua can be used (see interrupt spells).

Pro: far more powerful than the Inline Aura engine. This allows to show data from one unit merged with the stat of another one, if need be.

Con: there is no way to configure this using a GUI.

No auto-discovery

AdiButtonAuras only shows data for existing rules. It does not try to guess what to show.

Pro: avoid showing wrong data.

Con: all spells for all class should be listed.

Using spell ids instead of spell names

AdiButtonAuras uses the spell numerical identifiers, instead of its name, to search for the applicable rules.

Pro: avoid showing information on a wrong spell that as the same name as the intended one.

Con: spells ids are sometimes different depending on shapeshift forms, glyphs or talents. All of them should be listed.

States of the rules par class and specialization

  • Druid:
    • Balance: 5.4 untested
    • Feral Combat: 5.4 untested
    • Guardian: 5.4 untested
    • Restoration: 5.4
  • Hunter
    • Beast Master: 5.4 untested
    • Marksmanship: 5.4
    • Survival: 5.4
  • Monk
    • Brewmaster: 5.4
    • Mistweaver: 5.4 untested
    • Windwalker: 5.4
  • Warlock
    • Affliction: 5.4 untested
    • Demonology: 5.4 untested
    • Destruction: 5.4

License

AdiButtonAuras is licensed using the GPL v3.

adibuttonauras's People

Contributors

adirelle avatar

Watchers

 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.