Showing results 1 to 25 of 41
Search took 0.00 seconds.
Search: Posts Made By: LanceDH
Forum: General Authoring Discussion 08-25-19, 06:40 AM
Replies: 2
Views: 4,170
Posted By LanceDH
I said I'd make a guide for hybrid scrollframes...

I said I'd make a guide for hybrid scrollframes at some point, but never got around to it. What exactly are you looking to use it for? Just having a single frame with some stuff on it that can be...
Forum: AddOn Help/Support 08-08-19, 11:14 AM
Replies: 8
Views: 4,344
Posted By LanceDH
This seems to scan just fine local i = 1; local...

This seems to scan just fine
local i = 1;
local line = _G["GameTooltipTextLeft"..i];
while line do
print(line:GetText());
i = i + 1;
line = _G["GameTooltipTextLeft"..i];
end
Forum: General Authoring Discussion 07-16-19, 01:26 PM
Replies: 12
Views: 10,040
Posted By LanceDH
Pretty sure it's a catch-22. People use Curse...

Pretty sure it's a catch-22. People use Curse because it's where most of the add-ons are, and authors use Curse because it's where most of the people are.
And no offense, but to me Curse's add-on...
Forum: Lua/XML Help 07-09-19, 03:14 AM
Replies: 6
Views: 10,611
Posted By LanceDH
Haven't fully checked it, but keep in mind that...

Haven't fully checked it, but keep in mind that data from GetItemInfo isn't always instantly available. Check the Details section at the WoWpedia page (https://wow.gamepedia.com/API_GetItemInfo).
I...
Forum: Lua/XML Help 06-29-19, 02:08 AM
Replies: 33
Views: 13,139
Posted By LanceDH
I've updated the ItemType...

I've updated the ItemType (https://wow.gamepedia.com/index.php?title=ItemType) page a while back because it was outdated and I needed the info myself.
Either way, I have some free time the coming...
Forum: Lua/XML Help 06-28-19, 01:56 PM
Replies: 33
Views: 13,139
Posted By LanceDH
About that......

About that... (https://youtu.be/mx_C7LkB1Q8?t=2756)
This is from 4 years ago of course. Considering the 7.2 documentation, it's probably getting better now.
Forum: Lua/XML Help 06-28-19, 04:22 AM
Replies: 33
Views: 13,139
Posted By LanceDH
I just wanted to chime in and say that this is...

I just wanted to chime in and say that this is exactly how I learned to use HybridScrollFrames.

I could be wrong in this assumption, but I seem to be in the minority when it comes to using XML for...
Forum: Lua/XML Help 06-27-19, 05:09 AM
Replies: 26
Views: 10,299
Posted By LanceDH
I can't link to the original post because the old...

I can't link to the original post because the old forums got moved, but there's a post from Lore explaining things:
Forum: Dev Tools 06-25-19, 06:58 AM
Replies: 9
Views: 12,764
Posted By LanceDH
Little late after the fact, but with the 8.2...

Little late after the fact, but with the 8.2 update, I've uploaded it to WoWInterface as well.
https://www.wowinterface.com/downloads/info25043-APIInterface.html
A few changes since the first time I...
Forum: Lua/XML Help 01-06-19, 06:47 AM
Replies: 12
Views: 1,955
Posted By LanceDH
This is off topic to the main question, but in...

This is off topic to the main question, but in the spirit of explaining code:

... is a collection of multiple variables.
Say you have a
function test(...)
And you call it using
test(1, true,...
Forum: Lua/XML Help 09-04-18, 02:19 PM
Replies: 2
Views: 1,255
Posted By LanceDH
Damnit.. I'm trying to use string opetations on...

Damnit.. I'm trying to use string opetations on LFG titles, but for whatever reason they are battlenet escape sequences.
Forum: Lua/XML Help 09-04-18, 11:02 AM
Replies: 2
Views: 1,255
Posted By LanceDH
Can you get a name out of a battlenet escape sequence?

So apparently Blizzard uses the |K escape sequence to display battlenet names.
I'm trying to figure out if there's a way to get the result of this escape sequence as an actual string value.
Forum: Wish List 09-01-18, 07:39 AM
Replies: 8
Views: 6,785
Posted By LanceDH
Ye I noticed the specific buttons in Blizzard's...

Ye I noticed the specific buttons in Blizzard's UI I was testing with didn't have the third argument filled in, hence why I deleted the comment.
Forum: General Authoring Discussion 08-28-18, 09:09 AM
Replies: 1
Views: 2,445
Posted By LanceDH
There might be a different way, but you could...

There might be a different way, but you could hook into its OnEditFocusGained and OnEditFocusLost scripts.
Note that, if it loses focus by the player clicking another edit box, 'OnEditFocusLost' will...
Forum: Lua/XML Help 07-24-18, 10:31 AM
Replies: 4
Views: 6,154
Posted By LanceDH
I don't know about getting around the table...

I don't know about getting around the table issue, but for less function calls try:

hooksecurefunc(WorldMapFrame, "OnMapChanged", function()
local mapID = WorldMapFrame.mapID;
end);
Forum: PTR General Discussion 07-03-18, 05:41 PM
Replies: 14
Views: 16,275
Posted By LanceDH
I ended up converting the 8.0.1 version of the...

I ended up converting the 8.0.1 version of the UIDropDownMenu into a libstub library, including turning the XML into lua.
Took me a while and still need to iron out a few things, but I'm having it...
Forum: Dev Tools 07-01-18, 05:05 AM
Replies: 9
Views: 12,764
Posted By LanceDH
APIInterface - An interface for official API documentation

As I bumped into the in-game API documentation in 7.2 I found it rather annoying to use as it's all stuck in chat. So I end up making an addon that takes the documentation and presents it in an easy...
Forum: PTR General Discussion 06-30-18, 09:31 AM
Replies: 14
Views: 16,275
Posted By LanceDH
I'll just wait until we get closer to release to...

I'll just wait until we get closer to release to see if they fix it. If not I'm just going to end up creating a lib with a different prefix for every addon. It's luckily just a few seconds to replace...
Forum: Lua/XML Help 06-30-18, 09:17 AM
Replies: 2
Views: 1,191
Posted By LanceDH
getn only works with positive integer keys, from...

getn only works with positive integer keys, from 1 until the sequence breaks.
If the key is another type, such as a table or string in this case, it won't count it.

local t = {"a", "b",...
Forum: PTR General Discussion 06-30-18, 08:54 AM
Replies: 14
Views: 16,275
Posted By LanceDH
So what you're saying is: Create the lib as a...

So what you're saying is:
Create the lib as a separate addon
Give it a name that ensures it's loaded first
Have the actual addons depend on it
Package a copy of this addon with the actual addon
If...
Forum: PTR General Discussion 06-30-18, 08:29 AM
Replies: 14
Views: 16,275
Posted By LanceDH
Sooo, they've made the DropDownMenu issue even...

Sooo, they've made the DropDownMenu issue even more annoying.
I don't know much about libs, so to me the path of least resistance would be to just change the prefix of the lib for every addon.
Forum: PTR General Discussion 06-30-18, 07:14 AM
Replies: 14
Views: 16,275
Posted By LanceDH
Deferred XML Node object named <name> already exists

I've just started updating my second addon on the beta client, and I'm running into an error about XML nodes with the same name already existing.
Because using Blizzard's dropdown menu code causes...
Forum: Lua/XML Help 07-22-16, 02:16 AM
Replies: 4
Views: 2,389
Posted By LanceDH
So in a nutshell; It's impossible to use dropdown...

So in a nutshell; It's impossible to use dropdown menus using blizz's code without getting this issue?
Forum: Lua/XML Help 07-21-16, 01:15 PM
Replies: 4
Views: 2,389
Posted By LanceDH
Addon causing CompactRaidFrames errors in combat

One of my addons is having issues with CompactRaidFrames errors when someone leaves/joins a group while in combat.
Example error:
1x [ADDON_ACTION_BLOCKED] AddOn 'LoreLibrary' tried to call the...
Forum: Lua/XML Help 10-24-15, 11:13 AM
Replies: 18
Views: 7,515
Posted By LanceDH
I decided to just go with dragging from my own...

I decided to just go with dragging from my own buttons instead.
I'm still tainting the other frames but so far they don't seems to cause problems with any protected functions.
If they end up doing...
Showing results 1 to 25 of 41