lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tue, Oct 14, 2003 at 03:51:10AM -0700, Speight.Marcus wrote:
> SubMenu1 = 
> {
> 	["New Campaign"] = ID_CAMPAIGN,
> 	["New Random Map"] = ID_RANDOMMAP,
> 	["Back"] = Menu                      <-- Problem
> };
> 
> Menu = 
> {
> 	["New"] = SubMenu1,
> 	["Load Game"] = ID_LOADGAME,
> 	["Exit"] = ID_EXIT
> };
> 
> I tried adding Menu = {}; at the beginning of the file but it did not help.
> How to I do this?

Make SubMenu1 a function that takes Menu as an argument and returns a
table.

-- Christian