Time for action – tile selection controls
- Expand the
Textures
folder in the Level Editor Content project. - Click on the
PlatformTiles.png
file. The Properties window below Solution Explorer will update to display the properties of the image file. - Change the Copy to Output Directory property to Copy if newer.
- Switch back to the Design mode view of the MapEditor form.
- 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:
- Name : imgListTiles
- ColorDepth : Depth32Bit
- ImageSize : 48, 48
- Add a ListView control to the MapEditor form, and give it the following properties:
- 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.