Quantcast
WoWInterface - Search Results
Showing results 1 to 25 of 500
Search took 0.27 seconds.
Search: Posts Made By: SDPhantom
Forum: Lua/XML Help 11-22-22, 02:21 AM
Replies: 4
Views: 227
Posted By SDPhantom
One thing to keep in mind, bag slots count up...

One thing to keep in mind, bag slots count up from right to left. This means 23 is the far left bag while 20 is the bag next to the backpack. Note the new reagent bag in Dragon Flight occupies slot...
Forum: Lua/XML Help 11-20-22, 02:05 PM
Replies: 1
Views: 153
Posted By SDPhantom
It doesn't stick as the TargetFrame is going to...

It doesn't stick as the TargetFrame is going to revert it every time you change target or if your target's power type changes (ex: Druid shapeshift). The ToT frames do this check through their...
Forum: Lua/XML Help 11-20-22, 04:21 AM
Replies: 2
Views: 249
Posted By SDPhantom
There's also TooltipUtil.GetDisplayedItem()...

There's also TooltipUtil.GetDisplayedItem() (https://github.com/Gethe/wow-ui-source/blob/live/Interface/SharedXML/Tooltip/TooltipUtil.lua#L16-L30) as the more official way to grab item info from a...
Forum: Lua/XML Help 11-16-22, 02:38 PM
Replies: 2
Views: 166
Posted By SDPhantom
Is the size of the image file itself a power of...

Is the size of the image file itself a power of 2? I don't think they've updated the image loader to support arbitrary sizes.
Forum: Lua/XML Help 11-15-22, 03:19 PM
Replies: 4
Views: 333
Posted By SDPhantom
Apparently, the template used doesn't register...

Apparently, the template used doesn't register its FontString with the button, so button:SetText() isn't referencing it. I fixed this in the original post changing the relevant calls to...
Forum: Macro Help 11-14-22, 06:36 PM
Replies: 1
Views: 241
Posted By SDPhantom
Better yet, it doesn't even require...

Better yet, it doesn't even require scripting.
/stopmacro lets you halt execution when a macro condition matches.

/cast [@focus,help,nodead][help,nodead][@pet] Misdirection
/stopmacro...
Forum: Lua/XML Help 11-14-22, 01:18 PM
Replies: 4
Views: 333
Posted By SDPhantom
This creates a SavedVariable and a simple options...

This creates a SavedVariable and a simple options panel.

Be sure to add this to your ToC to flag your SavedVariable for saving.
## SavedVariables: BuffOff_Options


local AddOn_Name=...;-- Grab our...
Forum: Lua/XML Help 11-14-22, 04:35 AM
Replies: 9
Views: 450
Posted By SDPhantom
Here's an example usage of...

Here's an example usage of hooksecurefunc().

hooksecurefunc("CastSpellByName",function(name,target)
if target then
print("Casting",name,"at",target);
else
print("Casting",name);
end
end);
Forum: Lua/XML Help 11-11-22, 12:56 PM
Replies: 9
Views: 450
Posted By SDPhantom
My guess is the taint is spreading through...

My guess is the taint is spreading through CommunitiesFrame:SetDisplayMode() as ToggleGuildFrame() is successfully getting called, but hooksecurefunc() errors because you're giving it invalid...
Forum: Lua/XML Help 11-11-22, 10:53 AM
Replies: 2
Views: 262
Posted By SDPhantom
My guess is you're targeting the vehicle instead...

My guess is you're targeting the vehicle instead of the player. You can't select anyone in a vehicle using target, focus, or even nameplate# as they are untargetable. You need to use either player,...
Forum: AddOn Help/Support 11-08-22, 06:02 PM
Replies: 8
Views: 539
Posted By SDPhantom
The problem is, when a cast stops, the frame is...

The problem is, when a cast stops, the frame is still "Shown" for the duration it's fading. When another spell is cast, OnShow doesn't fire because it never was hidden in the first...
Forum: Lua/XML Help 11-07-22, 07:19 PM
Replies: 5
Views: 609
Posted By SDPhantom
There's no way to create atlases either.

There's no way to create atlases either.
Forum: Lua/XML Help 11-07-22, 06:14 PM
Replies: 5
Views: 609
Posted By SDPhantom
Appears texture:SetTexCoord() doesn't work on...

Appears texture:SetTexCoord() doesn't work on StatusBars as they keep overwriting it on render.

Generally, texture:SetTexCoord() doesn't work on atlases either, but using C_Texture.GetAtlasInfo()...
Forum: AddOn Help/Support 11-07-22, 03:22 PM
Replies: 4
Views: 331
Posted By SDPhantom
To be fair, line 3 of your example could've been...

To be fair, line 3 of your example could've been modified to this for less effort.
obj:SetFont(font, size, style or "")
Forum: Lua/XML Help 11-03-22, 03:21 PM
Replies: 2
Views: 632
Posted By SDPhantom
Edit Mode is already known to be horribly bugged...

Edit Mode is already known to be horribly bugged when it comes to taint issues. You can report if you want to add to the affected user count. At the very least, it should in practice make it a higher...
Forum: Lua/XML Help 11-03-22, 03:00 PM
Replies: 8
Views: 707
Posted By SDPhantom
For example, you need to call...

For example, you need to call :RegisterForClicks("AnyUp","AnyDown") on all of your buttons that inherit from SecureActionButtonTemplate. The link I posted previously has all of the button event...
Forum: Lua/XML Help 11-03-22, 02:07 PM
Replies: 7
Views: 694
Posted By SDPhantom
I used to get a rush from making an idea work,...

I used to get a rush from making an idea work, but the dopamine from that has faded long ago. I still enjoy a good problem to solve for entertainment. At least an effort to keep the old brain working...
Forum: AddOn Search/Requests 11-03-22, 01:31 PM
Replies: 2
Views: 306
Posted By SDPhantom
hooksecurefunc("TextStatusBar_UpdateTextStringWith...

hooksecurefunc("TextStatusBar_UpdateTextStringWithValues",function(self,text,val,min,max)
if self==TargetFrameHealthBar and max>0 and (val>0 or not self.zeroText) then
if self.LeftText then...
Forum: AddOn Help/Support 11-02-22, 04:57 PM
Replies: 17
Views: 1,501
Posted By SDPhantom
You need to set this hook outside or it'll keep...

You need to set this hook outside or it'll keep hooking itself indefinitely. Eventually, this will cause a stack overflow when the hook is called.



This is the alternative I came up with. It only...
Forum: Lua/XML Help 11-02-22, 03:03 PM
Replies: 8
Views: 707
Posted By SDPhantom
Blizzard changed how the OnClick script works for...

Blizzard changed how the OnClick script works for SecureActionButtons in Dragon Flight. You need to register both up and down events through Button:RegisterForClicks()...
Forum: AddOn Help/Support 11-01-22, 04:18 PM
Replies: 17
Views: 1,501
Posted By SDPhantom
It's one function that's hooked into both frames,...

It's one function that's hooked into both frames, that's why it's defined separately outside of the hooksecurefunc() calls instead of writing it twice.

I'd be wary of changing the anchor to...
Forum: Lua/XML Help 10-31-22, 04:11 PM
Replies: 7
Views: 694
Posted By SDPhantom
The first thing that stood out to me was this...

The first thing that stood out to me was this line.
local timeLeft = start / 1000 + dur / 1000 - GetTime()
Currently, you're taking one variable, dividing by 1000, then taking another variable and...
Forum: PTR API and Graphics Changes 10-31-22, 03:46 PM
Replies: 1
Views: 269
Posted By SDPhantom
I get the feeling this is part of some bigger...

I get the feeling this is part of some bigger picture which has an easier solution than what you're focused on currently.

It's certainly possible if you absolutely need to filter out tooltip...
Forum: AddOn Help/Support 10-31-22, 02:40 PM
Replies: 17
Views: 1,501
Posted By SDPhantom
You can replace the anchor adjustment section...

You can replace the anchor adjustment section with this.

if self.spellbar then
self.spellbar:ClearAllPoints();
self.spellbar:SetPoint("TOPLEFT",self,"BOTTOMLEFT",43,-46);-- Default anchor on large...
Forum: Lua/XML Help 10-30-22, 04:06 PM
Replies: 7
Views: 694
Posted By SDPhantom
Can't really think of any other way besides what...

Can't really think of any other way besides what you've already done. There could be a little optimization with your math, but that's more nitpicking on trimming the number of operations you're using...
Showing results 1 to 25 of 500