Quantcast WoWInterface - Search Results
Showing results 1 to 25 of 500
Search took 0.04 seconds.
Search: Posts Made By: Phanx
Forum: AddOn Search/Requests 02-07-16, 10:34 AM
Replies: 4
Views: 871
Posted By Phanx
While you're doing cleanup, you may as well go a...

While you're doing cleanup, you may as well go a little further and remove some inefficiencies that might make sense in the context of a space-limited macro, but don't make sense in an addon. The...
Forum: General Authoring Discussion 02-07-16, 10:12 AM
Replies: 5
Views: 1,058
Posted By Phanx
Those return values are incorrect. GetAddOnInfo's...

Those return values are incorrect. GetAddOnInfo's return values changed with the release of WoD, and the enabled return was moved to a different function:


local CHARACTER = UnitName("player")
for i...
Forum: Lua/XML Help 02-07-16, 08:51 AM
Replies: 1
Views: 393
Posted By Phanx
https://github.com/Phanx/BetterBattlePetTooltip/bl...

https://github.com/Phanx/BetterBattlePetTooltip/blob/master/Data.lua
Forum: Lua/XML Help 02-07-16, 08:50 AM
Replies: 4
Views: 599
Posted By Phanx
#1 - No. #2 - Depending on your goal, you could...

#1 - No.

#2 - Depending on your goal, you could try using SetTextHeight (http://wowprogramming.com/docs/widgets/FontString/SetTextHeight) instead of SetFont. However, it may be better in the long...
Forum: AddOn Help/Support 01-17-16, 07:02 PM
Replies: 1
Views: 448
Posted By Phanx
You can listen for GROUP_ROSTER_UPDATE events....

You can listen for GROUP_ROSTER_UPDATE events. Keep track of the group state in a variable outside of your event handler. When the group changes, figure out if your actual group state changed (the...
Forum: Macro Help 01-17-16, 06:57 PM
Replies: 1
Views: 545
Posted By Phanx
I'm pretty sure that joining a battleground queue...

I'm pretty sure that joining a battleground queue requires a hardware event, so an addon can't do it for you. You have to physically press a key or click a button.

If you just want a macro that you...
Forum: AddOn Search/Requests 01-12-16, 06:33 AM
Replies: 2
Views: 987
Posted By Phanx
Well, I'm not sure your idea would actually solve...

Well, I'm not sure your idea would actually solve the problem (people who don't read the LFM message before asking for an invite aren't much more likely to read a whisper), but it wouldn't be...
Forum: AddOn Help/Support 01-12-16, 06:13 AM
Replies: 20
Views: 2,163
Posted By Phanx
I don't see anything obviously problematic in...

I don't see anything obviously problematic in that code snippet. Can you be more specific about the problem?


What do you expect to see, and when/where do you expect to see it?
What do you...
Forum: General Authoring Discussion 01-12-16, 06:06 AM
Replies: 2
Views: 757
Posted By Phanx
Well, for deleting, that event sequence looks...

Well, for deleting, that event sequence looks pretty straightforward:

1. When you see DELETE_ITEM_CONFIRM, store the name in a temporary variable.
2. When you see ITEM_LOCK_CHANGED, get info about...
Forum: Lua/XML Help 01-12-16, 05:50 AM
Replies: 17
Views: 3,104
Posted By Phanx
BNGetFriendInfoByID...

BNGetFriendInfoByID (http://wow.gamepedia.com/API_BNGetFriendInfoByID) gives all the same info as BNGetFriendInfo, but takes a presenceID (which is somewhere in the message args) instead of an index.
Forum: AddOn Help/Support 01-01-16, 01:52 AM
Replies: 4
Views: 757
Posted By Phanx
Show your code.

Show your code.
Forum: AddOn Help/Support 12-27-15, 02:56 PM
Replies: 4
Views: 757
Posted By Phanx
If you want to show the whole number, just pass...

If you want to show the whole number, just pass the return value from UnitHealth (or whatever tagging-language-specific function gives you a unit's health) without any shortening or digit grouping...
Forum: AddOn Help/Support 12-27-15, 02:50 PM
Replies: 2
Views: 666
Posted By Phanx
local hp = HP(unit) local perc = hp /...

local hp = HP(unit)
local perc = hp / MaxHP(unit)

return "|cff%s%s",
perc <= 0.35 and "ff0000"
or perc <= 0.75 and "ffa500"
or "00ff00",
UnitIsPlayer(unit) and hp or Short(hp, true)
Forum: Legion Beta General Discussion 12-27-15, 02:43 PM
Replies: 4
Views: 3,381
Posted By Phanx
Nameplate frames are already protected, but as...

Nameplate frames are already protected, but as with all protected frames, it's only the frame itself you can't resize/move/etc. in combat. You can (and will still be able to) change the size of its...
Forum: Lua/XML Help 12-16-15, 01:22 AM
Replies: 2
Views: 909
Posted By Phanx
Just use "type" without any numbers, asterisks,...

Just use "type" without any numbers, asterisks, or modifiers.


local button = CreateFrame("Button", "MyAwesomeMountButton", nil, "SecureActionButtonTemplate")
button:SetAttribute("type",...
Forum: Lua/XML Help 12-09-15, 12:02 AM
Replies: 5
Views: 1,348
Posted By Phanx
Unless you really love XML and already have a...

Unless you really love XML and already have a workflow set up for writing XML (which it doesn't sound like you do) there's really no reason to use XML in a WoW addon (outside of a few specific...
Forum: AddOn Search/Requests 12-04-15, 12:13 AM
Replies: 3
Views: 1,458
Posted By Phanx
There is no such addon because no such addon is...

There is no such addon because no such addon is possible. You can't enable/disable action buttons based on conditions other than those that are available in macros, and the only way to "enable" or...
Forum: Lua/XML Help 12-04-15, 12:07 AM
Replies: 10
Views: 1,907
Posted By Phanx
Never done anything with the proc glow stuff, and...

Never done anything with the proc glow stuff, and don't really care about it (I generally dislike animations of any kind in a UI) but you might take a look at this...
Forum: General Authoring Discussion 11-30-15, 11:46 PM
Replies: 12
Views: 2,778
Posted By Phanx
Use a per-char saved variable instead of...

Use a per-char saved variable instead of disabling the addon. Delay everything your addon does until its ADDON_LOADED event fires. When the event fires, check the saved variable. If it doesn't exist,...
Forum: Lua/XML Help 11-30-15, 11:42 PM
Replies: 10
Views: 1,907
Posted By Phanx
Your post is not very clear, and I don't really...

Your post is not very clear, and I don't really know what you're asking for.

Do you want to change an existing addon? If so, which addon?

Do you want to write a new addon? If so, does it affect...
Forum: AddOn Help/Support 11-26-15, 07:43 AM
Replies: 5
Views: 1,676
Posted By Phanx
Prat also uses AceDB (unless that's changed...

Prat also uses AceDB (unless that's changed recently) so emulating its profiles probably won't work correctly either.



I don't know enough about Reflux to answer that question. If "ignore" removes...
Forum: AddOn Help/Support 11-26-15, 07:36 AM
Replies: 4
Views: 1,514
Posted By Phanx
The Blizzard UI always shows the names of macros...

The Blizzard UI always shows the names of macros on its action bars, and doesn't have an option to hide them. If you don't see macro names, one of these is true:

(a) You're not using the Blizzard...
Forum: AddOn Help/Support 11-26-15, 07:27 AM
Replies: 2
Views: 1,228
Posted By Phanx
Comparison tooltips are a feature of the default...

Comparison tooltips are a feature of the default UI. Hold Shift while mousing over an item to see them. If you don't see them while holding Shift, either you have an addon disabling them (get rid of...
Forum: General Authoring Discussion 11-22-15, 04:37 PM
Replies: 4
Views: 1,355
Posted By Phanx
Really it depends on the actual addons in...

Really it depends on the actual addons in question, but in general I'd say you should:

1. Fix the existing addon for yourself first.

2. Then, once you have a reasonable idea how WoW addons work,...
Forum: Tech Chat 11-22-15, 01:45 PM
Replies: 670
Views: 280,024
Posted By Phanx
Doesn't it annoy you having so many non-running...

Doesn't it annoy you having so many non-running programs shown on your taskbar? :(
Showing results 1 to 25 of 500