DrawPanelItem Function

Draws an item on a panel. If the item takes up a slot, the position is returned.

int DrawPanelItem(Handle panel, const char[] text, int style)


Handle panel

A MenuPanel Handle.

const char[] text

Display text to use. If not a raw line, the style may automatically add color markup. No numbering or newlines are needed.

int style

ITEMDRAW style flags.

Return Value

A slot position, or 0 if item was a rawline or could not be drawn.


Invalid Handle.