Showing results 1 to 15 of 15
Search took 0.00 seconds.
Search: Posts Made By: DreamStorm
Forum: Lua/XML Help 03-02-09, 11:24 AM
Replies: 12
Views: 5,913
Posted By DreamStorm
Hmmm. I was wondering why that would be as it...

Hmmm. I was wondering why that would be as it works for me; until I looked at my own code and I realised I had copy pasted the wrong OnEvent handler function (I modified it after pasting but not the...
Forum: Lua/XML Help 03-01-09, 07:03 PM
Replies: 15
Views: 5,282
Posted By DreamStorm
If you look at the bit of code below, you will...

If you look at the bit of code below, you will see that the result of running the setmetatable function is assigned to the AddonNameSavedVarsLocal variable.

AddonNameSavedVarsLocal = setmetatable...
Forum: Lua/XML Help 03-01-09, 06:20 PM
Replies: 12
Views: 5,913
Posted By DreamStorm
In hipjipp's example, because the variable...

In hipjipp's example, because the variable assigned to the frame has been declared 'local', I would place it at the top of the *.lua file; that is, outside any other function declaration or...
Forum: Lua/XML Help 03-01-09, 07:06 AM
Replies: 15
Views: 5,282
Posted By DreamStorm
Sorry, I didn't word my last post quite the way I...

Sorry, I didn't word my last post quite the way I meant to. But yeah, I think you do :-) I just wanted to be sure I understood how lua was handling that. The addon I am "working" on doesn't actually...
Forum: Lua/XML Help 03-01-09, 04:55 AM
Replies: 15
Views: 5,282
Posted By DreamStorm
So, if a table has nested tables, the...

So, if a table has nested tables, the setmetatable function produces SavedVar as a shallow copy of defaults rather than a deep one.
Forum: Lua/XML Help 02-28-09, 12:28 PM
Replies: 15
Views: 5,282
Posted By DreamStorm
Ah, OK. I pretty much get that. Thanks for the...

Ah, OK. I pretty much get that. Thanks for the link Slakah.

Can you clear up one thing for me (hopefully I am not being too stupid)? When you say 'subtables' do you mean any key/value pair? For...
Forum: Lua/XML Help 02-28-09, 03:40 AM
Replies: 15
Views: 5,282
Posted By DreamStorm
Actually, I was thinking, could I not shorten...

Actually, I was thinking, could I not shorten that whole thing further to

AddonNameSavedVarsLocal = setmetatable (AddonNameSavedVars or {}, {_index = DEFAULT_SETTINGS}); ?
Forum: Lua/XML Help 02-24-09, 06:51 PM
Replies: 15
Views: 6,220
Posted By DreamStorm
I am kind of new to this lua game myself, so...

I am kind of new to this lua game myself, so apologies if I am a little off the mark ....

I am assuming that you wish to create the data in the table from the returns from the GetGuildRosterInfo()...
Forum: Lua/XML Help 02-23-09, 03:08 PM
Replies: 5
Views: 3,632
Posted By DreamStorm
If you do it that way the latter part of the set...

If you do it that way the latter part of the set script should have a dot not a colon, like

frame:SetScript("OnEvent", myAddon.Eventhandler)
Forum: Lua/XML Help 02-23-09, 01:43 PM
Replies: 15
Views: 5,282
Posted By DreamStorm
Ah, of course; cool. Still getting used to nil...

Ah, of course; cool. Still getting used to nil (values) being both an unknown and a boolean depending on how it's used (or both as your example seems to indicate!).
Forum: Lua/XML Help 02-23-09, 12:46 PM
Replies: 15
Views: 5,282
Posted By DreamStorm
I was working on it this way. Saved variable...

I was working on it this way.

Saved variable declared in the *.toc file as e.g. ##SavedVariables : AddonNameSavedVars

which automatically creates a global table with that name in the AddonName.lua...
Forum: AddOn Search/Requests 02-19-09, 07:43 PM
Replies: 2
Views: 2,707
Posted By DreamStorm
The addon used there is Discord Unit Frames. I...

The addon used there is Discord Unit Frames. I generally use Pitbull but there are may more, all of which allow you to customise them and place them where you want them. Look here ...
Forum: AddOn Help/Support 02-19-09, 07:32 PM
Replies: 162
Views: 256,108
Posted By DreamStorm
You have perhaps extracted it to an incorrect...

You have perhaps extracted it to an incorrect path. It should be (if e.g. your WoW folder is in C:\Program Files) "C:\Program Files\World of Warcraft\Interface\Addons\Lightheaded". WoW reads the...
Forum: AddOn Help/Support 02-05-09, 06:48 AM
Replies: 162
Views: 256,108
Posted By DreamStorm
Duh! Of course; not like the addon name didn't...

Duh! Of course; not like the addon name didn't give it away! Apologies to any authors who got the humpf.

Muse ... I am at work atm so can't check further than a slightly failing memory, but I think...
Forum: AddOn Help/Support 02-04-09, 07:08 PM
Replies: 162
Views: 256,108
Posted By DreamStorm
MuseCitizen ... Click the "Load out of date...

MuseCitizen ...

Click the "Load out of date AddOns" checkbox.

The issue you're seeing occurs when the version number of the addon stored in it's *.toc file is not in line with the latest version...
Showing results 1 to 15 of 15