Skip to reading
GUI Styling, Shaders & Effects

6. Give corners their own shapes

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 11. Square, soft, pill and asymmetric corners use the same basic controls.

Source table from 6. Give corners their own shapes, page 17
ValueMeaning
Border Radius 0Square overall corners.
A positive common radiusA curve applied where a corner has no explicit override.
Corner -1Use this surface’s common radius.
Corner 0Make that particular corner square.
Positive corner overrideUse that radius for this corner only.

Top Left, Top Right, Bottom Right and Bottom Left refer to the visible rectangle. The workshop Button uses common Radius 16, Top Left 24, Top Right 4, Bottom Right 24 and Bottom Left 4.

Large radii are constrained by the space available. A radius larger than half a short control’s height will not keep growing into an unlimited curve. Judge the visible shape at the intended size.

Page 17 of 70Permalink
Go to page