[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Forward Declaration
- From: "Speight.Marcus" <marcus.speight@...>
- Date: Tue, 14 Oct 2003 03:51:10 -0700
Hi,
I'm fairly new to LUA and hoped someone could answer a problem for me.
I have a menu system that loads an lua script. But I need a menu to back
reference.
e.g.
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?
Marcus Speight
Software Engineer
Vivid Gaming
The views expressed in this message are those of the sender and not
necessarily those of IGT - UK Limited and its associated companies.