Quantcast
WoWInterface - Search Results
Showing results 1 to 25 of 499
Search took 0.02 seconds.
Search: Posts Made By: Kanegasi
Forum: Lua/XML Help 10-16-20, 09:37 PM
Replies: 2
Views: 370
Posted By Kanegasi
Many API functions that have many returns are...

Many API functions that have many returns are being changed into returning a table.

Instead of the following:

local first, second, third = GetDataStuff()
-- first == "1st" and second == "2nd" and...
Forum: AddOn Help/Support 10-04-20, 08:49 PM
Replies: 3
Views: 1,057
Posted By Kanegasi
Similar to the AddOns.txt file, WoW doesn't...

Similar to the AddOns.txt file, WoW doesn't delete those lines. Once a setting is added, that line stays, so if you unmap a keybinding, it will be assigned to NONE, which is effectively nil. The cvar...
Forum: Lua/XML Help 10-03-20, 10:33 AM
Replies: 9
Views: 1,935
Posted By Kanegasi
The secure part of the UI is very sensitive. If...

The secure part of the UI is very sensitive. If you do anything that involves or even touches any part that is clickable, such as moving and sizing, it taints the entire thing. Even messing with the...
Forum: General Authoring Discussion 09-26-20, 03:56 PM
Replies: 8
Views: 2,662
Posted By Kanegasi
classic has the item api retail uses, at least...

classic has the item api retail uses, at least according to the code extract. Here's what I use in a retail weakaura to track and loot openable looted items:

if event=="BAG_UPDATE_DELAYED" then
...
Forum: AddOn Search/Requests 09-10-20, 04:49 PM
Replies: 11
Views: 9,351
Posted By Kanegasi
Register for ADDON_LOADED so you can execute the...

Register for ADDON_LOADED so you can execute the code when the talent UI loads.

local f=CreateFrame("frame")
f:RegisterEvent("ADDON_LOADED")
f:SetScript("OnEvent",function(self,event,addon)
if...
Forum: AddOn Search/Requests 09-04-20, 08:09 AM
Replies: 2
Views: 3,223
Posted By Kanegasi
VendorBait still works, I've been using it for...

VendorBait still works, I've been using it for years. You need to install the unreleased beta version tekkub uploaded back in Warlords. It is the current file here on this site, but you have to go to...
Forum: Lua/XML Help 08-29-20, 03:57 PM
Replies: 5
Views: 2,831
Posted By Kanegasi
I tested the code you provided and all three...

I tested the code you provided and all three buttons work for me. The left and right buttons even work in combat, but the middle button does not. I used a piece of a weakaura I have for the...
Forum: Lua/XML Help 08-29-20, 11:19 AM
Replies: 5
Views: 2,831
Posted By Kanegasi
Try using CastSpell(prof1) instead....

Try using CastSpell(prof1) instead. GetProfessions() returns spell book indexes which can be fed straight into CastSpell().
Forum: Lua/XML Help 08-28-20, 07:46 PM
Replies: 18
Views: 7,378
Posted By Kanegasi
local functions = {} functions.functionA =...

local functions = {}
functions.functionA = function()
-- stuff here
end
Forum: AddOn Help/Support 08-26-20, 03:33 PM
Replies: 2
Views: 2,848
Posted By Kanegasi
ActionButton1.Border = nil Using hide won't...

ActionButton1.Border = nil

Using hide won't work, since the code responsible for the green border will show it again.

\FrameXML\ActionButton.lua

-- Add a green border if button is an equipped...
Forum: AddOn Help/Support 08-15-20, 03:15 PM
Replies: 2
Views: 3,295
Posted By Kanegasi
TomTom has a function that adds waypoints to the...

TomTom has a function that adds waypoints to the current zone. You can also drop the "if TomTom" at the beginning, its redundant if you're using this macro in the first place.

/run for _,v in...
Forum: AddOn Help/Support 08-14-20, 12:21 AM
Replies: 2
Views: 1,327
Posted By Kanegasi
hooksecurefunc("CompactUnitFrame_UpdateName",funct...

hooksecurefunc("CompactUnitFrame_UpdateName",function(frame)
local arena
if IsActiveBattlefieldArena() and frame.unit:find("nameplate") then
for i=1,5 do
if...
Forum: General Authoring Discussion 08-02-20, 01:48 PM
Replies: 3
Views: 2,998
Posted By Kanegasi
The addon Blizzard_Communities is LoadOnDemand....

The addon Blizzard_Communities is LoadOnDemand. Out of all actions in the UI that load it, the one that usually gets it first is when your chat channel list updates in...
Forum: AddOn Search/Requests 08-01-20, 04:31 PM
Replies: 2
Views: 4,704
Posted By Kanegasi
This addon does something similar:...

This addon does something similar: https://www.wowinterface.com/downloads/info25160-ItemTooltipProfessionIcons.html
Forum: Macro Help 07-29-20, 10:27 PM
Replies: 1
Views: 4,029
Posted By Kanegasi
Could you be more specific? What is "darkness...

Could you be more specific? What is "darkness face" or "face of darkness"?
Forum: AddOn Help/Support 07-17-20, 02:16 AM
Replies: 11
Views: 1,904
Posted By Kanegasi
Sometimes a frame's Show widget, or at least the...

Sometimes a frame's Show widget, or at least the pointer you can hook, isn't used to show the frame. The OnShow handler is guaranteed to fire every time the frame shows.
Forum: General Authoring Discussion 07-15-20, 04:10 PM
Replies: 5
Views: 2,468
Posted By Kanegasi
The 0 index is exactly what OP is asking for....

The 0 index is exactly what OP is asking for. What OP wants is an easy way to clear all markers off the group without spamming messages. The 0 index at the end of the loop only clears the last marker...
Forum: Carbonite: Maps (Main AddOn) 07-08-20, 11:40 AM
Replies: 3
Views: 862
Posted By Kanegasi
Carbonite.lua line 956 disables the function that...

Carbonite.lua line 956 disables the function that would display the time played in chat.

function Nx:OnPlayer_login (event, ...)
Nx:OnParty_members_changed()
Nx.Com:OnEvent...
Forum: Lua/XML Help 07-04-20, 02:16 PM
Replies: 2
Views: 967
Posted By Kanegasi
The text size is dictated by UIErrorsFrame...

The text size is dictated by UIErrorsFrame itself, I don't think you can change the size of an individual line.

As for the icon, I don't think you can dynamically get the file path to use in the...
Forum: Lua/XML Help 07-03-20, 05:16 AM
Replies: 3
Views: 1,080
Posted By Kanegasi
The SetScript part isn't going to affect the AH,...

The SetScript part isn't going to affect the AH, you're right, but the suggestion is still valid. SetScript replaces whatever function was on that frame while HookScript adds a function to a frame....
Forum: Lua/XML Help 06-30-20, 01:42 PM
Replies: 4
Views: 1,250
Posted By Kanegasi
It's possible the LOOT_CLOSED event is too early...

It's possible the LOOT_CLOSED event is too early to use, since it fires before the last CHAT_MSG_LOOT event for everything you looted. I suggest using BAG_UPDATE_DELAYED, which fires once at the end...
Forum: Lua/XML Help 06-30-20, 02:07 AM
Replies: 4
Views: 1,250
Posted By Kanegasi
When asking help with code, please avoid the...

When asking help with code, please avoid the phrases "not working correctly" and "getting an error".

Instead of declaring the code "not working correctly", you need to be specific with what you want...
Forum: Macro Help 06-28-20, 11:19 PM
Replies: 4
Views: 2,850
Posted By Kanegasi
Ah, DBM. I was confused by the /count since DBM...

Ah, DBM. I was confused by the /count since DBM uses /pull. Same format, different function. Unfortunately, DBM doesn't expose its pull function, but we can use the registered SlashCmdList function...
Forum: Macro Help 06-28-20, 09:22 PM
Replies: 4
Views: 2,850
Posted By Kanegasi
I'm assuming you're talking about the new...

I'm assuming you're talking about the new countdown feature on the alpha. Unfortunately, the /countdown command does not parse any secure macro options and only accepts numbers. However, you can skip...
Forum: Lua/XML Help 06-24-20, 10:57 PM
Replies: 16
Views: 1,912
Posted By Kanegasi
The functions that SDPhantom mentioned aren't...

The functions that SDPhantom mentioned aren't functions you use, they are what transform the special {} strings into icons in clients that receive your message.

All you need to send a raid icon in...
Showing results 1 to 25 of 499