private void CycleMenuDown() { if (bMenuControl) { currMnIndex = (MnIndex)((int)currMnIndex >= LastMenuIndex ? 0 : (int)currMnIndex + 1); } }
private void CycleMenuUp() { if (bMenuControl) { currMnIndex = (MnIndex)((int)currMnIndex <= 0 ? LastMenuIndex : (int)currMnIndex - 1); } }
private void Toggle(MnIndex index) { switch (index) { case MnIndex.MN_AUTO_SHOOT: bAutoShoot = !bAutoShoot; break; case MnIndex.MN_SHOW_BOX: bShowBox = !bShowBox; break; } }
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); }