예제 #1
0
        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>();
        }
예제 #2
0
        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;
        }
예제 #3
0
파일: VerbBar.cs 프로젝트: brianjlacy/Hero6
 private void ChangeMouseCursor(ICursor cursor)
 {
     mouse.Cursor = cursor;
     mouse.SaveCursor();
     mouse.Y = Height;
 }