Showing results 1 to 25 of 500
Search took 0.15 seconds.
Search: Posts Made By: Phanx
Forum: AddOn Help/Support Yesterday, 06:29 AM
Replies: 6
Views: 583
Posted By Phanx
Here, I've even documented all the functions on...

Here, I've even documented all the functions on Wowpedia for you. :p


C_MountJournal.Dismiss (http://wowpedia.org/API_C_MountJournal.Dismiss)
C_MountJournal.GetCollectedFilterSetting...
Forum: Lua/XML Help 08-26-14, 09:29 PM
Replies: 25
Views: 1,172
Posted By Phanx
No. Altering the metatables of Blizzard UI object...

No. Altering the metatables of Blizzard UI object types is not recommended. Also, I'm not sure I see any benefit in that particular example -- dynamically adding and removing event-handling methods...
Forum: AddOn Help/Support 08-26-14, 09:22 PM
Replies: 7
Views: 359
Posted By Phanx
The icon files need to go in the path where the...

The icon files need to go in the path where the addon is looking for them:

"Interface\\TargetingFrame\\UI-RaidTargetingIcon_"..raidicon)

This means that you need to create a "TargetingFrame" folder...
Forum: AddOn Help/Support 08-26-14, 09:17 PM
Replies: 6
Views: 583
Posted By Phanx
The mount journal isn't a mess at all. It's...

The mount journal isn't a mess at all. It's certainly far better than the pet journal disaster. :p
Forum: Lua/XML Help 08-25-14, 07:16 PM
Replies: 25
Views: 1,172
Posted By Phanx
No, which is why if you want to add those...

No, which is why if you want to add those features, you should use method names that are different than the names of the default methods that do not support those features. This seems pretty...
Forum: Site help, bugs, suggestions/questions 08-25-14, 05:32 PM
Replies: 1
Views: 411
Posted By Phanx
Searchable comments have been requested many...

Searchable comments have been requested many times over the years; at this point I doubt it will ever happen.

You can increase the number of posts per page in your settings. Hover over your name at...
Forum: Lua/XML Help 08-25-14, 05:22 PM
Replies: 25
Views: 1,172
Posted By Phanx
So... either use the normal Frame event/script...

So... either use the normal Frame event/script system, or name your method something else? Still not seeing how this is leading to using a default API method name for your own custom method is in any...
Forum: Lua/XML Help 08-25-14, 02:50 PM
Replies: 25
Views: 1,172
Posted By Phanx
But why are you giving your custom methods the...

But why are you giving your custom methods the same names as default methods in the first place? This is just as bad an idea as naming a table table or naming a local function tostring -- there's...
Forum: Lua/XML Help 08-25-14, 11:42 AM
Replies: 25
Views: 1,172
Posted By Phanx
But why would you do that? There are literally...

But why would you do that? There are literally infinite options for naming your methods. It's not any more difficult to avoid overwriting a frame's default SetScript method than it is to avoid...
Forum: Lua/XML Help 08-25-14, 09:01 AM
Replies: 25
Views: 1,172
Posted By Phanx
I'm not sure how, since the key names are 100%...

I'm not sure how, since the key names are 100% under your control. It's not like you're forced to give two methods the same name...
Forum: oUF (Otravi Unit Frames) 08-25-14, 02:50 AM
Replies: 13
Views: 1,035
Posted By Phanx
Well, function calls are still effectively...

Well, function calls are still effectively instant in terms of human perception, it's just that they're significantly slower than everything else you can do in Lua, such as looking up values in...
Forum: Lua/XML Help 08-25-14, 12:01 AM
Replies: 25
Views: 1,172
Posted By Phanx
That code is incomplete, as you didn't actually...

That code is incomplete, as you didn't actually tell the frame what to do in response to events. Also:

- There's no need to use separate functions for the two events, as you want to do the same...
Forum: oUF (Otravi Unit Frames) 08-24-14, 11:29 PM
Replies: 13
Views: 1,035
Posted By Phanx
Your current method: local spec =...

Your current method:


local spec = GetSpecialization()
local _, playerClass = UnitClass("PLAYER")
local isCaster
local function cbCheck()
-- stuff here
end
Forum: WoD Beta Addons 08-24-14, 12:19 AM
Replies: 30
Views: 3,832
Posted By Phanx
"X tried to call the protected function Y" errors...

"X tried to call the protected function Y" errors are not meant to be taken literally. (Well, maybe Blizzard intended for them to be taken literally, but if so they royally botched the...
Forum: WoD Beta AddOn Help & Feedback 08-24-14, 12:12 AM
Replies: 8
Views: 673
Posted By Phanx
Well, I can't help you with that, as I don't use...

Well, I can't help you with that, as I don't use Duffed UI nor any oUF layouts/plugins that resemble Grid. You may want to edit your thread title to include the correct addon names, so people who use...
Forum: News 08-23-14, 03:23 PM
Replies: 16
Views: 7,547
Posted By Phanx
As per the actual thread for this topic...

As per the actual thread for this topic (http://www.wowinterface.com/forums/showthread.php?t=49472) (which isn't the one you're posting in) tracking numbers up to 173 have been sent to Blizzard as of...
Forum: WoD Beta AddOn Help & Feedback 08-23-14, 03:13 PM
Replies: 8
Views: 673
Posted By Phanx
The option I mentioned is a new option in the...

The option I mentioned is a new option in the game itself. It's not provided by an addon. It's Blizzard's attempt at replacing addons like OmniCC, but it has a pretty big design flaw, in that in...
Forum: General Authoring Discussion 08-23-14, 01:56 PM
Replies: 16
Views: 1,152
Posted By Phanx
Reminds me of the time in middle school when my...

Reminds me of the time in middle school when my mom threw my Sega Genesis out the back door. It landed on the grass though. :p

Anyway, you'll probably find that many "how to write addons" resources...
Forum: WoD Beta AddOn Help & Feedback 08-23-14, 01:38 PM
Replies: 8
Views: 673
Posted By Phanx
Do you have the new "show numbers on cooldown"...

Do you have the new "show numbers on cooldown" option enabled? I think it's in the Display section, but in any case, if it's enabled, then cooldown graphics are no longer displayed.
Forum: AddOn Help/Support 08-23-14, 08:01 AM
Replies: 9
Views: 1,137
Posted By Phanx
No, it will only work out of combat, since it's...

No, it will only work out of combat, since it's not possible for an addon to move a secure frame while in combat. If you're working with a frame that Blizzard code moves while in combat, then you'll...
Forum: Site help, bugs, suggestions/questions 08-22-14, 02:46 PM
Replies: 10
Views: 1,467
Posted By Phanx
I use the following with Modernizr and jQuery to...

I use the following with Modernizr and jQuery to fix hover dropdowns on several sites I manage:


if (Modernizr.touch) {
$('#menu [aria-haspopup] > a').attr('href', '#');
}


The top-level links are...
Forum: AddOn Help/Support 08-22-14, 02:37 PM
Replies: 9
Views: 1,137
Posted By Phanx
That line causes the taint, but the taint does...

That line causes the taint, but the taint does not be come a problem until it gets in the way of an action like moving a secure frame in combat or calling a protected function that cannot be done...
Forum: Lua/XML Help 08-22-14, 02:23 PM
Replies: 2
Views: 230
Posted By Phanx
You may want to look over the Things...

You may want to look over the Things addons/macros can't do (http://www.wowinterface.com/forums/showthread.php?t=42367) sticky thread. Addons cannot know the exact position of any units other than...
Forum: Macro Help 08-22-14, 02:19 PM
Replies: 1
Views: 854
Posted By Phanx
A few problems with your code that should be...

A few problems with your code that should be raising errors in-game:


You misspelled "EditMacro" as "EditMarco".
You're referring to a variable "index" which you don't define anywhere.


Other...
Forum: Lua/XML Help 08-22-14, 05:57 AM
Replies: 5
Views: 500
Posted By Phanx
Haste, Tekkub, Industrial, Adirelle, Rabbit, Ammo...

Haste, Tekkub, Industrial, Adirelle, Rabbit, Ammo all generally write good clean code, and obviously I'd recommend myself as well. :P Stick to smaller addons for general examples, as they'll be...
Showing results 1 to 25 of 500