Quantcast
WoWInterface - Search Results
Showing results 1 to 25 of 32
Search took 0.01 seconds.
Search: Posts Made By: DahkCeles
Forum: Lua/XML Help 11-22-20, 11:32 AM
Replies: 8
Views: 292
Posted By DahkCeles
Option 1: Add a safeguard to RecordPet() so that...

Option 1: Add a safeguard to RecordPet() so that it doesn't try to execute when information is missing.


function BattleDex.RecordPet(species, level, quality, primary)
if (species)...
Forum: AddOn Help/Support 11-08-20, 11:54 AM
Replies: 8
Views: 2,169
Posted By DahkCeles
"The only time you need to consume an xml...

"The only time you need to consume an xml template"

---

It can also be the case if you are interfacing with Blizzard's code that assumes a template. For example, the world map will acquire pins...
Forum: Minion 11-08-20, 11:40 AM
Replies: 7
Views: 3,812
Posted By DahkCeles
I've never used Minion, but I presume it has some...

I've never used Minion, but I presume it has some sort of list of installed addons. I suppose an unrecognized one could be listed but 'greyed out' to say it knows something is there (from reading...
Forum: AddOn Help/Support 11-06-20, 04:00 PM
Replies: 8
Views: 2,169
Posted By DahkCeles
In certain narrow cases, XML is 'mandatory' if...

In certain narrow cases, XML is 'mandatory' if you need to absolutely need to create an XML template. Examples would be pins on the 8.0.1 world map; I don't think that can be done without an XML...
Forum: Lua/XML Help 10-29-20, 05:28 PM
Replies: 7
Views: 1,737
Posted By DahkCeles
And I got the WoD map working too. The nodes...

And I got the WoD map working too. The nodes start at "TaxiButton1" and keep increasing from there.

If you don't mind, I might include this in my own addon as well. It seems like a handy feature...
Forum: Lua/XML Help 10-29-20, 05:00 PM
Replies: 7
Views: 1,737
Posted By DahkCeles
Further testing: underwater nodes in Vashj'ir do...

Further testing: underwater nodes in Vashj'ir do not play nice with above-water nodes in the Eastern Kingdoms. A few extra lines of code can solve that problem...



-- Step 1: Wait for the flight...
Forum: Lua/XML Help 10-29-20, 04:07 PM
Replies: 7
Views: 1,737
Posted By DahkCeles
I had more time to do some toying around, and...

I had more time to do some toying around, and here's a simple solution. I believe the flight paths are already marked, just invisible and changed to a different icon. They appear briefly when you...
Forum: Lua/XML Help 10-29-20, 09:10 AM
Replies: 7
Views: 1,737
Posted By DahkCeles
https://www.townlong-yak.com/framexml/live/Blizzar...

https://www.townlong-yak.com/framexml/live/Blizzard_FlightMap/FM_FlightPathDataProvider.lua

This is how FlightMapFrame populates presently. Line 138 is important: pin:SetPosition()

I wonder what...
Forum: AddOn Help/Support 10-29-20, 07:17 AM
Replies: 6
Views: 1,709
Posted By DahkCeles
I don't know how nameplate numbering works, but...

I don't know how nameplate numbering works, but if it always starts at 1 then maybe you could add this optimization:


for i = 1, 40 do
id = "nameplate" .. i
if UnitExists(id) then
--...
Forum: General Authoring Discussion 10-17-20, 10:04 AM
Replies: 5
Views: 1,589
Posted By DahkCeles
In that case, you might be able to get away with...

In that case, you might be able to get away with just using spellID 190356. I'm not sure if this corresponds to any particular ranks or classic vs retail... this is just grabbing it off wowpedia...
Forum: AddOn Search/Requests 10-17-20, 09:50 AM
Replies: 3
Views: 1,031
Posted By DahkCeles
I think Auctioneer uses LibDataBroker (which...

I think Auctioneer uses LibDataBroker (which TitanPanel is also partly compatible with)
Forum: AddOn Search/Requests 10-17-20, 09:48 AM
Replies: 4
Views: 1,412
Posted By DahkCeles
https://wow.gamepedia.com/API_EditMacro Before...

https://wow.gamepedia.com/API_EditMacro

Before installing this script, create a macro called "myFavouriteMacro" and drag it to an action bar.

You can turn the script into an addon using...
Forum: General Authoring Discussion 10-17-20, 08:45 AM
Replies: 5
Views: 1,589
Posted By DahkCeles
I've found there's two sources of delay,...

I've found there's two sources of delay, especially in Classic: (a) asynchronously querying the localized spell name; and (b) waiting for the spell book to be available at PLAYER_LOGIN.

I quickly...
Forum: AddOn Search/Requests 10-16-20, 08:28 PM
Replies: 4
Views: 1,412
Posted By DahkCeles
I'm sure there's a much more elegant solution,...

I'm sure there's a much more elegant solution, but I came up with this quickly:

/run local f = CreateFrame("Frame") f:RegisterEvent("PLAYER_PVP_TALENT_UPDATE") f:SetScript("OnEvent", function()...
Forum: AddOn Search/Requests 10-16-20, 06:19 PM
Replies: 2
Views: 1,162
Posted By DahkCeles
I would try inserting the following at line...

I would try inserting the following at line 12:



local function initCommon(frame) -- old line 11
if (BackdropTemplateMixin) then
Mixin(frame, BackdropTemplateMixin)
end
...
Forum: General Authoring Discussion 10-16-20, 06:01 PM
Replies: 2
Views: 1,082
Posted By DahkCeles
if (not KeyBindingFrame) then ...

if (not KeyBindingFrame) then
KeyBindingFrame_LoadUI()
end
KeyBindingFrame:Show()
Forum: Lua/XML Help 10-12-20, 03:02 PM
Replies: 15
Views: 3,329
Posted By DahkCeles
Perhaps try the addon "Recount". It won't...

Perhaps try the addon "Recount". It won't automatically spam the chat as the person dies, but it will track deaths on one of its pages and you can broadcast that to chat.

To build it yourself,...
Forum: Lua/XML Help 10-11-20, 10:14 AM
Replies: 5
Views: 1,779
Posted By DahkCeles
Although not applicable here since you found an...

Although not applicable here since you found an event that works.... this is an alternative solution you could use when its necessary to defer an update:


local function doSomething()
-- do...
Forum: AddOn Search/Requests 10-10-20, 10:10 AM
Replies: 6
Views: 3,612
Posted By DahkCeles
When doing work on CT_UnitFrames earlier this...

When doing work on CT_UnitFrames earlier this year, I found one of the biggest performance improvements came from taking old circa Burning Crusade code like this:
RegisterEvent("UNIT_HEALTH")

and...
Forum: Lua/XML Help 10-06-20, 08:29 PM
Replies: 1
Views: 1,710
Posted By DahkCeles
I cannot tell if you are asking how to...

I cannot tell if you are asking how to concatenate the text, or to pass a value 'by reference' into a table?


The concatenation operator is ..

"something something something" .. myVar .. "something...
Forum: AddOn Help/Support 10-04-20, 08:34 PM
Replies: 3
Views: 2,524
Posted By DahkCeles
I'm not sure its only the default ones... it...

I'm not sure its only the default ones... it might be any time you delete a keybinding including custom ones previously introduced by an addon.
Forum: Lua/XML Help 09-17-20, 08:15 PM
Replies: 1
Views: 9,159
Posted By DahkCeles
If you are trying to build an overlay over the...

If you are trying to build an overlay over the entire map frame (its borders, UI elements, etc.), then something like this might help:


local function myFunction()
local isMaximized =...
Forum: PTR General Discussion 09-11-20, 07:57 PM
Replies: 3
Views: 9,707
Posted By DahkCeles
Does this...

Does this work:

https://wow.gamepedia.com/API_C_Item.DoesItemExist
Forum: General Authoring Discussion 09-06-20, 08:04 PM
Replies: 3
Views: 8,246
Posted By DahkCeles
https://wow.gamepedia.com/Category:API_namespaces/...

https://wow.gamepedia.com/Category:API_namespaces/C_Commentator

This page lists all of the functions and things that are documented on Wowpedia for that part of the API.
Forum: Lua/XML Help 07-14-20, 08:31 PM
Replies: 3
Views: 1,120
Posted By DahkCeles
Would this...

Would this help?

https://wow.gamepedia.com/API_GameTooltip_SetHyperlink


LinkFrame:HookScript("OnEnter", function()
if (itemLink) then
GameTooltip:SetOwner(LinkFrame, "ANCHOR_TOP")
...
Showing results 1 to 25 of 32