D3ltaQ's picture
Upload 2197 files
24b81cb verified
raw
history blame contribute delete
309 Bytes
// -----------------------------------------------------------
class ItemsCounter : ScriptedWidgetEventHandler
{
bool NumberOfItems;
void OnWidgetScriptInit(Widget w)
{
Widget child = w.GetChildren();
while (child)
{
child = child.GetSibling();
NumberOfItems++;
}
}
};