private void OnMouseEnter(object s, EventArgs e) { // If the game is paused it's probably because some other dialog is showing or event is happening if (gameSettings.IsPaused) { return; } IsVisible = false; userInterfaces.Current.GetWindow <VerbBar>().IsVisible = true; mouse.SaveCursor(); mouse.Cursor = userInterfaces.Current.GetCursor <Arrow>(); }
private void OnMouseEnter(object s, EventArgs e) { if (userInterfaces.Current.Dialogs.Any(d => d.Value.IsVisible)) { return; } userInterfaces.Current.GetWindow <StatusBar>().IsVisible = false; userInterfaces.Current.GetWindow <VerbBar>().IsVisible = true; mouse.SaveCursor(); mouse.Cursor = Cursor.Arrow; gameSettings.IsPaused = true; }
private void ChangeMouseCursor(ICursor cursor) { mouse.Cursor = cursor; mouse.SaveCursor(); mouse.Y = Height; }