Skip to reading
Getting started with PCA3D

Inventory and save widgets

Edition 0.86.4.3

0.86.4.3 edition with revised lessons, updated cross-references and new cinematic/camera-safety supplements. Earlier examples, screenshots and registry figures retain their stated edition context.

Download PDFView illustrations

9. GUI Designer: layout and appearance

Figure 15. Images for an inventory grid. A compound widget has several separately styled parts.

The normal background is the resting image. Hover is shown while the pointer is over the element. Pressed is temporary: after release it returns to the appropriate hover or normal image. Test both releasing over the button and dragging outside before release.

Each corner can have its own radius. A value of -1 inherits the overall radius; 0 is square. Inventory and Save Game widgets have an outer frame, an inner grid or list, and item/row or screenshot parts. Set each part independently. Changing the outer radius should not be your way of rounding every slot.

For a slider, the dragged handle can use an image. Keep the track and handle visually distinct so the player can see both the available range and current value. For a 3D Model Viewer, choose the model, background image, animation and camera view. Center the model first, then enable user orbit, rotation and zoom if the viewer is meant to be interactive.

Columns and rows control capacity. Slot width and height control the size of each item area. Gap and padding control spacing. Do not enlarge a slot accidentally while trying to add a second row. Use the independent frame, grid, slot and navigation images for a consistent skin.

Page 30 of 184Permalink
Go to page