Skip to reading
GUI Styling, Shaders & Effects

Gradients, shadows and animated artwork

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 Progress Bar has a built-in two-color fill gradient. Ordinary Button and Panel backgrounds use their authored flat colors and images. A gradient picture is a practical way to give those surfaces a painted transition.

1. For a simple shadow, duplicate or add a plain Panel behind the visible card.

2. Make the lower Panel dark with partial alpha, remove its border if appropriate, and offset it by about 6–8 pixels.

3. Give the shadow a lower Z Index. Keep its curves consistent with the foreground card.

4. Move and test both pieces together. A shadow that stays behind after the card moves is a layout mistake.

5. For a softer or more detailed shadow, import suitable artwork instead of pretending a hard dark rectangle is a blur.

Supported frame lists can animate background artwork. Composite widgets expose Widget Animated Frames, Grid Animated Frames and their FPS fields. Item icon animation is a separate setting in the item definition.

Use actual frames in an imported asset or a supported frame list. Turning on animation cannot create new frames from a single still picture. Keep animated decoration away from small text.

Page 23 of 70Permalink
Go to page