Coder Social home page Coder Social logo

candy's Introduction

Candy

Candy bars for DataBroker modules in World of Warcraft.

Description

Do you find big DataBroker panels slightly too sturdy or would you fancy something small on the side as well? Introducing Candy for your candybar sized DataBroker modules.

Candy adds singular customizable displays for DataBroker modules.

  • The bars are small and freely movable to wherever you need them, making highly customized layout simple for any interface.
  • Visibility of the bars can be automatically toggled based on group status, instance status, modifier keys and custom callbacks.
  • The DataBroker output text can also be modified with custom callbacks.

Custom callbacks

Custom callbacks are simple calls to Lua functions.

Text callback function receives one parameter: text. It expects a new string (text or number allowed) as return that will be used for display.

Example:

return string.reverse(text);

Visibility callback function receives two parameters: text (with color information stripped) and icon. It expects a boolean or nil as return (true is visible).

Examples:

return UnitLevel("player") == GetMaxPlayerLevel();
local durability = tonumber(strmatch(text, "(%d+)")) or 0; return durability <= 50;

Usage

To begin using Candy you need to create the bars. You can do that by opening the options menu by typing /candy or /cd.

Editing per-bar settings is only possible when bars are unlocked. When they are unlocked you can move bar with left mouse button and open options drop down menu with right mouse button. Global settings that apply to all bars at once can be changed from the main options window.

Dependencies

Candy uses Ace3, LibDataBroker, LibFlyPaper and LibSharedMedia which are included in the /libs directory.

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.