Showing results 1 to 25 of 500
Search took 0.06 seconds.
Search: Posts Made By: Phanx
Forum: oUF (Otravi Unit Frames) Yesterday, 12:08 AM
Replies: 3
Views: 641
Posted By Phanx
I assume the original code read: local party =...

I assume the original code read:


local party = oUF:SpawnHeader('oUF_Party', nil, 'custom [grouparty,nogroup:raid][@raid6,noexists,group:raid] show;hide',
--local party =...
Forum: oUF (Otravi Unit Frames) 08-30-14, 06:59 PM
Replies: 3
Views: 641
Posted By Phanx
Assuming the layout uses :SpawnHeader to create...

Assuming the layout uses :SpawnHeader to create the party frames, just change the value of the "sortOrder" attribute from "INDEX" to "NAME" or add it with that value if it doesn't exist, eg.

local...
Forum: Site help, bugs, suggestions/questions 08-29-14, 11:50 AM
Replies: 7
Views: 954
Posted By Phanx
Shouldn't you be able to avoid that by loading...

Shouldn't you be able to avoid that by loading the script asynchronously?
Forum: Lua/XML Help 08-28-14, 05:41 PM
Replies: 7
Views: 980
Posted By Phanx
XML is painfully verbose and ugly,...

XML is painfully verbose and ugly, but....


<Frame name="MyFrame">
<Frames>
<Frame parentKey="Hide">
<!-- some stuff here -->
</Frame>
</Frames>
</Frame>
Forum: Lua/XML Help 08-28-14, 12:17 PM
Replies: 3
Views: 388
Posted By Phanx
Maybe. It wouldn't work the way described in the...

Maybe. It wouldn't work the way described in the OP, though, as there's just no way to make custom slash commands perform secure actions, and it still wouldn't help with targeting a specific NPC when...
Forum: AddOn Help/Support 08-28-14, 12:14 PM
Replies: 22
Views: 1,277
Posted By Phanx
Well, I don't know which Grid plugin you're using...

Well, I don't know which Grid plugin you're using to show raid target icons, but just open it up in Notepad, and check the file path it's using for the icon files. If it explicitly specifies the .blp...
Forum: Lua/XML Help 08-28-14, 07:39 AM
Replies: 3
Views: 388
Posted By Phanx
The general idea would be possible, but you would...

The general idea would be possible, but you would not be able to set, unset, or change the target while in combat. The addon "Battleground Targets" may be of some use as an example.

However, the...
Forum: AddOn Help/Support 08-27-14, 06:29 AM
Replies: 6
Views: 644
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,251
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: 22
Views: 1,277
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: 644
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,251
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: 565
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,251
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,251
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,251
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,251
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,411
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,251
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,411
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: 40
Views: 4,912
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: 708
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: 8,082
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: 708
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,592
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...
Showing results 1 to 25 of 500