Forum: Lua/XML Help
06-13-24, 05:17 PM
|
Replies: 5
Views: 289
I was going to suggest GetPlayerInfoByGUID()...
I was going to suggest GetPlayerInfoByGUID() (https://warcraft.wiki.gg/wiki/API_GetPlayerInfoByGUID) as a more direct option.
Not everyone that shows up in your combat log is going to have a valid...
|
Forum: Lua/XML Help
05-31-24, 10:15 AM
|
Replies: 4
Views: 781
|
Forum: Lua/XML Help
05-26-24, 02:41 AM
|
Replies: 3
Views: 876
For dynamically creating keybinds, you need to...
For dynamically creating keybinds, you need to use the SetBinding* (https://warcraft.wiki.gg/wiki/World_of_Warcraft_API#Key_Bindings) functions.
Here's an additional link you may be interested...
|
Forum: Lua/XML Help
05-23-24, 02:21 PM
|
Replies: 5
Views: 710
|
Forum: Lua/XML Help
05-23-24, 07:37 AM
|
Replies: 5
Views: 710
/reload completely wipes the Lua state the same...
/reload completely wipes the Lua state the same as a normal logout would. The only way to get anything to survive is by using SavedVariables.
Not sure how you think table.remove() is going to solve...
|
Forum: AddOn Help/Support
05-22-24, 03:22 AM
|
Replies: 3
Views: 677
I'd suggest taking a look at...
I'd suggest taking a look at LFGListUtil_SetSearchEntryTooltip() (https://github.com/Gethe/wow-ui-source/blob/87c526a3ae979a7f5244d635bd8ae952b4313bd8/Interface/FrameXML/LFGList.lua#L3553-L3683)....
|
Forum: AddOn Help/Support
05-18-24, 05:02 AM
|
Replies: 4
Views: 710
|
Forum: AddOn Help/Support
05-16-24, 03:58 AM
|
Replies: 5
Views: 813
|
Forum: AddOn Help/Support
05-15-24, 07:19 PM
|
Replies: 5
Views: 813
|
Forum: Lua/XML Help
04-28-24, 02:53 PM
|
Replies: 4
Views: 1,832
|
Forum: Lua/XML Help
04-23-24, 06:16 AM
|
Replies: 4
Views: 1,832
I'm seeing more, but ultimately, all of...
I'm seeing more, but ultimately, all of .ScrollBox's scripts manipulate .ScrollBar, which fires an OnScroll event through its inherited CallbackRegistry. The event fires with the scroll percent, so...
|
Forum: PTR API and Graphics Changes
04-19-24, 09:16 PM
|
Replies: 6
Views: 15,330
Something I noticed is HelpTip:Show()...
Something I noticed is HelpTip:Show() (https://github.com/Gethe/wow-ui-source/blob/live/Interface/SharedXML/HelpTip.lua#L174) calls HelpTipTemplateMixin:Init()...
|
Forum: AddOn Help/Support
04-19-24, 04:12 PM
|
Replies: 2
Views: 1,441
If it has more than one anchor set, it might be...
If it has more than one anchor set, it might be locked to the size of its parent. If you run :ClearAllPoints() (https://warcraft.wiki.gg/wiki/API_ScriptRegionResizing_ClearAllPoints), it'll wipe them...
|
Forum: AddOn Help/Support
04-16-24, 06:17 PM
|
Replies: 25
Views: 3,369
|
Forum: Lua/XML Help
04-14-24, 04:37 PM
|
Replies: 1
Views: 1,055
|
Forum: Lua/XML Help
04-13-24, 02:28 AM
|
Replies: 2
Views: 1,205
Pretty much anything that inherits from...
Pretty much anything that inherits from SecureUnitButtonTemplate (https://warcraft.wiki.gg/wiki/SecureUnitButtonTemplate) will do this automatically, including the DefaultUI. There appears to be some...
|
Forum: AddOn Help/Support
04-08-24, 06:54 PM
|
Replies: 1
Views: 1,010
Tables can't be sorted by keys. This is a...
Tables can't be sorted by keys. This is a combination of how Lua tables are stored in memory and how WoW serializes SavedVars. Lua tables are stored in two components, an array list and a hashmap....
|
Forum: AddOn Help/Support
04-04-24, 02:28 AM
|
Replies: 5
Views: 1,348
|
Forum: AddOn Help/Support
04-02-24, 06:34 PM
|
Replies: 5
Views: 1,348
Unless you're hooking into a Blizzard LoD...
Unless you're hooking into a Blizzard LoD "addon", the UI code is already loaded before yours. There's no need to delay creating your button.
Unless the inherited template requires it, frame names...
|
Forum: AddOn Help/Support
04-02-24, 02:52 PM
|
Replies: 2
Views: 1,274
|
Forum: Lua/XML Help
04-01-24, 06:15 PM
|
Replies: 3
Views: 1,306
The problem with this is OnLoad runs when...
The problem with this is OnLoad runs when CreateFrame() is called. Registering a script to it through Lua does nothing as it's never called again.
It's still a good idea to proofread any code...
|
Forum: Lua/XML Help
03-29-24, 11:02 PM
|
Replies: 3
Views: 1,303
On the surface, this is just storing one table...
On the surface, this is just storing one table into another and keeping a local reference to it. Taking the rest of the message into account, I'm assuming the real question is, "What is the 'local...
|
Forum: UI Screenshots, Feedback and Design Discussion
03-29-24, 08:28 PM
|
Replies: 6
Views: 2,174
|
Forum: Lua/XML Help
03-26-24, 02:39 PM
|
Replies: 2
Views: 1,862
tooltip:GetItem() was replaced with...
tooltip:GetItem() was replaced with TooltipUtil.GetDisplayedItem() (https://github.com/Gethe/wow-ui-source/blob/live/Interface/SharedXML/Tooltip/TooltipUtil.lua#L98-L112).
|
Forum: Lua/XML Help
03-23-24, 08:44 PM
|
Replies: 6
Views: 2,123
|