Skip to reading
The GUI Designer

9. Give an element its 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

Import your pictures through Asset Designer first. Then select the GUI element and open Images. Choose from the project assets rather than typing a path to a file elsewhere on your computer.

Source table from 9. Give an element its images, page 19
Images fieldWhat it supplies
Media AssetThe foreground picture of an Image, the content of a model/video element, or a normal background on an ordinary control.
Background ImageAn explicit backdrop. On an ordinary control it takes priority over an image supplied through Media Asset.
Hover ImageThe pointer-over artwork. On an Image element it replaces the foreground picture.
Clicked ImageThe artwork used while a left press is held. It is a temporary state.
Background FitHow the backdrop is fitted into the element frame.

Figure 14. The image-state fields are together in Images. This example uses visibly different Clockmaker icons to make the states easy to test.

For an Image element, Media Asset and Background Image have separate jobs. A key icon can remain the foreground while a paper texture sits behind it. The foreground has its own Content Fit in Type Settings.

The state pictures in this guide are a test, not a rule for artwork. For a finished game, use matching normal, hover and clicked versions so the control still looks like the same object.

Page 19 of 57Permalink
Go to page