Tramway SDK
tram::Ext::Menu::Menu Namespace Reference

Menu base interface class. More...

Detailed Description

Menu base interface class.

To implement this interface, implement the Display() method. This method will be called once per frame and needs to draw the menu. Then implement the Layer() method. This method needs to return the layer index of the menu.

The menu framework will draw only the topmost menu in the menu stack with any given index.

When you are ready to deploy a menu, create it using new and Push() it on the stack. After that, you can forget it. When it gets popped from the stack, it will be deleted for you.