Quantcast
WoWInterface - Search Results
Showing results 1 to 25 of 500
Search took 0.01 seconds.
Search: Posts Made By: SDPhantom
Forum: AddOn Help/Support 07-16-20, 01:36 PM
Replies: 11
Views: 1,307
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: 1,491
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: 1,794
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: 1,491
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: 1,553
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,231
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: 946
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: 946
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: 946
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: 550
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: 946
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,064
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,452
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,103
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,452
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).
Forum: Lua/XML Help 06-22-20, 01:35 AM
Replies: 5
Views: 1,103
Posted By SDPhantom
I'd take a look at GuildRoster_Update()...

I'd take a look at GuildRoster_Update() (https://www.townlong-yak.com/framexml/live/Blizzard_GuildUI/Blizzard_GuildRoster.lua#130). This is the function that deals with updating the guild roster list.
Forum: Lua/XML Help 06-19-20, 02:42 AM
Replies: 7
Views: 896
Posted By SDPhantom
If you store dates in YYYYMMDD format, you can...

If you store dates in YYYYMMDD format, you can use table.sort() without a custom function. This greatly improves performance since the entire comparison happens in C code instead of calling your...
Forum: Lua/XML Help 06-07-20, 01:55 PM
Replies: 2
Views: 607
Posted By SDPhantom
You need to set the frame's event...

You need to set the frame's event handler.

Example:

GuildLeader:SetScript("OnEvent",function(self,event)
if event=="WHO_LIST_UPDATE" then
for i=1,C_FriendList.GetNumWhoResults() do
local...
Forum: Lua/XML Help 05-25-20, 03:51 PM
Replies: 6
Views: 1,673
Posted By SDPhantom
MultiBarBottomRight is managed by UIParent.lua...

MultiBarBottomRight is managed by UIParent.lua from its UIPARENT_MANAGED_FRAME_POSITIONS (https://www.townlong-yak.com/framexml/live/UIParent.lua#2301) table. I suspect changing these values will...
Forum: General Authoring Discussion 05-20-20, 04:49 AM
Replies: 4
Views: 2,485
Posted By SDPhantom
I ran a WhoIs on the domain and tracked the web...

I ran a WhoIs on the domain and tracked the web host to a company called OVH.
Here's a link to reporting copyright infringement.
https://www.ovh.com/world/abuse/
Forum: AddOn Help/Support 05-06-20, 02:47 PM
Replies: 14
Views: 1,426
Posted By SDPhantom
While C_Timer.After() can't be canceled, Blizzard...

While C_Timer.After() can't be canceled, Blizzard has a Lua-implemented extension that can, C_Timer.NewTimer() (https://www.townlong-yak.com/framexml/live/C_TimerAugment.lua#40). This returns a...
Forum: AddOn Help/Support 05-06-20, 02:22 PM
Replies: 14
Views: 1,426
Posted By SDPhantom
They get shuffled around based on start time....

They get shuffled around based on start time. Note refreshing an existing buff doesn't change its position.
Also, you should consider buffs getting reapplied before their timer expires or the user...
Forum: General WoW Chat 05-06-20, 02:07 PM
Replies: 1
Views: 3,876
Posted By SDPhantom
It's your forum rank based on how many posts...

It's your forum rank based on how many posts you've made.
If you want to add custom text to the bottom of your posts like mine, look for "Edit Signature" in your User Control Panel.
Forum: AddOn Help/Support 05-05-20, 07:41 AM
Replies: 14
Views: 1,426
Posted By SDPhantom
name will be nil when you run out of buffs in...

name will be nil when you run out of buffs in your scanning. For example, you're scanning for 40 buffs, but only have 3, when you scan for buff #4, it'll return nil because there is no buff #4.
Forum: Lua/XML Help 05-01-20, 01:50 PM
Replies: 3
Views: 509
Posted By SDPhantom
My initial instinct would be to look at...

My initial instinct would be to look at GetSpellBookItemInfo() (https://wow.gamepedia.com/API_GetSpellBookItemInfo).
There are other related functions listed here...
Showing results 1 to 25 of 500