Exemplo n.º 1
0
 void activeMenuItemChanged(object sender, ActiveMenuItemEventArgs e)
 {
     if (e.MenuIndex < 10)
     {
         string s = slot[e.MenuIndex].ToolTip;
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Event handler for when the Load Game menu entry is selected.
        /// </summary>
        void LoadGameMenuEntryContinued(object sender, ActiveMenuItemEventArgs e)
        {
            LoadSaveScreen lss = (LoadSaveScreen)sender;
            string         ls  = lss.chosenOne.Trim();

            if (lss.isConfirmed && !string.IsNullOrEmpty(ls))
            {
                lss = null;
                SmthLoadingScreen.LoadSmth(ScreenManager, evdEnGlobals.theGame.ContinueActions[0], true, e.PlayerIndex,
                                           new GameplayScreen(false, ls));
            }
        }