Quantcast WoWInterface - Search Results
Showing results 1 to 25 of 500
Search took 0.03 seconds.
Search: Posts Made By: Lombra
Forum: Lua/XML Help 05-20-17, 03:59 PM
Replies: 11
Views: 302
Posted By Lombra
Your script file loads before the Main frame is...

Your script file loads before the Main frame is created. One way to fix it that require minimal change would be to add raidDrop:SetParent(Main) to OnLoad. Might need to do SetPoint after that. Not...
Forum: Lua/XML Help 05-20-17, 01:38 PM
Replies: 11
Views: 302
Posted By Lombra
If Main is the name of your frame, it needs to be...

If Main is the name of your frame, it needs to be enclosed within quotes. (and you should use a more unique name to avoid potential namespace conflict) Otherwise, the Main variable is not available...
Forum: Lua/XML Help 05-19-17, 12:59 PM
Replies: 21
Views: 533
Posted By Lombra
You should try CHAT_MSG_LOOT. I don't know that...

You should try CHAT_MSG_LOOT. I don't know that it will fire for every conceivable situation, but I don't think BAG_UPDATE will work very well. First of all you'd need to keep track of what's...
Forum: Lua/XML Help 05-19-17, 03:21 AM
Replies: 4
Views: 161
Posted By Lombra
Maybe use a simple value, such as true or false....

Maybe use a simple value, such as true or false. Or even an empty string if that helps somehow.
Forum: Lua/XML Help 05-08-17, 02:09 PM
Replies: 29
Views: 952
Posted By Lombra
Fair enough. :)

Fair enough. :)
Forum: Lua/XML Help 05-08-17, 12:39 PM
Replies: 29
Views: 952
Posted By Lombra
I'm not saying you did, but it's important not to...

I'm not saying you did, but it's important not to take my quote out of context. I referred to this code sample, specifically. The call to getfenv() will take "much" longer than what you gained from...
Forum: Lua/XML Help 05-07-17, 05:35 PM
Replies: 29
Views: 952
Posted By Lombra
Pretty sure it's a net loss, even.

Pretty sure it's a net loss, even.
Forum: Lua/XML Help 05-04-17, 09:12 AM
Replies: 10
Views: 551
Posted By Lombra
That does nothing.

That does nothing.
Forum: Lua/XML Help 05-01-17, 05:16 PM
Replies: 19
Views: 570
Posted By Lombra
The main reason for separating event handling...

The main reason for separating event handling code is for your own readability. Long if-chains can be difficult to read, and separating the event can make the code neat.

I wouldn't recommend using...
Forum: Lua/XML Help 04-29-17, 07:27 AM
Replies: 10
Views: 310
Posted By Lombra
Don't really know too much about Lua memory...

Don't really know too much about Lua memory allocation and garbage collection. Possibly related to the print calls? Maybe the passed strings allocating new memory?
Forum: Lua/XML Help 04-29-17, 03:32 AM
Replies: 10
Views: 310
Posted By Lombra
I believe they will get garbage collected too,...

I believe they will get garbage collected too, since there are no references to them. Not necessarily immediately, though.
Forum: Lua/XML Help 04-24-17, 04:24 AM
Replies: 22
Views: 584
Posted By Lombra
Well, depends on the nature of the addon and the...

Well, depends on the nature of the addon and the modules, I think.

As I said in the other thread, as a user I generally prefer the least amount of folders possible, though you may not be concerned...
Forum: Lua/XML Help 04-23-17, 07:17 PM
Replies: 22
Views: 584
Posted By Lombra
Yep. tooshort

Yep.

tooshort
Forum: Lua/XML Help 04-23-17, 07:47 AM
Replies: 22
Views: 584
Posted By Lombra
The only other way I can think of is having the...

The only other way I can think of is having the modules as separate addons.
Forum: Lua/XML Help 04-23-17, 03:46 AM
Replies: 22
Views: 584
Posted By Lombra
Well, you will always need to wait for...

Well, you will always need to wait for ADDON_LOADED. What I've seen addons do before is wrap the whole module in a function, and then just wait until ADDON_LOADED before calling it. (or not) If you...
Forum: Lua/XML Help 04-11-17, 06:17 AM
Replies: 8
Views: 440
Posted By Lombra
1. I don't understand. You say it won't track...

1. I don't understand. You say it won't track "before combat" due to the condition, and when you remove that, it does track out of combat. Isn't this working as intended?

2. COMBAT_LOG_EVENT is the...
Forum: General Authoring Discussion 04-02-17, 01:01 PM
Replies: 9
Views: 486
Posted By Lombra
As an end user I would much prefer the least...

As an end user I would much prefer the least amount of folders necessary. If they're not optional (unit frames and action bars shouldn't be) or load on demand, they should definitely be in the same...
Forum: Lua/XML Help 04-01-17, 08:49 PM
Replies: 8
Views: 365
Posted By Lombra
You want to translate links into a language other...

You want to translate links into a language other than that of your own client? That would not be possible, no.
Forum: PTR API and Graphics Changes 03-30-17, 05:00 AM
Replies: 5
Views: 532
Posted By Lombra
They sure have been up to some crazy stuff lately.

They sure have been up to some crazy stuff lately.
Forum: Lua/XML Help 03-13-17, 10:08 AM
Replies: 11
Views: 442
Posted By Lombra
This line should be removed as it's 100%...

This line should be removed as it's 100% redundant, especially in your case.
local _G = getfenv(0);
Even if you wanted to do that, you should probably do this:
local _G = _G;
But even that is mostly...
Forum: General Authoring Discussion 03-07-17, 06:30 PM
Replies: 6
Views: 475
Posted By Lombra
You can simply loop over item IDs from 1 to some...

You can simply loop over item IDs from 1 to some plausible number. I have no idea what item IDs exists these days. Maybe 200 000 or something? You probably can't do it all at once, though, or you...
Forum: General Authoring Discussion 03-06-17, 05:25 PM
Replies: 10
Views: 505
Posted By Lombra
Well, you've still got exactly the same...

Well, you've still got exactly the same limitations as before, only more likely that a uni token for the target exists. I certainly wouldn't rely on it for any sort of PvP purposes. Could probably...
Forum: Lua/XML Help 03-05-17, 08:40 AM
Replies: 12
Views: 549
Posted By Lombra
I think this is a better platform for addon...

I think this is a better platform for addon development discussion, personally. "Spamming" is not an issue as long as you're not clearly abusing. Forums are meant to be used. :) And let's be honest,...
Forum: General Authoring Discussion 02-27-17, 09:50 PM
Replies: 11
Views: 440
Posted By Lombra
I don't understand what you're looking for...

I don't understand what you're looking for exactly. A list of object types, such as Frame, Button, Texture, etc? What are you doing that requires that which you are looking for?
Forum: Lua/XML Help 02-23-17, 07:56 AM
Replies: 17
Views: 1,154
Posted By Lombra
You probably shouldn't be dealing with functions...

You probably shouldn't be dealing with functions in the first place.


local tierList = (function()
local tt = {}
for i=1, EJ_GetNumTiers() do
tt[i] = EJ_GetTierInfo(i)
end
return tt
end)()
Showing results 1 to 25 of 500