|
|||||||||||||||||||||||||||||
|
|
Start Menu(xml) This is a tree structured menu behavior. The whole menu itself comes from the makeList() function of the XMLParser xtra this will be the 'Start Menu' itself. Then the menu will be presented by field castmembers. The depth of the structure isn't limited, just the screensize does that. You don't need sprites, just field members. You can use the myParent property to track back the attributes of the tree. The return function will have the number of the clicked line, the attributes of the menuitem, the parent menuitem's attributes, and the whole submenu too. What will you need: - You have to make a cast named 'menu' and place field castmembers there, as many as you will need from number 1. - If you want a bitmap to be the background of the menus, name it 'background', and put it to the 'menu' cast, anywhere! - You must have a 'startmenu_element_clicked' global function, because it will be called, when a menuelem clicked. - A text or field castmember, that holds the menu structure. This member's text comes from the makeList() function of the XMLParser xtra. (So the simplest thing is to make the menu in xml, and use the XMLPArser Xtra to have the list.)
|
|
|