void script_2051(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5,int arg6,int arg7,string arg8,string arg9,string arg10) {
	if (setWidgetRegister(new WidgetPointer(arg0), arg1)) {
		script_2052(arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
	} else {
		createExtraChild(new WidgetPointer(arg0), 4, arg1);
		script_2052(arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
	}
	return;
}
