Showing results 1 to 25 of 130
Search took 0.01 seconds.
Search: Posts Made By: AnrDaemon
Forum: Lua/XML Help 01-20-15, 09:49 AM
Replies: 22
Views: 1,942
Posted By AnrDaemon
I didn't mean "performance" as a "speed up" :)...

I didn't mean "performance" as a "speed up" :) (English language is so prone to a word play…)
Forum: Lua/XML Help 01-19-15, 07:25 PM
Replies: 22
Views: 1,942
Posted By AnrDaemon
Yup. I did exactly that, when implementing your...

Yup. I did exactly that, when implementing your suggestion.
I've also dropped a check for "func = handler[func]" as redundant and not really adding to the performance.
So far, so good. Though, I...
Forum: Lua/XML Help 01-19-15, 06:43 AM
Replies: 22
Views: 1,942
Posted By AnrDaemon
When the "func" is a function, you set "handler"...

When the "func" is a function, you set "handler" to "false" in event registration.
When you check for f[event][func], it'll return your "false" and unregister will not succeed.
Forum: Lua/XML Help 01-18-15, 06:04 PM
Replies: 22
Views: 1,942
Posted By AnrDaemon
Correct me, if I wrong, but this one: function...

Correct me, if I wrong, but this one:
function addon:UnregisterEvent(event, func, handler)
if handler then
func = handler[func]
end
if func and f[event] and f[event][func] then
f[event][func]...
Forum: Lua/XML Help 12-28-14, 10:53 AM
Replies: 22
Views: 1,942
Posted By AnrDaemon
Thank you very much for your examples! Have a...

Thank you very much for your examples! Have a happy new year!
Forum: Lua/XML Help 12-27-14, 08:32 AM
Replies: 7
Views: 1,052
Posted By AnrDaemon
Pediwikia is a poor argument.

Pediwikia is a poor argument.
Forum: Lua/XML Help 12-27-14, 08:20 AM
Replies: 22
Views: 1,942
Posted By AnrDaemon
There was, but it seems it was lost in the...

There was, but it seems it was lost in the beginning of the thread :)
I'lll reiterate.
I have an addon that grew a little to big to manage it in one function. But it IS, basically, a few functions -...
Forum: Lua/XML Help 12-26-14, 10:25 PM
Replies: 22
Views: 1,942
Posted By AnrDaemon
Actually, LoadWith does NOT set my addon as LoD....

Actually, LoadWith does NOT set my addon as LoD. Without LoD=1 the scheme just did not work at all.
However, with
## LoadWith: Blizzard_GarrisonUI
## LoadOnDemand: 1
everything fell in place. I'm one...
Forum: Lua/XML Help 12-26-14, 08:46 AM
Replies: 22
Views: 1,942
Posted By AnrDaemon
Going back to events and order of execution. (Not...

Going back to events and order of execution. (Not related to Garrison UI now, but just because we've touched that already.)
Is there any documentation on the order of events firing? Or a library that...
Forum: Lua/XML Help 12-25-14, 11:47 PM
Replies: 22
Views: 1,942
Posted By AnrDaemon
Yeah, that could be a solution, too. If I would...

Yeah, that could be a solution, too. If I would to write a separate addon :)
Which I probably would, considering other factors.
Forum: Lua/XML Help 12-25-14, 11:14 PM
Replies: 22
Views: 1,942
Posted By AnrDaemon
That would cause Garrison UI to load...

That would cause Garrison UI to load unconditionally, wouldn't it?
I'd like to avoid it, if I can help it. My loading times already quite long.
Besides, I can use some coding practice. :rolleyes:
Forum: Lua/XML Help 12-25-14, 08:27 PM
Replies: 7
Views: 1,052
Posted By AnrDaemon
I can attest to that. The rule I've learned about...

I can attest to that.
The rule I've learned about Lua: when you want your first parameter to be a class reference, declare function as class:funcname().
Then you automatically get "self" reference.
Forum: Lua/XML Help 12-25-14, 08:23 PM
Replies: 22
Views: 1,942
Posted By AnrDaemon
On a second thought, I could use a little hint or...

On a second thought, I could use a little hint or two.
Right now, I have everything in a single file. Which, quite unsurprisingly, grow "a little" unwieldy.
I plan to separate stuff into more...
Forum: Lua/XML Help 12-25-14, 04:56 PM
Replies: 22
Views: 1,942
Posted By AnrDaemon
That's an idea. Thankfully I've the necessary...

That's an idea. Thankfully I've the necessary infrastructure already in place.
Forum: Lua/XML Help 12-25-14, 03:14 PM
Replies: 22
Views: 1,942
Posted By AnrDaemon
Little help fixing too flashy garrison frames

I'm trying to make a permanent fix to abusive garrison interface.
I've found a way to disable flash for order queue frame, …frame =...
Forum: General Authoring Discussion 11-05-13, 02:51 PM
Replies: 6
Views: 2,407
Posted By AnrDaemon
Interesting, thanks.

Interesting, thanks.
Forum: General Authoring Discussion 11-05-13, 03:43 AM
Replies: 6
Views: 2,407
Posted By AnrDaemon
Could you, please, elaborate on it? What I really...

Could you, please, elaborate on it? What I really want to know, is how certain you are, that this is "dragging something", and not just cursor has activated effect (i.e. Resurrection spell was cast...
Forum: General Authoring Discussion 11-05-13, 03:36 AM
Replies: 11
Views: 3,993
Posted By AnrDaemon
http://cygwin.com/ No need to be on Linux to have...

http://cygwin.com/
No need to be on Linux to have a full-feature command line toolset.
Forum: Lua/XML Help 11-05-13, 02:36 AM
Replies: 7
Views: 1,570
Posted By AnrDaemon
If you are modifying some frame with your own, it...

If you are modifying some frame with your own, it makes sense to parent it to modified frame, or it's parent. Just for consistency, if not for any other reason.
Forum: Lua/XML Help 11-05-13, 02:25 AM
Replies: 15
Views: 3,122
Posted By AnrDaemon
I can put your issue in this way: OnUpdate runs...

I can put your issue in this way:
OnUpdate runs every frame. That is, every time a game render new frame, it run your OnUpdate handler.
You can do something at that time, or not, matters not. Unless...
Forum: Lua/XML Help 11-05-13, 02:07 AM
Replies: 7
Views: 2,446
Posted By AnrDaemon
The default (that is, Blizzard own) code is...

The default (that is, Blizzard own) code is cheating. Simple as that.
Forum: Lua/XML Help 08-04-13, 11:50 AM
Replies: 13
Views: 3,923
Posted By AnrDaemon
Sorry, but your incrimination makes little sense....

Sorry, but your incrimination makes little sense. I posted my code, when it was written. I didn't held it back on purpose, or anything of that kind.
Forum: Lua/XML Help 07-27-13, 12:08 AM
Replies: 13
Views: 3,923
Posted By AnrDaemon
Yeah, sorry for confusion. Aww, blind my eyes....

Yeah, sorry for confusion.


Aww, blind my eyes. Found it. That's really wrong way to handle things, indeed.


I was afraid of that, on a second thought. Fixed now.


Now, that's the kind of...
Forum: Lua/XML Help 07-26-13, 04:55 AM
Replies: 13
Views: 3,923
Posted By AnrDaemon
Yes, I largely don't need it immediately....

Yes, I largely don't need it immediately. Certainly not in the same frame - I have no intention to get WoW stuck on every other window opening.
Though, that previous example with metatable will be a...
Forum: Lua/XML Help 07-26-13, 01:00 AM
Replies: 13
Views: 3,923
Posted By AnrDaemon
Aww, stupid... After bashing over a wall of air,...

Aww, stupid... After bashing over a wall of air, it finally worked quite nicely.

local tooltip = CreateFrame("GameTooltip", "MyPrivateStuff_QTipFrame", UIParent, "GameTooltipTemplate")

function...
Showing results 1 to 25 of 130