Quantcast WoWInterface - Search Results
Showing results 1 to 25 of 500
Search took 0.02 seconds.
Search: Posts Made By: SDPhantom
Forum: Lua/XML Help Yesterday, 05:44 PM
Replies: 5
Views: 111
Posted By SDPhantom
Lua always returns the first match in a string....

Lua always returns the first match in a string. The problem with this is since the color code for the string is a hex value, it can contain numeric characters, which will sometimes get captured...
Forum: AddOn Help/Support 10-21-19, 11:45 PM
Replies: 6
Views: 206
Posted By SDPhantom
Frames are always rectangular, there is no...

Frames are always rectangular, there is no shaping.

And reiterating concerning reading a unit's model...
Forum: General Authoring Discussion 10-21-19, 11:35 AM
Replies: 4
Views: 171
Posted By SDPhantom
You can use InCombatLockdown()...

You can use InCombatLockdown() (https://wow.gamepedia.com/API_InCombatLockdown) to determine if protected frames are locked due to being in...
Forum: AddOn Help/Support 10-21-19, 11:15 AM
Replies: 6
Views: 206
Posted By SDPhantom
Addons don't have any control over how the cursor...

Addons don't have any control over how the cursor interacts with the game world either. An invisible frame created and positioned under the cursor is the only way to block clicks, but this also...
Forum: AddOn Help/Support 10-20-19, 07:49 PM
Replies: 6
Views: 206
Posted By SDPhantom
Addons can't interact with the rendered world....

Addons can't interact with the rendered world. They run completely isolated in a UI layer on top of it.
Forum: Lua/XML Help 10-20-19, 12:41 AM
Replies: 3
Views: 228
Posted By SDPhantom
Using events to update something that isn't...

Using events to update something that isn't related to is generally a bad idea. There are a ton of issues that happen depending on which data you're trying to access or even trying to update your...
Forum: General Authoring Discussion 10-15-19, 11:23 AM
Replies: 11
Views: 317
Posted By SDPhantom
These are for the popup that shows to the player...

These are for the popup that shows to the player being summoned after the ritual has been successfully completed.
Forum: General Authoring Discussion 10-14-19, 10:57 AM
Replies: 11
Views: 317
Posted By SDPhantom
That's when it's spawned, not used.

That's when it's spawned, not used.
Forum: Lua/XML Help 10-13-19, 12:15 PM
Replies: 4
Views: 197
Posted By SDPhantom
local...

local highlight=Button:GetHighlightFontObject();
highlight:SetTextColor(0,0,0);


Note: If you're not doing anything else with the FontString, you can do this...
Forum: AddOn Search/Requests 10-09-19, 02:01 PM
Replies: 2
Views: 260
Posted By SDPhantom
I had a plan to implement it as it works in...

I had a plan to implement it as it works in Modern WoW, but it's taken a back seat to more pressing matters at the moment. I'll take another look into it once I have everything straightened out with...
Forum: AddOn Search/Requests 10-08-19, 03:31 PM
Replies: 2
Views: 192
Posted By SDPhantom
Addons can't access the computer's filesystem,...

Addons can't access the computer's filesystem, but given the naming format for WoW screenshots, they can say where to...
Forum: Classic - AddOn Help/Support 10-05-19, 02:34 PM
Replies: 8
Views: 377
Posted By SDPhantom
Since you split out the special handling for max...

Since you split out the special handling for max HP, the highlighted section is no longer necessary.
The reason it was there in the first place was taking advantage of Lua's behavior of its logic...
Forum: Macro Help 10-04-19, 11:26 AM
Replies: 2
Views: 356
Posted By SDPhantom
This is a little clunky, but it might...

This is a little clunky, but it might work.

/cancelform [noform:3]
/castsequence [form:3] Cat Form; Bear Form, Cat Form

It force-casts Cat Form at the end of the cycle to cancel the current...
Forum: General Authoring Discussion 10-03-19, 03:25 PM
Replies: 2
Views: 256
Posted By SDPhantom
The command runs ClearPartyAssignment(), which...

The command runs ClearPartyAssignment(), which appears to be a protected function as well.
https://www.townlong-yak.com/framexml/live/ChatFrame.lua#1507
Forum: Classic - AddOn Help/Support 10-03-19, 02:42 PM
Replies: 8
Views: 377
Posted By SDPhantom
It's pure Lua code to get a UI color escape from...

It's pure Lua code to get a UI color escape from a percentage value. Works fine on the live Lua demo (https://www.lua.org/cgi-bin/demo).
I don't know anything about Pitbull4, never used it.

Edit:...
Forum: Classic - AddOn Help/Support 10-02-19, 03:01 PM
Replies: 8
Views: 342
Posted By SDPhantom
This function doesn't exist in classic, which the...

This function doesn't exist in classic, which the OP is requesting for.
Forum: Classic - AddOn Help/Support 10-02-19, 02:34 PM
Replies: 8
Views: 377
Posted By SDPhantom
Here's how I usually handle the health...

Here's how I usually handle the health gradient.
("|cff%02x%02x00"):format(math.ceil(math.max(math.min(2*(1-percent),1),0)*255),math.ceil(math.max(math.min(2*percent,1),0)*255));
Note: percent is a...
Forum: Classic - AddOn Help/Support 10-02-19, 01:56 PM
Replies: 4
Views: 231
Posted By SDPhantom
That's only if you modify an existing FontString....

That's only if you modify an existing FontString. Even so, it's easy to work around.
Forum: Lua/XML Help 09-29-19, 02:28 PM
Replies: 5
Views: 339
Posted By SDPhantom
You could use the existing...

You could use the existing UIErrorsFrame:AddExternalErrorMessage(message).
Forum: AddOn Help/Support 09-27-19, 08:12 AM
Replies: 5
Views: 600
Posted By SDPhantom
The debate of colon and dot notation of calling...

The debate of colon and dot notation of calling is off topic here and doesn't even apply to your own example. It's not even a function call, you're just storing a local reference of a function.
Forum: Classic - AddOn Help/Support 09-23-19, 02:00 PM
Replies: 4
Views: 231
Posted By SDPhantom
Just add a FontString to the frame? Since Classic...

Just add a FontString to the frame? Since Classic has an entirely different layout, some frames may be removed or renamed. You can find what's there using /fstack and mousing over the map.
Forum: Lua/XML Help 09-23-19, 01:41 PM
Replies: 5
Views: 281
Posted By SDPhantom
You can leave those out. They only provide data...

You can leave those out. They only provide data for the reporting action in the context menu.
|Hplayer:Moonscarlet-ServerName|hCustom Text|h
For future reference, the display portion of the link can...
Forum: Classic - AddOn Help/Support 09-23-19, 06:39 AM
Replies: 8
Views: 342
Posted By SDPhantom
If you're still looking for existing solutions,...

If you're still looking for existing solutions, TSM does this along with all the other things it has.

Making your own addon is going to be very involved. You'll have to scan every character you log...
Forum: Classic - AddOn Help/Support 09-17-19, 01:34 PM
Replies: 2
Views: 202
Posted By SDPhantom
The entire Lua engine is in a single thread run...

The entire Lua engine is in a single thread run by the renderer. While the coroutine library does offer thread-like functionality, it's not async. This means it blocks execution of the caller until...
Forum: Classic - AddOn Help/Support 09-16-19, 02:49 PM
Replies: 6
Views: 293
Posted By SDPhantom
Depends on what you're doing with the text....

Depends on what you're doing with the text. Essentially, text on screen are FontString (https://wow.gamepedia.com/Widget_API#FontString) objects.
Showing results 1 to 25 of 500