lua-users home
lua-l archive

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


> mainMenu = Menu.new
>     :sub "New"
>         :add("New Campaign", ID_CAMPAIGN)
>         :add("New Random Map", ID_RANDOMMAP)
>         :add("Back", ID_BACK)
>     :add("Load Game", ID_LOADGAME)
>     :add("Exit", ID_EXIT)
	You have to write the parenthesis to call the functions:

mainMenu = Menu.new ()
submenu = mainMenu:sub ("New")
submenu:add ("New Campaign", ID_CAMPAIGN)

etc.

	Tomas