Thread Tools Display Modes
09-05-07, 04:56 PM   #1
jaliborc
A Chromatic Dragonspawn
 
jaliborc's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2007
Posts: 196
Question Using 'levels' in DewdropLib

I'm trying to work with levels in dewdrop. I'de like to have a menu and sub-menu like this one:

Item1
Item2 >>>>> Item2.1
Item2.2

I have tred this code to get started:

dewdrop:Register(Minimap,
'point', "TOP",
'relativePoint', "BOTTOM",
'children', function()
dewdrop:AddLine('text', "Item1")

dewdrop:AddLine(
'text', "Item2",
'hasArrow', true,
'value', "2")

dewdrop:AddLine('text', "Item2.1", 'level', 2)
dewdrop:AddLine('text', "Item2.2", 'level', 2)
end)
However, I get this error message:
Dewdrop-2.0/Dewdrop-2.0.lua: 3050: attempt to index local 'button' (a nil value)
Anybody can help me?
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Using 'levels' in DewdropLib


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off