Download scripts/3_Game/DayZ/GUI/Spacers/ItemsCounter.c from FelonieZ/DayZ_Scripts: direct link, hf CLI and curl.
- Browser
- Download file 309 Bytes
-
https://huggingface.co/datasets/FelonieZ/DayZ_Scripts/resolve/main/scripts/3_Game/DayZ/GUI/Spacers/ItemsCounter.c
- Command line
-
hf download hf://datasets/FelonieZ/DayZ_Scripts/scripts/3_Game/DayZ/GUI/Spacers/ItemsCounter.c
-
curl -L -o ItemsCounter.c https://huggingface.co/datasets/FelonieZ/DayZ_Scripts/resolve/main/scripts/3_Game/DayZ/GUI/Spacers/ItemsCounter.c
309 Bytes
| // ----------------------------------------------------------- | |
| class ItemsCounter : ScriptedWidgetEventHandler | |
| { | |
| bool NumberOfItems; | |
| void OnWidgetScriptInit(Widget w) | |
| { | |
| Widget child = w.GetChildren(); | |
| while (child) | |
| { | |
| child = child.GetSibling(); | |
| NumberOfItems++; | |
| } | |
| } | |
| }; |