Skip to reading
Eight Adventure Interface Workshops

Build the picture in layers

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 PDF page

A Panel can provide a colored area. A Button adds a caption and a clickable target. An Image supplies artwork. An inventory or save widget builds repeated slots for you.

Source table from Build the picture in layers, page 7
LayerSuggested Z IndexReason
Background illustration0Keep the illustration behind the interface.
Large HUD or popup panel1This supplies the main surface.
Page panels or decorative frames2These sit above the outer cover or panel.
Buttons and widgets4These must remain visible and receive input.
Independent labels5Place captions clearly above their background.

Give overlapping elements different drawing orders. Do not rely on two elements with the same Z Index being drawn in the order you happen to prefer.

A decorative Image should have no click action. It can then sit behind an interactive area without becoming another button. A transparent color does not itself make a control ignore mouse input.

An element that looks like a child of a Panel is not automatically part of that Panel. A visual stack, a tab relationship and an ordinary drawing order are different things.

Page 7 of 119Permalink
Go to page