6. Add hover and pressed images
1. Select inspect_image and open Images.
2. Leave Media Asset set to Brass Key.
3. Set Hover Image to Wheel Icon.
4. Set Clicked Image to Oil Icon.
5. Enable designer Preview, or run the game. Point at the key, press and hold, then release.
Figure 7. Hover: the wheel image replaces the foreground key.
The deliberately different drawings make the state changes obvious. In a finished interface, you would normally use matching artwork with a highlight, glow or pressed treatment. Keep all three source images aligned so the drawing does not jump when the state changes.
For an Image element, Hover and Clicked Image replace the foreground picture. Background Image remains a separate layer. The same state fields on a composite control can affect its overall backing instead of an individual item.
