Quantcast
WoWInterface - Search Results
Showing results 1 to 25 of 500
Search took 0.06 seconds.
Search: Posts Made By: SDPhantom
Forum: Lua/XML Help Yesterday, 01:58 PM
Replies: 6
Views: 277
Posted By SDPhantom
To answer the question directly, GetTime() is...

To answer the question directly, GetTime() is cached at the start of every frame.

PS: Be careful if you use debugprofilestop(). The number resets if anyone runs debugprofilestart().
Forum: General Authoring Discussion Yesterday, 02:26 AM
Replies: 8
Views: 795
Posted By SDPhantom
Sure. It's just prototype code atm. I'll get it...

Sure. It's just prototype code atm. I'll get it uploaded once I get it into a more polished state.
Forum: General Authoring Discussion 09-27-20, 04:59 AM
Replies: 8
Views: 795
Posted By SDPhantom
This is pretty much what it does. :D

This is pretty much what it does. :D
Forum: AddOn Help/Support 09-26-20, 04:22 PM
Replies: 2
Views: 373
Posted By SDPhantom
I'd just run BuffFrame:Hide() by itself. There...

I'd just run BuffFrame:Hide() by itself. There really isn't a need to wait for an event to fire.
It really depends on the frame and what its original code does. Lots of frames show and hide...
Forum: General Authoring Discussion 09-26-20, 03:28 PM
Replies: 8
Views: 795
Posted By SDPhantom
Sounds like a fun personal project I made a while...

Sounds like a fun personal project I made a while ago that tracks who's soul a shard is created from.
It even shows the origin of the shard used to create healthstones, soulstones, and even summoned...
Forum: Lua/XML Help 09-22-20, 08:35 AM
Replies: 10
Views: 3,318
Posted By SDPhantom
Not really a change, but a reuse of an existing...

Not really a change, but a reuse of an existing system. Like how warrior stances and paladin auras were considered shapeshift forms in the API.

The difference between a "totem" and a pet is you have...
Forum: Lua/XML Help 09-05-20, 06:37 PM
Replies: 6
Views: 3,592
Posted By SDPhantom
Nope. The only way around it is to write addon...

Nope. The only way around it is to write addon code to create an ActionButton, then have the binding click it.

I'd probably use SetOverrideBinding*() so it doesn't clutter Bindings.wtf. The first...
Forum: Lua/XML Help 09-01-20, 08:46 PM
Replies: 5
Views: 2,712
Posted By SDPhantom
:SetJustifyH() aligns text within the object's...

:SetJustifyH() aligns text within the object's boundaries. Since no width or opposing points (left and right) are defined, it's automatically cropped to the size of the text contained. One issue I...
Forum: Lua/XML Help 08-31-20, 08:52 PM
Replies: 5
Views: 2,712
Posted By SDPhantom
I would innately follow what the original...

I would innately follow what the original function did, cutting out everything else that's irrelevant to what you want to change.

In response to your example, this would hook the original function...
Forum: Lua/XML Help 08-29-20, 01:46 PM
Replies: 4
Views: 3,705
Posted By SDPhantom
You can get away with this on dynamic frames, but...

You can get away with this on dynamic frames, but the update doesn't work on functions already set as a handler. You still have to use :SetScript() to update those.
Forum: AddOn Help/Support 07-16-20, 01:36 PM
Replies: 11
Views: 1,652
Posted By SDPhantom
I would usually hook the frame's OnShow/OnHide...

I would usually hook the frame's OnShow/OnHide handlers. (As Seerah mentioned before)

frame:HookScript("OnShow",function(self)
-- Do something
end);

frame:HookScript("OnHide",function(self)
-- Do...
Forum: General Authoring Discussion 07-16-20, 10:23 AM
Replies: 5
Views: 2,189
Posted By SDPhantom
I was imagining situations where you have stray...

I was imagining situations where you have stray markers on mobs that don't have a valid UnitID, which would be a problem too.
Forum: Graphics Help 07-16-20, 10:16 AM
Replies: 2
Views: 8,957
Posted By SDPhantom
ChatFrames use icons from the ICON_LIST...

ChatFrames use icons from the ICON_LIST (https://github.com/tomrus88/BlizzardInterfaceCode/blob/classic/Interface/FrameXML/ChatFrame.lua#L649-L658) table while the TargetFrame uses...
Forum: General Authoring Discussion 07-15-20, 01:50 PM
Replies: 5
Views: 2,189
Posted By SDPhantom
Not exactly what the OP is asking for. Their...

Not exactly what the OP is asking for. Their posted loop does this in its last pass to clean up the mark on the player.

Unfortunately, there isn't a "clear marker by index" function like there is...
Forum: Site help, bugs, suggestions/questions 07-08-20, 03:37 PM
Replies: 5
Views: 2,450
Posted By SDPhantom
Classic ToC Update

ToC is now 11305 for patch 1.13.5.
Forum: Lua/XML Help 07-06-20, 04:11 PM
Replies: 7
Views: 1,516
Posted By SDPhantom
You can save Lua files in UTF-8. WoW will even...

You can save Lua files in UTF-8. WoW will even ignore the BOM if you wish to add one, which is needed for most Unicode-capable IDEs to recognize that Unicode is being used.

Even though WoW will...
Forum: Lua/XML Help 07-01-20, 05:03 PM
Replies: 15
Views: 1,231
Posted By SDPhantom
Keep in mind, not everyone is running bleeding...

Keep in mind, not everyone is running bleeding edge hardware nor can afford to.
Forum: Lua/XML Help 06-30-20, 10:50 AM
Replies: 15
Views: 1,231
Posted By SDPhantom
Lua is a single-threaded scripting engine, so...

Lua is a single-threaded scripting engine, so async threads are impossible. You can fake it though by spreading your workload using coroutines or other fancy coding. You end up passing execution...
Forum: Lua/XML Help 06-30-20, 06:21 AM
Replies: 15
Views: 1,231
Posted By SDPhantom
All Lua operations are relatively quick, but...

All Lua operations are relatively quick, but compared to C code and being called literally thousands of times, this adds up. Also this is comparing simple operations like creating a table, assigning...
Forum: Lua/XML Help 06-30-20, 06:03 AM
Replies: 2
Views: 869
Posted By SDPhantom
To answer a question that shows up a lot here,...

To answer a question that shows up a lot here, frames cannot be "removed" from memory. They stay persistent throughout an entire session. The best you can do is recycle frames by use of "Frame...
Forum: Lua/XML Help 06-30-20, 05:27 AM
Replies: 15
Views: 1,231
Posted By SDPhantom
It'll keep calling your OnEvent handler for...

It'll keep calling your OnEvent handler for literally everything. Especially in combat, this happens a lot. Calling a Lua function is the most taxing operation you can do. The best you can do is to...
Forum: Lua/XML Help 06-25-20, 09:57 AM
Replies: 8
Views: 1,335
Posted By SDPhantom
Both ClassColor() and Angle() are only giving...

Both ClassColor() and Angle() are only giving their first return values since they are not at the end of the list. The rest are discarded.


local s=Status(unit)
if s then return s end
local...
Forum: Lua/XML Help 06-23-20, 10:53 PM
Replies: 16
Views: 1,788
Posted By SDPhantom
You send the string "{rt8}" and the client on the...

You send the string "{rt8}" and the client on the receiving end converts it into the appropriate texture. In Classic, this is done by ChatFrame_ReplaceIconAndGroupExpressions()...
Forum: Lua/XML Help 06-23-20, 10:21 PM
Replies: 5
Views: 1,334
Posted By SDPhantom
Didn't realize you were asking for classic. The...

Didn't realize you were asking for classic.
The equivalent function is GuildStatus_Update() at FriendsFrame.lua:2677...
Forum: Lua/XML Help 06-23-20, 09:02 PM
Replies: 16
Views: 1,788
Posted By SDPhantom
FYI: The server won't let you send the |T escape...

FYI: The server won't let you send the |T escape sequence. The only escape codes that can be sent are valid links (must include color code too).
Showing results 1 to 25 of 500