Skip to reading
Images, Carousels & Choice Controls

6. Add hover and pressed images

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView illustrations

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.

Page 11 of 52Permalink
Go to page