Step 7. Determine Click Region
Because all of the images used by MapView must be the same size (80 x 60 is what the A&A Mins modules use), the program supports the concept of a “click-region”. This is a setting associated with each unit that allows for a subset of the image to be designated as the part you can interact with (right click, drag-drop, etc). This region is a rectangle measured in pixels in the format of left, top, width, height.
The last step is to figure out what the click-region should be. The easiest way is to use the standard rectangle selection tool and select a subset of the image that is mostly filled with the unit. Most image editing software show these coordinates down in the status bar at the bottom as you drap your selection triangle.
This is often more of an art-form than a science since our units are rarely square. Try not to include too much background area in your click region, or it can get hard to select overlapping units.
A sample is included.
This is one of the most time-consuming steps if you have to go back and do it later, so I suggest doing this while you still have the unit in your image editor. Just create a text file and save the the click region coordinates for each unit as you go.
clickregion_sample.png