Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
itemscounter.c
Go to the documentation of this file.
1// -----------------------------------------------------------
2class ItemsCounter : ScriptedWidgetEventHandler
3{
4 bool NumberOfItems;
5
6 void OnWidgetScriptInit(Widget w)
7 {
8 Widget child = w.GetChildren();
9
10 while (child)
11 {
12 child = child.GetSibling();
13 NumberOfItems++;
14 }
15 }
16};