public void SelectItem(ItemInstance item) { if (item == null) { renderWindow.MouseCursor = this.originalMouseCursor; } else { var cursorSprite = renderWindow.LoadSprite(ResourcePaths.GeneratePathForItem(item.Item.InvFile), Palettes.Units); renderWindow.MouseCursor = renderWindow.LoadCursor(cursorSprite, 0, new Point(cursorSprite.FrameSize.Width / 2, cursorSprite.FrameSize.Height / 2)); } this.SelectedItem = item; }