Exemplo n.º 1
0
 void ConfirmSaveMessageBoxAccepted(object sender, PlayerIndexEventArgs e)
 {
     var pss = new ProfileScreen((ScreenManager.Game as HalfCakedGame).Device);
     pss.ProfileSelected += ConfirmExitMessageBoxAccepted;
     ScreenManager.AddScreen(pss, e.PlayerIndex);
 }
Exemplo n.º 2
0
        void ProfileMenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            var device = (ScreenManager.Game as HalfCakedGame).Device;
            GameScreen msgbox;
            if (device != null)
                msgbox = new ProfileScreen(device);
            else
                msgbox = new MessageBoxScreen("Unable to write to your documents folder. Cannot save profiles.", new string[]{"Ok"}, 0);

            ScreenManager.AddScreen(msgbox, null);
        }