void Do_BtnKeyShortcutsReleased(object sender, MouseEventArgs e) { btnKeyShortcuts.ReleaseButton(); btnKeyShortcuts.MouseOverAnimation(); //this.HideSprites(); KeyShortcutsPanel.Visible = true; KeyShortcutsPanel.Enabled = true; btnKeyShortcutsPanel_Back.Show(); btnKeyShortcutsPanel_Back.Enabled = true; }
/// <summary> /// Shows the Options Panel (the 4 general buttons) /// </summary> public void Show() { ResetOptions(); //for when options are changed but the SaveSettings Options button was not pressed //the options return to the LastSave values for (int i = 0; i < generalButtons.Count; i++) { generalButtons[i][0].Show(); } btnSaveOptions.Show(); this.Enabled = true; }
/// <summary> /// Shows the indicated submenu's options /// </summary> void ShowSubmenuButtonOptions(int generalButtonIndex, int submenuButtonIndex) { switch (generalButtonIndex) { case 0: //Game switch (submenuButtonIndex) { case 1: //SaveGame btnSave.Show(); AutosaveSprite.Visible = true; AutosaveScrollbar.Show(); AutosaveTime.Visible = true; break; case 2: //Difficulty rbnEasy.Show(); rbnMedium.Show(); rbnHard.Show(); break; } break; case 1: //Video switch (submenuButtonIndex) { case 1: //ResolutionIndex Resolution.Visible = true; ResolutionIndicator.Show(); break; case 2: //FullScreen rbnFullScreenOn.Show(); rbnFullScreenOff.Show(); break; } break; case 2: //Audio switch (submenuButtonIndex) { case 1: //Volume VolumeIndicator.Show(); VolumeValueSprite.Visible = true; break; case 2: //Sound rbnSoundOn.Show(); rbnSoundOff.Show(); break; } break; case 3: //Controls switch (submenuButtonIndex) { case 1: //Mouse CameraSpeedSprite.Visible = true; CameraSpeedValueSprite.Visible = true; CameraSpeedIndicator.Show(); break; case 2: //Keyboard btnKeyShortcuts.Show(); break; } break; } }