Beispiel #1
0
 private void CycleMenuDown()
 {
     if (bMenuControl)
     {
         currMnIndex = (MnIndex)((int)currMnIndex >= LastMenuIndex ? 0 : (int)currMnIndex + 1);
     }
 }
Beispiel #2
0
 private void CycleMenuUp()
 {
     if (bMenuControl)
     {
         currMnIndex = (MnIndex)((int)currMnIndex <= 0 ? LastMenuIndex : (int)currMnIndex - 1);
     }
 }
Beispiel #3
0
        private void Toggle(MnIndex index)
        {
            switch (index)
            {
            case MnIndex.MN_AUTO_SHOOT:
                bAutoShoot = !bAutoShoot;
                break;

            case MnIndex.MN_SHOW_BOX:
                bShowBox = !bShowBox;
                break;
            }
        }
Beispiel #4
0
        private string GetMenuString(MnIndex idx)
        {
            string result = "";

            switch (idx)
            {
            case MnIndex.MN_AUTO_SHOOT:
                result = "AUTO SHOOT : " + (bAutoShoot ? "[ ON ]" : "[ OFF ]");
                break;

            case MnIndex.MN_SHOW_BOX:
                result = "SHOW BOX" + (bShowBox ? "[ ON ]" : "[ OFF ]");
                break;
            }

            return(result);
        }