Skip to content
pixi-silk
GitHub repository
Interface

RadialItem

import type { RadialItem } from 'pixi-silk/ui/radial';

One entry of a RadialMenu. Entries with children open another ring around themselves.

Properties#

PropertyTypeDescriptionDefined in
children?RadialItem[]Sub-items, laid out on the next ring, centred on this item.ui/RadialMenu.ts:33
disabled?booleanShown dimmed. It cannot be hovered, picked or opened.ui/RadialMenu.ts:31
icon?IconSourceIcon drawn in the segment, white and tinted by the theme. See IconSource.ui/RadialMenu.ts:29
idstringStable id, handed back on selection.ui/RadialMenu.ts:25
label?stringText: drawn inside the segment when there is no icon, otherwise shown as a pill on hover.ui/RadialMenu.ts:27