public override bool HandleMouse(SMouseEvent mouseEvent) { if (mouseEvent.LB || mouseEvent.RB) { CGraphics.HidePopup(EPopupScreens.PopupServerQR); return(true); } return(false); }
private void _ClosePopup() { string _NewProfileName = CProfiles.GetPlayerName(_NewProfileID); if (_NewProfileName.Length < 1) { _DeleteProfile(); } CGraphics.HidePopup(EPopupScreens.PopupNewPlayer); }
public override bool HandleInput(KeyEvent KeyEvent) { base.HandleInput(KeyEvent); if (KeyEvent.KeyPressed && !Char.IsControl(KeyEvent.Unicode)) { } else { switch (KeyEvent.Key) { case Keys.Escape: case Keys.Back: CGraphics.HidePopup(EPopupScreens.PopupPlayerControl); return(false); case Keys.Enter: if (Buttons[htButtons(ButtonNext)].Selected) { CBackgroundMusic.Next(); } if (Buttons[htButtons(ButtonPrevious)].Selected) { CBackgroundMusic.Previous(); } if (Buttons[htButtons(ButtonPlay)].Selected) { CBackgroundMusic.Play(); } if (Buttons[htButtons(ButtonPause)].Selected) { CBackgroundMusic.Pause(); } if (Buttons[htButtons(ButtonRepeat)].Selected) { CBackgroundMusic.RepeatSong = !CBackgroundMusic.RepeatSong; } if (Buttons[htButtons(ButtonShowVideo)].Selected) { VideoPreview = !VideoPreview; } if (Buttons[htButtons(ButtonSing)].Selected) { StartSong(CBackgroundMusic.SongID, CBackgroundMusic.Duet); } if (Buttons[htButtons(ButtonToBackgroundVideo)].Selected) { VideoBackground = !VideoBackground; } break; } } return(true); }
public override bool HandleInput(SKeyEvent keyEvent) { switch (keyEvent.Key) { case Keys.Escape: case Keys.Back: CGraphics.HidePopup(EPopupScreens.PopupServerQR); return(true); } return(base.HandleInput(keyEvent)); }
public override bool HandleInput(KeyEvent KeyEvent) { base.HandleInput(KeyEvent); if (KeyEvent.KeyPressed && !Char.IsControl(KeyEvent.Unicode)) { } else { switch (KeyEvent.Key) { case Keys.Escape: case Keys.Back: CGraphics.HidePopup(EPopupScreens.PopupVolumeControl); return(false); } } return(true); }