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 09-05-20, 06:37 PM
Replies: 6
Views: 2,560
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: 1,964
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: 1,964
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: 2,889
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,569
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,131
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,020
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,131
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,351
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,448
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,155
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,155
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,155
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: 804
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,155
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,267
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,701
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,279
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,701
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,279
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: 1,072
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: 797
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,877
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,684
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,641
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...
Showing results 1 to 25 of 500