/// <summary> /// Shows a special view of an object that has an attached description. Intended for use /// with the "look at object" scenario when the object looked at is an inventory item. /// </summary> /// <param name="viewNumber">The number of the view to show the special inventory object view of.</param> public void ShowInventoryObject(byte viewNumber) { // Set up the AnimatedObject that will be used to display this view. AnimatedObject aniObj = new AnimatedObject(state, -1); aniObj.SetView(viewNumber); aniObj.X = aniObj.PrevX = (short)((Defines.MAXX - aniObj.XSize) / 2); aniObj.Y = aniObj.PrevY = Defines.MAXY; aniObj.Priority = 15; aniObj.FixedPriority = true; aniObj.PreviousCel = aniObj.Cel; // Display the description in a window along with the item picture. textGraphics.WindowPrint(state.Views[viewNumber].Description, aniObj); // Restore the pixels that were behind the item's image. aniObj.RestoreBackPixels(); aniObj.Show(pixels); }