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);
        }
Esempio n. 2
0
        public void Initialize()
        {
            this.menu = new FF6Menu(m => context.RecordEvent(m));

            menu.Begin(context.Desktop);
        }