Quantcast
WoWInterface - Search Results
Showing results 1 to 25 of 500
Search took 0.04 seconds.
Search: Posts Made By: SDPhantom
Forum: AddOn Help/Support 05-03-21, 06:22 PM
Replies: 4
Views: 327
Posted By SDPhantom
The threat system is available in Classic, but...

The threat system is available in Classic, but they omitted GetThreatStatusColor() specifically.
Initially, the system wasn't available, but it was added later in attempt to cut down on addon traffic...
Forum: Lua/XML Help 05-03-21, 06:04 PM
Replies: 2
Views: 229
Posted By SDPhantom
Commands are stored in the SlashCmdList table....

Commands are stored in the SlashCmdList table. You'll need the token the addon uses to register the command.
For example, you can open BigWigs' options window by calling...
Forum: AddOn Help/Support 04-28-21, 05:02 PM
Replies: 6
Views: 640
Posted By SDPhantom
Last I checked, it still works on reload. You...

Last I checked, it still works on reload. You just can't differentiate it between a login or reload.
Forum: AddOn Help/Support 04-28-21, 04:40 PM
Replies: 6
Views: 640
Posted By SDPhantom
That'll open the calendar every time you load in...

That'll open the calendar every time you load in a new area too. I'd suggest using PLAYER_LOGIN instead.
If you need help converting code into an addon, there's a handy tool (https://addon.bool.no/)...
Forum: AddOn Help/Support 04-24-21, 03:30 PM
Replies: 2
Views: 416
Posted By SDPhantom
The animation system rotates the entire UI...

The animation system rotates the entire UI object, not really something you want for a statusbar. What I've seen done is create a rotating texcoord set that adjusts its size to match whatever height...
Forum: Macro Help 04-21-21, 05:14 PM
Replies: 3
Views: 562
Posted By SDPhantom
Some clarification: Yes, macros are fed into C...

Some clarification:

Yes, macros are fed into C code to run. The C code splits it into lines that are then fired back into the Lua environment using the EXECUTE_CHAT_LINE event. (See ChatFrame.lua...
Forum: AddOn Search/Requests 04-21-21, 05:01 PM
Replies: 3
Views: 720
Posted By SDPhantom
Doubt that'll work in combat, raidframes are...

Doubt that'll work in combat, raidframes are protected frames.
Forum: General Authoring Discussion 04-20-21, 04:17 AM
Replies: 26
Views: 1,347
Posted By SDPhantom
Most of the "protections" are to prevent people...

Most of the "protections" are to prevent people from writing "bot" addons. There are also some blocks they added to prevent people from running malicious code. Malicious code from an addon isn't...
Forum: General Authoring Discussion 04-19-21, 09:13 AM
Replies: 26
Views: 1,347
Posted By SDPhantom
Running /click MiniMapWorldMapButton is still...

Running /click MiniMapWorldMapButton is still working fine for me (it's a chat command, not a Lua script). If you're trying to call MiniMapWorldMapButton:Click(), it won't work from a tainted...
Forum: Macro Help 04-19-21, 08:48 AM
Replies: 3
Views: 475
Posted By SDPhantom
Unfortunately, a macro alone isn't capable of...

Unfortunately, a macro alone isn't capable of doing what you're asking for the reason I mentioned earlier. Your best bet is if your healing addon lets you set a different action for your own...
Forum: General Authoring Discussion 04-17-21, 11:45 AM
Replies: 26
Views: 1,347
Posted By SDPhantom
The UI changes over the years, and Blizzard has...

The UI changes over the years, and Blizzard has been known to do some really stupid things.




You can do something like this, but it toggles the world map. There's no way to put a condition on it...
Forum: Lua/XML Help 04-16-21, 08:13 PM
Replies: 8
Views: 511
Posted By SDPhantom
Do you have script errors turned on? Errors...

Do you have script errors turned on? Errors earlier in your code can block the rest of it from running.
Run /console scriptErrors 1 to enable. (It's also a good idea to /reload afterward to see any...
Forum: Macro Help 04-16-21, 07:49 PM
Replies: 3
Views: 475
Posted By SDPhantom
Macros can't do unit comparisons. The best you...

Macros can't do unit comparisons. The best you can do is select based what modifier key you're holding and fallbacks.

For example, this casts Power Infusion if you have a valid mouseover unit and...
Forum: Lua/XML Help 04-11-21, 06:48 PM
Replies: 16
Views: 1,146
Posted By SDPhantom
If you check a lot of events, it'll create a new...

If you check a lot of events, it'll create a new function each time. This'll work better.

local f=CreateFrame("Frame");
local function EventExists(event)
local...
Forum: Lua/XML Help 04-06-21, 02:54 PM
Replies: 6
Views: 631
Posted By SDPhantom
PaperDollFrame seems to just register all the...

PaperDollFrame seems to just register all the stat events including UNIT_AURA and flag an update through...
Forum: Lua/XML Help 04-06-21, 01:01 AM
Replies: 7
Views: 2,064
Posted By SDPhantom
Not without a hardware event. It shouldn't be...

Not without a hardware event. It shouldn't be that hard to make a button to click somewhere or a slash command to run that would trigger a purge of unwanted items.
Forum: Lua/XML Help 04-06-21, 12:54 AM
Replies: 6
Views: 631
Posted By SDPhantom
I don't have a way to test currently, but it...

I don't have a way to test currently, but it sounds like you're not using the correct event. Stat changes usually trigger off their own event(s). UNIT_AURA merely signals that the list of buffs has...
Forum: Lua/XML Help 04-02-21, 03:43 PM
Replies: 6
Views: 562
Posted By SDPhantom
It doesn't exist, the first thing the code does...

It doesn't exist, the first thing the code does is create the function on line 2.
Blizzard has a similar function called nop(). You could use that instead if you prefer.



They both "inherit" their...
Forum: Lua/XML Help 04-01-21, 11:53 PM
Replies: 6
Views: 562
Posted By SDPhantom
Here's an example 0f what I was talking about;...

Here's an example 0f what I was talking about; redirecting the function to a dummy function.
I added a couple other functions to redirect and a 4th to hook and reset the color.

-- Define a dummy...
Forum: Lua/XML Help 04-01-21, 02:30 AM
Replies: 6
Views: 562
Posted By SDPhantom
Looks like it's handled by...

Looks like it's handled by TargetFrame_HealthUpdate() (https://www.townlong-yak.com/framexml/38134/TargetFrame.lua#822). It looks like it's safe to redirect to a dummy function. Other than that,...
Forum: General Authoring Discussion 03-24-21, 07:52 PM
Replies: 11
Views: 1,219
Posted By SDPhantom
I hope so, I need an early hit on Mirren's...

I hope so, I need an early hit on Mirren's Drinking Hat (https://www.wowhead.com/item=23587/mirrens-drinking-hat). :D
Forum: General Authoring Discussion 03-24-21, 06:20 PM
Replies: 11
Views: 1,219
Posted By SDPhantom
I got in Shadowlands near the end due to sheer...

I got in Shadowlands near the end due to sheer luck. Since then, it's made me feel like beta access for authors isn't a reliable thing anymore.
Forum: General Authoring Discussion 03-24-21, 02:32 AM
Replies: 11
Views: 1,219
Posted By SDPhantom
Classic was there, but it felt more like a back...

Classic was there, but it felt more like a back alley deal than an official offering.
We were largely ignored for Shadowlands beta too.
Forum: General Authoring Discussion 03-22-21, 06:57 PM
Replies: 4
Views: 482
Posted By SDPhantom
DBM and BigWigs do something similar by having...

DBM and BigWigs do something similar by having each "module" set up as a LoD addon and use custom tags in the ToC for registering when to load each one.
Forum: Macro Help 03-06-21, 05:58 PM
Replies: 1
Views: 864
Posted By SDPhantom
There isn't a macro condition for that. What I...

There isn't a macro condition for that. What I tend to do is write a macro like this.
/cast [btn:1] ItemName; SpellName
This makes left-clicking the button use the item and right-clicking will create...
Showing results 1 to 25 of 500