void script_301(int arg0,int arg1,int arg2,int arg3,int arg4,int arg5) {
	if (setWidgetRegister(new WidgetPointer(arg1), arg2)) {
		setWidgetRGB(new Color(arg5));
	}
	if ((arg3 != -1) && setWidgetRegister(new WidgetPointer(arg1), arg3)) {
		setWidgetRGB(new Color(arg5));
	}
	if (((boolean)arg0)) {
		if (setWidgetRegister(new WidgetPointer(arg1), arg4)) {
			setWidgetHidden(0);
		}
	} else {
		if (setWidgetRegister(new WidgetPointer(arg1), arg4)) {
			setWidgetHidden(1);
		}
	}
	return;
}
