1. #10061
    Quote Originally Posted by Speedtrax View Post
    Added it and gave me the following error.
    You need return values for the colours. Try:
    Code:
    local _power_name = UnitPowerType(unit)
    local r,g,b = PowerColor(power_name)
    local max = MaxPower(unit)
    if Power(unit) == max then
    if max > 0 then
        return "|cff%02x%02x%02x%s", r,g,b,Short(Power(unit),true)
      else
        return "|cff%02x%02x%02x%s|r / |cff%02x%02x%02x%s", r,g,b,Short(Power(unit),true),r,g,b,Short(max,true)
      end
    end
    Last edited by Khadjid; 2012-03-29 at 01:33 PM.

  2. #10062
    Got rid of the errors, but doesn't display at all. It displayed at first, but not as the powercolor. Then I proceeded to cast a spell to see if it would update it just disappeared.

    Edit: It displays only at 100% mana but not as the powercolor.
    This is the original code, maybe you can see it's function. I only wanted to add powercolor to it

    Code:
    local max = MaxPower(unit)
    if max > 0 then
      if Power(unit) == max then
        return "%s", Short(Power(unit),true)
      else
        return "%s / %s",Short(Power(unit),true),Short(max,true)
      end
    end
    Last edited by Speedtrax; 2012-03-29 at 01:50 PM.

  3. #10063
    Think I fixed it. It only showed at 100% mana because you had switched position of the if's. And PowerColor requires the power name, but you returned the number id of the power.
    Code:
    local _,power_name = UnitPowerType(unit)
    local r,g,b = PowerColor(power_name)
    local max = MaxPower(unit)
    if max > 0 then
    if Power(unit) == max then
        return "|cff%02x%02x%02x%s", r,g,b,Short(Power(unit),true)
      else
        return "|cff%02x%02x%02x%s|r / |cff%02x%02x%02x%s", r,g,b,Short(Power(unit),true),r,g,b,Short(max,true)
      end
    end
    Last edited by Khadjid; 2012-03-29 at 02:17 PM.

  4. #10064
    That fixed it, thanks again for saving me!
    <3

  5. #10065
    Hey,

    I have run across a the SetBindingMacro() command and was interested in using this. However if you want to bind a macro with this, you also need up a macro slot. And since I've recently ran out of those, I was wondering if you could bind Macro Commands directly to keys.

    I'm aware of existing addons that can increase your macro slots capacity, but I'm not really interested in using one of those.

    Also would be greatly appreciated if these binds would be stored server-side.

    TL;DR: how do I bind macro commands, directly to keys without using macro slots.

    Thanks!

    EDIT:

    I've tried making my own commands using an addon and creating bindings.xml.

    I guess I can achieve it this way, but I don't think I'll be able to cast spell this way, since everything is protected.

  6. #10066
    Quote Originally Posted by Tune View Post
    Anyone?(
    Does this look adequate?
    http://www.wowinterface.com/download...89-Aurora.html

    It just skins blizzard's windows too look transparent like that. If you're looking for a UI that's completely modular like TukUI, those are hard to come by, maybe LUI and that texture pack?
    Rabsies
    <The Horsemen> US25 - Shadowmoon US - 14/14 25H
    "Just play the game"
    _________________________________________
    CPU: i5 2500k @3.3Ghz; GPU: MSi GTX560Ti Twin Frozr II
    RAM: 8GB 1600Mhz Corsair Vengeance; MB: MSi Z68-G45 G3

  7. #10067
    Field Marshal Bendixs's Avatar
    Join Date
    Sep 2010
    Location
    Danmark
    Posts
    52

    Dominos

    Anyone had this problem befor with dominos?

    I cant seem to find a way to get the background away


  8. #10068
    Quote Originally Posted by Hoaxeh View Post
    Hey,

    I have run across a the SetBindingMacro() command and was interested in using this. However if you want to bind a macro with this, you also need up a macro slot. And since I've recently ran out of those, I was wondering if you could bind Macro Commands directly to keys.

    I'm aware of existing addons that can increase your macro slots capacity, but I'm not really interested in using one of those.

    Also would be greatly appreciated if these binds would be stored server-side.

    TL;DR: how do I bind macro commands, directly to keys without using macro slots.

    Thanks!

    EDIT:

    I've tried making my own commands using an addon and creating bindings.xml.

    I guess I can achieve it this way, but I don't think I'll be able to cast spell this way, since everything is protected.

    This is what I've came up with:
    Code:
    local btn = CreateFrame("Button", "macro1", UIParent, "SecureActionButtonTemplate");
    btn:SetAttribute("type", "macro");
    btn:SetAttribute("macrotext", "/say bye \n/cast hearthstone");
    And I bind this using:
    Code:
    /run SetBindingClick("KEY","macro1")

  9. #10069


    Anyone know why theres a text overlay? It comes up when somebody makes something or when I gain rep, Using ElvUI

  10. #10070
    Your chat windows hasn't been placed properly. go through the install procedure again.

  11. #10071
    What do you mean It hasn't been placed properly?

  12. #10072
    Quote Originally Posted by Xozat View Post
    What do you mean It hasn't been placed properly?
    It means there are two chat windows on top of eachother. Try installing the UI again (assuming it's Tuk or Elv) or try to hunt the chat tab down and manually dock it with your other tabs.

  13. #10073
    I am configuring a new ui with Shadowed Unit Frames and have run into a little problem. When I target units without power (rage, mana, energy, etc..) such as the target dummy or a city guard the power bar juts out like another 50 pixels past the edge of the unit frame. Does anyone know how to fix this or to make the bar disappear when the unit has no power?

  14. #10074
    Scarab Lord Djinni's Avatar
    Join Date
    May 2009
    Location
    Washington DC, USA
    Posts
    4,213
    Hey, wondering what this is:



    Outlined with a red box.

    On a right click I get these options:
    Last edited by Treeston; 2012-04-03 at 01:06 PM.
    ... On the hunt for a new laptop ...

  15. #10075
    Looks like a blizzard UI thing...though I have never seen that myself...the way it looks...is exactly like blizz shit.

  16. #10076
    I believe it's the built-in voicecom "software".
    I have no clue how to use it tho.
    My Priest
    (my old paladin)Bályn <Reunion> - Silvermoon EU

  17. #10077
    What does /fstack bring up when you mouseover the frame?

    Gershuun @ Borean Tundra US - Interface & Macros Moderator

  18. #10078
    My Priest
    (my old paladin)Bályn <Reunion> - Silvermoon EU

  19. #10079
    Scarab Lord Djinni's Avatar
    Join Date
    May 2009
    Location
    Washington DC, USA
    Posts
    4,213
    Hmm... I just "X"'d it and it hasn't come back yet... after a relog and reload...

    But i'm running the 64bit client anyway, so the voice chat wouldn't work even if I was to use it?
    ... On the hunt for a new laptop ...

  20. #10080
    Quote Originally Posted by Djinni View Post
    Hey, wondering what this is:
    Is seemingly a list of those in the same wow voice chat channel as yourself.
    It can be trigged accidentally by a keybind, which I have been unable to find described, nor could I find in the keybinding UI.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •