Showing results 1 to 25 of 500
Search took 0.07 seconds.
Search: Posts Made By: SDPhantom
Forum: Lua/XML Help 04-01-14, 11:35 PM
Replies: 1
Views: 253
Posted By SDPhantom
I guess you can try intercepting UI functions...

I guess you can try intercepting UI functions that set the text of various UI elements by hooking into the UI object metatables. For example, if you want to intercept and modify the text of every...
Forum: Lua/XML Help 01-27-14, 05:15 PM
Replies: 6
Views: 371
Posted By SDPhantom
Setting the text alignment for a fontstring only...

Setting the text alignment for a fontstring only really applies to displaying multiple lines in a single object. When you have one line in a box without defined dimensions, it's left to the anchor to...
Forum: Lua/XML Help 01-27-14, 05:07 PM
Replies: 24
Views: 1,142
Posted By SDPhantom
As explained earlier, copied objects share the...

As explained earlier, copied objects share the same pointers. There may be some confusion about this due to the fact that the only modifiable object is a table. Even when you're writing a function...
Forum: Lua/XML Help 01-22-14, 02:14 PM
Replies: 24
Views: 1,142
Posted By SDPhantom
Actually, _G is the same as _G._G, it's a...

Actually, _G is the same as _G._G, it's a circular reference and completely unnecessary. This also means _G.MyVar is the exact same as referencing MyVar directly as long as you don't have a local...
Forum: AddOn Help/Support 01-09-14, 02:45 PM
Replies: 3
Views: 495
Posted By SDPhantom
Due to this being an official Blizzard community...

Due to this being an official Blizzard community site, we are prohibited from offering assistance to anyone playing on a private server.
Forum: Lua/XML Help 09-17-13, 09:59 AM
Replies: 8
Views: 1,379
Posted By SDPhantom
Typically, procs trigger a spellcast that ends up...

Typically, procs trigger a spellcast that ends up in the Combat Log just as any other ability initiated by the player. You will need to keep track of what SpellIDs trigger from an item to tell the...
Forum: Lua/XML Help 09-14-13, 04:31 PM
Replies: 5
Views: 1,126
Posted By SDPhantom
You could do this: local guid=unit and...

You could do this:
local guid=unit and UnitGUID(unit);
If unit is nil, it won't run UnitGUID() and return nil. Otherwise, if UnitGUID() doesn't return anything useful, it'll return nil anyway.



If...
Forum: Wish List 09-12-13, 07:15 PM
Replies: 3
Views: 1,331
Posted By SDPhantom
The idea you proposed is irrelevant to keybinds...

The idea you proposed is irrelevant to keybinds and is a simplification on running a button's OnClick handler.
At any rate, your proposition already exists exactly as you described it.

See...
Forum: AddOn Help/Support 09-07-13, 09:16 AM
Replies: 1
Views: 1,018
Posted By SDPhantom
Having a macro respond to a cooldown has been...

Having a macro respond to a cooldown has been specifically disabled by Blizzard. In the past, this was accomplished by having one spell listed after the other like in the example below.

/cast Holy...
Forum: Lua/XML Help 09-03-13, 10:19 PM
Replies: 6
Views: 1,312
Posted By SDPhantom
D'oh! Fixed now. :rolleyes:

D'oh! Fixed now. :rolleyes:
Forum: Lua/XML Help 08-31-13, 01:14 AM
Replies: 6
Views: 1,312
Posted By SDPhantom
Here's my take on creating better code. I kept...

Here's my take on creating better code. I kept the idea of using a function to generate the buttons dynamically, yet improved on its operation. First of all, the buttons share the same OnEnter and...
Forum: Lua/XML Help 08-29-13, 03:52 PM
Replies: 40
Views: 4,788
Posted By SDPhantom
This is still deviating from the point Phanx and...

This is still deviating from the point Phanx and I were making. Phanx is stating as a general rule that locals should stay in the tightest scope possible. My posts state that like most rules, there...
Forum: Lua/XML Help 08-26-13, 11:42 PM
Replies: 40
Views: 4,788
Posted By SDPhantom
You're creating 4 string values and performing 4...

You're creating 4 string values and performing 4 variable assignments either way. It doesn't matter whether you're overwriting an existing variable or not, so you should use scoping appropriately,...
Forum: Lua/XML Help 08-26-13, 05:57 PM
Replies: 10
Views: 1,426
Posted By SDPhantom
If you really want to look into it, we can break...

If you really want to look into it, we can break down how the lines work. When you compare with if var==true then, you are running a binary operation (==) that returns a boolean value after comparing...
Forum: Lua/XML Help 08-24-13, 04:39 PM
Replies: 40
Views: 4,788
Posted By SDPhantom
To explain this simply, every single time code in...

To explain this simply, every single time code in a loop is run is considered a single iteration of the loop. All locals defined inside a loop only exist in a single iteration independent of all the...
Forum: Lua/XML Help 08-23-13, 09:39 PM
Replies: 40
Views: 4,788
Posted By SDPhantom
That's actually more specific of a situation, as...

That's actually more specific of a situation, as your definition of maxCPoints is needed in all iterations in the for loop, it's best to keep it where it is instead of reinitializing the same value...
Forum: Lua/XML Help 08-19-13, 10:10 PM
Replies: 13
Views: 2,028
Posted By SDPhantom
The previous version of the command system...

The previous version of the command system scanned SlashCmdList for command tokens in which to check the specific globals for a matching command. There was an included feature when it found a...
Forum: General Authoring Discussion 08-16-13, 06:13 PM
Replies: 3
Views: 1,072
Posted By SDPhantom
local EventFrame=CreateFrame("Frame");-- Create...

local EventFrame=CreateFrame("Frame");-- Create event listener, any frame type will do
EventFrame:RegisterEvent("CHAT_MSG_WHISPER");-- Register event to listen...
Forum: Lua/XML Help 08-16-13, 12:32 PM
Replies: 13
Views: 2,028
Posted By SDPhantom
Not exactly a solid explanation. You're talking...

Not exactly a solid explanation. You're talking of avoiding the __newindex metamethod in which if one exists, it would need to allow writing to the table or else break the slash command system....
Forum: General Authoring Discussion 08-13-13, 12:56 PM
Replies: 9
Views: 1,649
Posted By SDPhantom
Also take note that many sound files are shared...

Also take note that many sound files are shared among different spells. If a file doesn't exist for a specific spell, it may be under a different name.
Forum: Lua/XML Help 08-11-13, 07:52 PM
Replies: 2
Views: 1,106
Posted By SDPhantom
I think the checked texture is used for mounts,...

I think the checked texture is used for mounts, stances/forms, etc. The border texture is strictly used for equipped item feedback.
Forum: General Authoring Discussion 08-11-13, 06:23 PM
Replies: 11
Views: 2,093
Posted By SDPhantom
A lot of what you suggest like movement and...

A lot of what you suggest like movement and control could be done by making changes to your key bindings.
Forum: Lua/XML Help 08-06-13, 06:49 PM
Replies: 13
Views: 2,028
Posted By SDPhantom
They changed it in Cata 4.3, which broke...

They changed it in Cata 4.3, which broke SlashHelp (http://www.wowinterface.com/downloads/info11549-SlashHelp.html) at the time. Figures one change they make that doesn't offer any benefit breaks...
Forum: Lua/XML Help 08-06-13, 04:27 PM
Replies: 13
Views: 2,028
Posted By SDPhantom
Actually, the problem is when you run a slash...

Actually, the problem is when you run a slash command, it takes all entries in SlashCmdList and moves them to its metatable. There are 3 steps that need to be done in order to unregister a slash...
Forum: Macro Help 07-19-13, 10:03 AM
Replies: 6
Views: 15,256
Posted By SDPhantom
/castsequence was never meant to be used in...

/castsequence was never meant to be used in situations when you mash a button. In situations of high lag, it can and occasionally does stutter on an ability, casting it 2 or 3 times before moving on...
Showing results 1 to 25 of 500