Time for action – tile selection controls

  1. Expand the Textures folder in the Level Editor Content project.
  2. Click on the PlatformTiles.png file. The Properties window below Solution Explorer will update to display the properties of the image file.
  3. Change the Copy to Output Directory property to Copy if newer.
  4. Switch back to the Design mode view of the MapEditor form.
  5. Add an ImageList control to the MapEditor form by double-clicking on the control in the Toolbox window. It will show up in the gray area below the form, as it is a non-visible control. Set the following properties on the ImageList:
    1. Name : imgListTiles
    2. ColorDepth : Depth32Bit
    3. ImageSize : 48, 48
  6. Add a ListView control to the MapEditor form, and give it the following properties:
    1. Name : listTiles ...

Get XNA 4.0 Game Development by Example Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.