Skip to reading
GUI Styling, Shaders & Effects

Surface, border and text opacity differ

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

Figure 8. Surface Opacity and Border Opacity are separate. Text Opacity is in Text & Content.

Source table from Surface, border and text opacity differ, page 13
ControlUse it to change
Surface OpacityThe ordinary surface/backdrop presentation supported by that element.
Border OpacityThe frame’s alpha, independently of the background.
Text OpacityThe caption’s alpha.
A color’s alphaTransparency embedded in that particular color value.
A GUI transitionThe temporary presentation of the window as it opens or closes.

Alpha controls can multiply. A background color at 50% alpha, drawn at Surface Opacity 0.5, contributes roughly 25% alpha. If a panel is unexpectedly faint, check both controls.

The demonstration uses separate Labels above the panel surfaces, which makes the difference easy to judge. A whole GUI fade or disabled-state modulation can affect a larger tree of controls; it is not the same operation as lowering one panel’s background alpha.

A transparent background does not imply that the element is disabled or that all clicks pass through it. Input behavior is controlled separately.

Page 13 of 70Permalink
Go to page