• World of Warcraft Addons
  • World of Warcraft
  • Average Rating:

  • Your Rating

  • Share
  • Report Abuse

CustomButtons

 
Project Updated:
Files Updated: Tue, Jan 5 2010
Supports Game Version: 3.3.0
Category: Action Bars, Bags & Inventory, and Buffs & Debuffs
Tags:

[Edit Tags]

Project Manager: Nirriti
Additional Authors: No additional authors
Current Version: CustomButtons 1.22
License: GNU General Public License version 3 (GPLv3)
Development Site: CurseForge.com
Avg Daily DL (last 30 days): 11
Downloads Total: 2,486
Favorites: 8
Comments: 19
  • About CustomButtons
  •  

Create your custom buttons for casts, items, equipmentsets or macros!

todo:
  • skinning
  • key bindings

CustomButtons

Erzeuge deine eigenen Schaltflächen

/cb oder /custombuttons können als Slashcommands verwendet werden:

  • '/cb new' erzeugt einen neuen leeren Button
  • einfach per drag'n'drop ein Item aus einer Tasche oder einen Zauber aus dem Zauberbuch oder ein Makro auf den Button ziehen
  • mit [ctrl] + Rechte Maustaste kann der Button beliebig verschoben werden
  • '/cb scale #' ändert die Größe des Buttons
  • '/cb alpha #' ändert die Transparenz des Buttons
  • Maus über den Button und dann '/cb delete' entfernt den Button
  • Indikator für zu große Entfernung und zu wenig Mana/Wut/etc...
  • Ausgegraute Schaltfläche, wenn kein Item in der Tasche ist
  • Schaltflächen werden versteckt, wenn ein Zauber nicht verfügbar ist (z.B. aufgrund eines Talentwechsels)
  • Es können beliebig viele Buttons erzeugt werden
  • Buttons werden je Character gespeichert
  • Bei Items kann angezeigt werden, wieviele in der Tasche sind. Die Anzeige kann mit /cb toggle count an oder abgeschaltet werden
  • Es können Zauber, Gegenstände, Sets des Ausrüstungsmanagers oder Makros verwendet werden.

Create your custom buttons for casts or items

use /cb or /custombuttons as slashcommands:

  • '/cb new' creates a new empty button
  • use drag'n'drop to add an item from your bags oder any cast or macro you want
  • press [ctrl] + right mousebutton to move the button
  • use '/cb scale #' to resize the button
  • use '/cb alpha #' to change the transparency of the button
  • mouse over and '/cb delete' removes the button
  • range indicator and indicator for out of mana/etc.
  • greyed button, when the mapped item is not in the bag
  • buttons are hidden, when a spell is not available (e.g. due to talent switch)
  • you can create as many buttons as you want
  • buttons are saver per character
  • with items you can show how many you have in your bags. You can toggle this with /cb toggle count
  • use spells, items, equipmentsets or macros

Befehle / Commands

/cb new
  • erzeugt einen neuen leeren Button
  • creates a new empty button
/cb delete
  • entfernt den Button unter der Maus
  • removes the button under the mouse
[ctrl] + Rechte Maustaste ([ctrl] + right mouse button)
  • verschiebt den Button
  • moves the button
/cb scale #
  • ändert die Größe des Buttons
  • resizes the button

Gültige Werte/valid values: 0.1 - 4.0

Beispiele:

(Werte sind ungefähre Angaben, abhängig von der Bildschirmauflösung)

  • /cb scale 1 -> Size: 20px * 20px (default)
  • /cb scale 1.5 -> Size: 30px * 30px
  • /cb scale 2 -> Size: 40px * 40px
  • /cb scale 0.75 -> Size: 15px * 15px
/cb alpha #
  • ändert die Transparenz des Buttons
  • changes the transparency of the button

Gültige Werte/valid values: 0 - 1

Beispiele:

  • /cb alpha 1 -> nicht transparent/no transparency (default)
  • /cb alpha 0.5
  • /cb alpha 0 -> unsichtbar/not visible (but still at the same position)
/cb toggle count
  • schaltet die Anzeige der Anzahl an oder ab
  • toggles the item count
  • Downloads (7)
  •  
File Name Release Type Game Version Downloads Date
Addon Curse.com Beta 2.3.3 0 9/29/2008
  File Name Release Type Game Version Downloads Date  
  CustomButtons 1.22 Release 3.3.0 408 1/5/2010
  CustomButtons 1.21 Release 3.3.0 100 1/3/2010
  CustomButtons 1.20 Release 3.3.0 116 12/28/2009
  CustomButtons 1.19 Release 3.3.0 43 12/27/2009
  CustomButtons 1.18 Release 3.3.0 110 12/21/2009
  • Screenshots (1)
  •  
  • Comments

Add Comment

Add

You need to login or register to post.

Benefits of Registration

  • Interact with hundreds of thousands of other gamers on an open social network.
  • Post your stories, news, images, videos, and other content to share.
  • Create a network with your fellow gamers or join an existing one.
  • Gain reputation for everything you do.
  • AthNub said

    A big thank you for a wonderful and useful addon.

    Two questions:
    Is there a way to make global cooldowns show on the buttons and if there is a /castsequence or conditional modifier macro bound to buttons, can the buttons be ade to show the spell being cast?

    Reply Report Permalink
  • it would be nice if mounts and vanity pets could be added to these buttons then i could scale them small so they wouldnt take up too much space

    Reply Report Permalink
  • Please please, work on keybindings first. This mod would be perfect for how I play, but I just need keybindings. <3

    Reply Report Permalink
  • Is there any way to add a key binding to the new buttons?

    Reply Report Permalink
  • kdw112 said

    hello.
    Useful addon thx.

    have taint error. plz fix this error.
    Have a nice day~!
    ------
    An action was blocked in combat because of taint from CustomButtons - CustomButtonsButton6:Show()Interface\AddOns\CustomButtons\CustomButtons.lua:434 CustomButtons_UpdateUsable()
    Interface\AddOns\CustomButtons\CustomButtons.lua:363 CustomButtons_OnUpdate()
    CustomButtonsButton6:OnUpdate()
    An action was blocked in combat because of taint from CustomButtons - CustomButtonsButton7:Show()
    Interface\AddOns\CustomButtons\CustomButtons.lua:434 CustomButtons_UpdateUsable()
    Interface\AddOns\CustomButtons\CustomButtons.lua:363 CustomButtons_OnUpdate()
    CustomButtonsButton7:OnUpdate()
    An action was blocked in combat because of taint from CustomButtons - CustomButtonsButton8:Show()
    Interface\AddOns\CustomButtons\CustomButtons.lua:434 CustomButtons_UpdateUsable()
    Interface\AddOns\CustomButtons\CustomButtons.lua:363 CustomButtons_OnUpdate()
    CustomButtonsButton8:OnUpdate()
    An action was blocked in combat because of taint from CustomButtons - CustomButtonsButton4:Show()
    Interface\AddOns\CustomButtons\CustomButtons.lua:434 CustomButtons_UpdateUsable()
    Interface\AddOns\CustomButtons\CustomButtons.lua:363 CustomButtons_OnUpdate()
    CustomButtonsButton4:OnUpdate()
    An action was blocked in combat because of taint from CustomButtons - CustomButtonsButton6:Show()

    Reply Report Permalink
  • Nirriti said

    please update... problem is solved since 11. Dezember 2009

    Reply Report Permalink
  • kdw112 said

    I'm weak at English. sorry.

    this error on version 1.22
    wtf delete => retry test => error

    ---- baud error frame message ----
    CustomButtons blocked from using CustomButtonsButton2:Show()
    Count: 99

    Call Stack:
    [C]: in function `Show'
    Interface\AddOns\CustomButtons\CustomButtons.lua:434: in function `CustomButtons_UpdateUsable'
    Interface\AddOns\CustomButtons\CustomButtons.lua:363: in function `CustomButtons_OnUpdate'
    [string "*:OnUpdate"]:1: in function <[string "*:OnUpdate"]:1>

    Have a nide day~!

    Reply Report Permalink
  • Nirriti said

    ah, ok, i see the problem

    Reply Report Permalink
  • nveber said

    I am using this to put a small shield slam and revenge icon in the middle of the screen so I know when they are ready to be used (not on cooldown) without looking all the way down to the action bars. It works pretty well, but I think it would look better if the buttons didnt have the border around them. Is there any way to add an option to turn off the borders?

    Ideally the buttons would also disappear when the ability can't be used (due to cooldown or not enough rage), but thats probably too much to ask :P

    Reply Report Permalink
  • Flodding said

    Hi! Exactly what Im looking 4 all the time!!
    Testet a little around with it an I have to say very nice...
    Im using bartender4 to container makros on the left side of my screen to show how much emblems i got already...

    like this:

    #show Emblem des Frosts

    in bartender4 it shows me the count of it, but when im using ur empty buttons, nothing is displayed... no tooltip and no count...

    would be very nice if this could be fixed :)

    Best wishes...

    Floddy (EU-Tirion)

    Reply Report Permalink
  • Nirriti said

    i'll have a look

    Reply Report Permalink
  • There are a few changes you could make in your _UpdateUsable() method that may help with this. You are missing macro text, consumable spell counts (spells that need reagents), and consumable item counts (charges remaining).

    local counttext = _G[self:GetName().."Count"];

    -- For Macros
    local name, iconTexture, body = GetMacroInfo(macro);
    counttext:SetText(name);

    -- For Spells
    if (IsConsumableSpell(spell)) then
    local spellCount = GetSpellCount(spell);
    if ( isUsable ) and (spellCount == 0) then
    -- Some glyph or talent must have changed this to non-consumable spell
    counttext:SetText("");
    else
    counttext:SetText(spellCount);
    end
    else
    counttext:SetText("");
    end

    -- For consumable items, use the 3 parameter GetItemCount
    local count = GetItemCount(item, nil, true);
    if (IsConsumableItem(item)) then
    counttext:SetText(count);
    else
    counttext:SetText("");
    end

    Reply Report Permalink
  • I'm borrowing a portion of your addon for my addon (which I will not shamefully plug)... So let me help you out with some improvements I've made... Not a very good messaging system here so, I'll do one a post...

    -- Your code caused a never ending loop resulting in an LUA error sometimes
    function CustomButtons_FindSpellId(spellname, spellrank)
    local _, _, _, numSpells = GetSpellTabInfo(BOOKTYPE_SPELL);
    for i=1, numSpells do
    local spell, rank = GetSpellName(i, BOOKTYPE_SPELL);
    if (spell) and (spellname == spell) then
    if ((spellrank) and (spellrank == rank)) or (not spellrank) then
    return i;
    end
    end
    end
    return nil;
    end

    Reply Report Permalink
  • Nirriti said

    it's done! :-))

    Reply Report Permalink
  • Correction to the code in the original post...
    function CustomButtons_FindSpellId(spellname, spellrank)
    local spellCount = 0
    for i = 1, MAX_SKILLLINE_TABS do
    local name, texture, offset, numSpells = GetSpellTabInfo(i);
    if not name then
    break;
    end
    spellCount = spellCount + numSpells;
    end
    for i=1, spellCount do
    local spell, rank = GetSpellName(i, BOOKTYPE_SPELL);
    if (spell) and (spellname == spell) then
    if ((spellrank) and (spellrank == rank)) or (not spellrank) then
    return i;
    end
    end
    end
    return nil;
    end

    Reply Report Permalink
  • Note: my code may look a little different because I do not use that global variable for the "selected button".

    Reply Report Permalink
  • -- And your item code in CustomButtons_UpdateUsable
    local count = GetItemCount(item);
    local name, _, _, _, _, _, _, itemStackCount = GetItemInfo(item);

    if (count == 0) then
    normalTexture:SetVertexColor(0.3, 0.3, 0.3);
    pushedTexture:SetVertexColor(0.3, 0.3, 0.3);
    else
    normalTexture:SetVertexColor(1.0, 1.0, 1.0);
    pushedTexture:SetVertexColor(1.0, 1.0, 1.0);
    end

    local counttext = _G[self:GetName().."Count"];

    if (CustomButtonsConfig.ShowCount == 0 or count == 0 or (itemStackCount == 1)) then
    counttext:SetText("");
    else
    counttext:SetText(count);
    end
    end

    Reply Report Permalink
  • Your item tooltips kinda suck, try this code out...

    local count = GetItemCount(item);
    local itemName, itemLink = GetItemInfo(item);

    -- Look for inventory item that have a "use", update the itemLink if found
    InventorySlotNames = { "HeadSlot", "NeckSlot", "ShoulderSlot",
    "BackSlot", "ChestSlot", "ShirtSlot", "TabardSlot", "WristSlot",
    "HandsSlot", "WaistSlot", "LegsSlot", "FeetSlot", "Finger0Slot",
    "Finger1Slot", "Trinket0Slot", "Trinket1Slot", "MainHandSlot",
    "SecondaryHandSlot", "RangedSlot", "AmmoSlot" };

    for index, slotName in pairs(InventorySlotNames) do
    local slotId, textureName = GetInventorySlotInfo(slotName);
    local itemLinkCheck = GetInventoryItemLink("player", slotId)
    if (itemName and itemLinkCheck) then
    local found = string.find(itemLinkCheck, itemName);
    if (found) then
    itemLink = itemLinkCheck;
    end
    end
    end

    GameTooltip_SetDefaultAnchor(GameTooltip, button);

    if (itemLink) then
    GameTooltip:SetHyperlink(itemLink);
    end

    Reply Report Permalink
  • mabricius said

    A problem:

    /cb is a reserved command now, it means CampoBatalla (batleground) so it acant be user anymore in spanish locales

    Reply Report Permalink
  • Nirriti said

    use /custombuttons instead of /cb as slashcommand to use CustomButtons.

    Reply Report Permalink
  • Addon Packs Containing CustomButtons

Most Downloads / Day

CustomButtons has not been added to any Addon Packs yet.

  • Similar Addons
  •  

Average downloads per day

  1. 11,397 HealBot Continued Unit Frames, Buffs & Debuffs...
  2. 2,406 Dominos Action Bars
  3. 2,324 ForteXorcist Buffs & Debuffs, Class, Combat...
  4. 1,547 PallyPower Buffs & Debuffs, and Paladin
  5. 1,528 Altoholic Guild, Bags & Inventory, Mail...