Example #1
0
        /// <summary>
        /// choose through Yes or No (Exit game)
        /// </summary>
        /// <param name="tb">User table</param>
        /// <param name="dx">shift by horizontals</param>
        public void MoveYesNoExit(ViewTable tb, int dx)
        {
            cursorYesNoExit += dx;
            if (cursorYesNoExit <= 0)
            {
                cursorYesNoExit = 0;
            }
            if (cursorYesNoExit >= 1)
            {
                cursorYesNoExit = 1;
            }
            int x = 20;
            int y = 10;

            tb.SelectYesNo((YesNo)cursorYesNoExit, x, y);
        }
Example #2
0
        /// <summary>
        /// choose through Yes or No (If user win)
        /// </summary>
        /// <param name="tb">User table</param>
        /// <param name="dx">shift by horizontals</param>
        public void MoveYesNo(ViewTable tb, int dx)
        {
            cursorYesNo += dx;
            if (cursorYesNo <= 0)
            {
                cursorYesNo = 0;
            }
            if (cursorYesNo >= 1)
            {
                cursorYesNo = 1;
            }
            int x = 20;
            int y = 20;

            tb.SelectYesNo((YesNo)cursorYesNo, x, y);
        }