public void Initialize() { var menu = new Menu(); var layout = new SingleColumnLayout(); layout.AddMenuItem("Start", () => context.RecordEvent("Game Start")); layout.AddMenuItem("Load", () => context.RecordEvent("Game Load")); layout.AddMenuItem("Quit", () => context.RecordEvent("Game Quit")); menu.Layout = layout; var workspace = new Workspace("Default"); workspace.Layout.Add(menu); context.Desktop.PushWorkspace(workspace); }
public void Initialize() { this.menu = new FF6Menu(m => context.RecordEvent(m)); menu.Begin(context.Desktop); }