View Single Post
05-16-18, 01:53 PM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,934
I can't remember the list side of things so I will leave that to someone more versed in that area however .. here is at least something on the other questions.

The frame you create in XML is shown automatically unless you set it to hidden. If you do that then something like Frame:Show() will show the frame on the screen.


The Slash Command, you might want to look at this page for a working example and some background on it.
http://wowwiki.wikia.com/wiki/Creating_a_slash_command

But the MYADDON part of what you put is actually the name of your addon... so for example if you created an addon called NezigLoot then you would have the following values. Although the wowwiki page just says it has to be unique .. seeing as your addon name is usually unique enough ( for the most part ) it will do .


SLASH_NEZIGLOOT1,SLASH_NEZIGLOOT2 = "/nezigloot", "/nl"
SlashCmdList["NEZIGLOOT"] = function() ..... end




Originally Posted by opadfnezig View Post
Not so long ago I understood that I need to make addon. It will be long to explain its meaning, in short it is something like a hybrid of tsm and easyloot. This addon is about looting. I have an experience of programming, know some languages, but never used to work with lua but as I can see this isn't a main problem as there are a lot of lua tutorials on the web. Main problem is wow api and everything connected with it. Yas, we have a wowiki but I can't find things I need there. So, if u interested into helping me to do this, please, msg me. I don't like to ask everything here and then become an object of hating becouse my stupid questions).

Huh, it was a long introduction, here are the questions:
-How can I show the Xml form from Lua?
-I saw SLASH_MYADDON1,SLASH_MYADDON2 = "/myaddon", "/ma" and then something like SlashCmdList["MYADDON"] = new function.... So, it's looking for a variable that have a "MYADDON" in it name and use it? Is it a lua feature and where can I find out about this?
-How can I initialise a ListBox by array of class objects? Is there something like item definition and can I put a checkbox into listbox item?

That's all for now. I'll continue writing into this thread if no one msg.

P.S. Sorry for my possible illiteracy or irrelevance, my english leaves much to be desired.
P.P.S. It's addon for version 5.4.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818