Quantcast WoWInterface - Search Results
Showing results 1 to 25 of 500
Search took 0.05 seconds.
Search: Posts Made By: SDPhantom
Forum: Lua/XML Help 02-13-20, 06:02 PM
Replies: 2
Views: 170
Posted By SDPhantom
You can send nil as (or completely omitt) the...

You can send nil as (or completely omitt) the second argument to SetBinding() (https://wow.gamepedia.com/API_SetBinding) to remove the key from all bindings.

I don't know if GetBinding()...
Forum: Lua/XML Help 02-12-20, 08:12 AM
Replies: 8
Views: 337
Posted By SDPhantom
There are still better options. Making sure you...

There are still better options. Making sure you put local variables only in the scope they're being used (you can force a scope if you need using a do ... end block). Limiting what functions you make...
Forum: Lua/XML Help 02-11-20, 10:34 AM
Replies: 8
Views: 337
Posted By SDPhantom
The entire appeal of using local variables aside...

The entire appeal of using local variables aside from limiting scope is you save an index lookup in the global table. Putting variables in a local table completely negates this since you're re-adding...
Forum: Lua/XML Help 01-26-20, 09:23 AM
Replies: 2
Views: 332
Posted By SDPhantom
I don't know the difference yet, but some items...

I don't know the difference yet, but some items use C_AuctionHouse.PostItem() (https://wow.gamepedia.com/API_C_AuctionHouse.PostItem) and others use C_AuctionHouse.PostCommodity()...
Forum: Lua/XML Help 12-26-19, 12:28 AM
Replies: 10
Views: 671
Posted By SDPhantom
table.sort() doesn't work on associative keys. It...

table.sort() doesn't work on associative keys. It only works on the sequential portion of the table. The order of key/value pairs iterated from next() and pairs() are completely random. Even among...
Forum: Classic - AddOn Help/Support 12-24-19, 02:24 AM
Replies: 2
Views: 311
Posted By SDPhantom
From my observations, the only times a loot item...

From my observations, the only times a loot item is tinted red is either you're in a group with master looter on or the mob dropped a quest item that you already have enough of to complete the...
Forum: Lua/XML Help 12-21-19, 09:06 AM
Replies: 10
Views: 671
Posted By SDPhantom
Quoting the Lua 5.1 manual too. I'd also go over...

Quoting the Lua 5.1 manual too.

I'd also go over the Table Manipulation section of the function references.
http://www.lua.org/manual/5.1/manual.html#5.5
Forum: Lua/XML Help 12-19-19, 08:01 PM
Replies: 3
Views: 288
Posted By SDPhantom
Functions are immutable. What hooksecurefunc()...

Functions are immutable. What hooksecurefunc() does is wrap the original function and your hook to run together from a new function, then overwrites the original with it. You can observe this by...
Forum: AddOn Help/Support 12-17-19, 12:27 PM
Replies: 2
Views: 621
Posted By SDPhantom
Yes, it's normal for long paths to be truncated.

Yes, it's normal for long paths to be truncated.
Forum: Lua/XML Help 12-15-19, 11:31 PM
Replies: 5
Views: 515
Posted By SDPhantom
ITEM_LOCK_CHANGED...

ITEM_LOCK_CHANGED (https://wow.gamepedia.com/ITEM_LOCK_CHANGED) fires when the lock state changes. BAG_UPDATE_DELAYED (https://wow.gamepedia.com/BAG_UPDATE_DELAYED) is what fires when items are...
Forum: Lua/XML Help 12-14-19, 02:26 PM
Replies: 5
Views: 515
Posted By SDPhantom
You might want to check out PickupContainerItem()...

You might want to check out PickupContainerItem() (https://wow.gamepedia.com/API_PickupContainerItem).

You'll have to apply the sort in multiple stages since the items will become "locked" once you...
Forum: Lua/XML Help 12-13-19, 03:23 PM
Replies: 9
Views: 719
Posted By SDPhantom
Short answer, yes. There are many features they...

Short answer, yes. There are many features they stripped out just by altering the returns of the API functions.




If only. There's no reliable way to obtain a SpellID, which is necessary to...
Forum: Classic - AddOn Search/Requests 12-12-19, 04:53 PM
Replies: 4
Views: 218
Posted By SDPhantom
I added another variable to tweak in my previous...

I added another variable to tweak in my previous post.
Forum: Site help, bugs, suggestions/questions 12-12-19, 04:41 PM
Replies: 1
Views: 375
Posted By SDPhantom
Classic version 1.13.3 out

Classic had a patch release (version 1.13.3) last Tuesday and it's not listed when marking addons compatible for it.

PS: Interface version was bumped to 11303.
Forum: Classic - AddOn Search/Requests 12-11-19, 11:19 PM
Replies: 4
Views: 218
Posted By SDPhantom
Might try this: /run for _,b in...

Might try this:
/run for _,b in ipairs({PlayerFrameHealthBar,PlayerFrameManaBar}) do b.textLockable=false;b.forceHideText=true;TextStatusBar_UpdateTextString(b);end
Forum: Lua/XML Help 11-19-19, 01:39 PM
Replies: 10
Views: 824
Posted By SDPhantom
To isolate the adjustment to only when the name...

To isolate the adjustment to only when the name is showing, we'll just semi-recreate the original function managing the buff...
Forum: Lua/XML Help 11-19-19, 02:40 AM
Replies: 10
Views: 824
Posted By SDPhantom
Looks like more modern version trickery. Try...

Looks like more modern version trickery. Try replacing that block with this instead.

-- Move...
Forum: AddOn Search/Requests 11-18-19, 12:19 PM
Replies: 4
Views: 377
Posted By SDPhantom
The classic version doesn't come with any stock...

The classic version doesn't come with any stock weights right now. You'll have to find or create those yourself.
Forum: Lua/XML Help 11-18-19, 12:16 PM
Replies: 10
Views: 824
Posted By SDPhantom
Oh, right. I forgot the function is called as...

Oh, right. I forgot the function is called as NamePlateDriverFrame:OnNamePlateCreated(...). I adjusted the argument list in my previous post to fix that.
Forum: Lua/XML Help 11-17-19, 01:47 PM
Replies: 10
Views: 824
Posted By SDPhantom
Looks like nameplates on classic behave...

Looks like nameplates on classic behave differently than on modern.
Here's a more complete example with the changes.

-- Nametag font size
local function SetFont(obj,optSize)
local...
Forum: Lua/XML Help 11-16-19, 12:24 PM
Replies: 10
Views: 824
Posted By SDPhantom
Looks fine to me, though you don't need to wait...

Looks fine to me, though you don't need to wait for an event to change the font properties. They already exist by the time the addon runs.



As for your additional requests, here's how I'd reset the...
Forum: AddOn Help/Support 11-01-19, 09:26 PM
Replies: 5
Views: 607
Posted By SDPhantom
You can expand line 14 to be something like...

You can expand line 14 to be something like this.

if NamePlateHealthText[self] then
local...
Forum: AddOn Help/Support 11-01-19, 08:29 AM
Replies: 5
Views: 607
Posted By SDPhantom
Here's what I do on mine. It hooks...

Here's what I do on mine. It hooks NameplateDriverFrame:OnNamePlateCreated() when it creates nameplates and CompactUnitFrame_UpdateHealth() to update. I also store a mapping between the unitframe and...
Forum: Lua/XML Help 10-22-19, 05:44 PM
Replies: 5
Views: 440
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: 547
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...
Showing results 1 to 25 of 500