Showing results 1 to 25 of 500
Search took 0.08 seconds.
Search: Posts Made By: Torhal
Forum: Lua/XML Help 07-16-14, 12:09 PM
Replies: 17
Views: 761
Posted By Torhal
It's also wasteful if used often: It's creating a...

It's also wasteful if used often: It's creating a new table AND anonymous function every time it's called. I typically just copy the keys from the dictionary-style table to an index-style table and...
Forum: AddOn Search/Requests 07-10-14, 10:28 AM
Replies: 13
Views: 697
Posted By Torhal
Indeed. You should...

Indeed.

You should replace:


getglobal(X)

with

_G[X]
Forum: Lua/XML Help 06-08-14, 06:00 PM
Replies: 15
Views: 914
Posted By Torhal
Have you consulted this guide...

Have you consulted this guide (http://forums.wowace.com/showthread.php?t=15763)?
Forum: AddOn Search/Requests 05-16-14, 02:56 PM
Replies: 23
Views: 1,654
Posted By Torhal
What's the URL? :D

What's the URL? :D
Forum: Lua/XML Help 05-02-14, 08:26 PM
Replies: 7
Views: 514
Posted By Torhal
There's also the additional caveat that...

There's also the additional caveat that SetPortraitToTexture requires the image to be BLP format. I almost lost my mind one evening over that little tidbit.

EDIT: This is what I get for skimming -...
Forum: Lua/XML Help 04-27-14, 04:54 PM
Replies: 17
Views: 954
Posted By Torhal
Ah, hadn't thought of that scenario.

Ah, hadn't thought of that scenario.
Forum: Lua/XML Help 04-25-14, 10:59 PM
Replies: 17
Views: 954
Posted By Torhal
Module is a table, not a WoW API Frame object....

Module is a table, not a WoW API Frame object. Lua tables have no notion of RegisterEvent or UnregisterEvent.
Forum: Carbonite: Bug Reports - Beta Release Version 04-09-14, 11:58 AM
Replies: 11
Views: 1,035
Posted By Torhal
It's also worth noting that many AddOns share...

It's also worth noting that many AddOns share libraries, and if an AddOn has an error which propagates to one of those libraries, the first AddOn to load it will be blamed.
Forum: Lua/XML Help 01-25-14, 07:54 PM
Replies: 9
Views: 1,116
Posted By Torhal
1: The pairs function returns the key/value pairs...

1: The pairs function returns the key/value pairs from a table. The "unitSpecific" refers to a variable which is holding the value for that particular key/value entry in the loop. It could very well...
Forum: General Authoring Discussion 01-23-14, 04:52 PM
Replies: 16
Views: 1,039
Posted By Torhal
The table.getn method was actually deprecated in...

The table.getn method was actually deprecated in Lua 5.1 in favor of the unary length operator (#). You should also be using pairs for dictionary-style tables. For array-style tables, you can use...
Forum: Lua/XML Help 01-22-14, 11:35 PM
Replies: 8
Views: 600
Posted By Torhal
It's a good way to build the table, if nothing...

It's a good way to build the table, if nothing else: Save your scans to SavedVariables, for spells which do not already exist in the table.
Forum: General Authoring Discussion 01-20-14, 05:46 PM
Replies: 13
Views: 1,050
Posted By Torhal
What is this "AceLib" you speak of? At first I...

What is this "AceLib" you speak of? At first I thought you were referencing "AceLibrary-2.0" but he's clearly using Ace3 which uses LibStub instead...:D
Forum: Lua/XML Help 01-08-14, 05:52 PM
Replies: 5
Views: 944
Posted By Torhal
It depends on the event(s), really. Safer to just...

It depends on the event(s), really. Safer to just assume they're all unreliable.
Forum: Lua/XML Help 01-08-14, 05:50 PM
Replies: 1
Views: 375
Posted By Torhal
Phanx already handled this on the WoWAce forums...

Phanx already handled this on the WoWAce forums in this thread (http://forums.wowace.com/showthread.php?p=328235#post328235).
Forum: General Authoring Discussion 12-07-13, 05:16 PM
Replies: 8
Views: 1,230
Posted By Torhal
That can be fun, though!

That can be fun, though!
Forum: General Authoring Discussion 12-07-13, 01:20 AM
Replies: 8
Views: 1,230
Posted By Torhal
Go to bed. For the weekend. THEN look at code....

Go to bed. For the weekend. THEN look at code. Bleargh!
Forum: Chit-Chat 11-24-13, 02:10 AM
Replies: 23
Views: 2,875
Posted By Torhal
Ok. Seriously, now. Am I actually supposed to...

Ok. Seriously, now. Am I actually supposed to believe that Phanx is an actual human being?

Yes, yes, I know I "met her" at BlizzCon, but really...I wasn't fooled. That person was simply an agent.
Forum: AddOn Search/Requests 11-22-13, 11:01 AM
Replies: 1
Views: 461
Posted By Torhal
You're probably thinking of TradeSkillInfo...

You're probably thinking of TradeSkillInfo (http://www.wowinterface.com/downloads/info5473-TradeSkillInfo.html).
Forum: AddOn Help/Support 11-18-13, 08:07 AM
Replies: 4
Views: 672
Posted By Torhal
Instead of downloading the UI source, you can...

Instead of downloading the UI source, you can also start WoW in console mode (add -console to the shortcut under Windows or directly from the commandline if starting under OSX) and, at the login...
Forum: Lua/XML Help 11-15-13, 01:08 PM
Replies: 16
Views: 1,335
Posted By Torhal
He's right.

He's right.
Forum: Chit-Chat 11-05-13, 06:41 PM
Replies: 28
Views: 4,354
Posted By Torhal
This is actually the first survey I've ever...

This is actually the first survey I've ever filled out; after the first few questions, I usually bail because they're extremely leading and/or biased. Very well done!
Forum: AddOn Search/Requests 11-05-13, 04:18 PM
Replies: 6
Views: 1,236
Posted By Torhal
WoW does not support GIF files.

WoW does not support GIF files.
Forum: AddOn Search/Requests 11-02-13, 12:00 PM
Replies: 6
Views: 791
Posted By Torhal
Bazooka...

Bazooka (http://www.wowinterface.com/downloads/info14767-Bazooka.html) is what I use.
Forum: oUF (Otravi Unit Frames) 10-22-13, 09:29 AM
Replies: 10
Views: 1,279
Posted By Torhal
Or, if you want a more concise syntax: local...

Or, if you want a more concise syntax:

local PowerBarColor = {
MANA = { r = 0.00, g = 0.00, b = 1.00 },
RAGE = { r = 1.00, g = 0.00, b = 0.00 },
FOCUS = { r = 1.00, g = 0.50, b = 0.25 },
ENERGY...
Forum: AddOn Search/Requests 10-21-13, 03:37 PM
Replies: 26
Views: 2,643
Posted By Torhal
All that site does is link to WoWInterface; since...

All that site does is link to WoWInterface; since the page no longer exists here, it simply redirects to the front page.
Showing results 1 to 25 of 500