Screenshots
Default programs:

All programs:

None programs (with forced programs still checked)

Files
...and here are the changed files (based off the original 5.2 files):
[attachment=13633:attachment][attachment=13634:attachment][attachment=13635:attachment]P.S. - The css file is for the Glossy theme.
Code
And the code changes for those interested are as follows:
1. Modify boxes.js starting at line 131 as follows:
2. check.js:
3. wpi.css: In the wpi.css file of your favorite theme add the following class
//insert checkbox and label
// -- checkbox --
if (DebugOn)
txt += '<font class="txt">' + i + '</font>\n';
txt += '<input type="checkbox" id="chkbox' + i + '"';
if (uid[i]==null || uid[i]=="")
{
txt += 'name="chkbox' + i + '" ';
txt += 'onclick="checkDeps(' + i + '); checkCategory(' + i + ');"';
}
else
{
txt += 'name="' + uid[i] + '" ';
txt += 'onclick="checkDeps(' + i + '); checkCategory(' + i + ');"';
}
txt += 'onMouseOver="qdh(prog[' + i + '],desc[' + i + '],Style[0]);" ';
txt += 'onMouseOut="htm();"';
if (forc[i]!=null && forc[i]=='yes') //Added code
txt += ' checked'; //Added code
if (DoGray || (forc[i]!=null && forc[i]=='yes')) //Modified code
txt += ' disabled';
txt += (' />\n');
// -- label --
if (DoGray)
txt += '<label class="gtxt" id="lbl' + i + '" ';
else if (forc[i]!=null && forc[i]=='yes') //Added code
txt += '<label class="chktxt" id="lbl' + i + '" '; //Added code
else
txt += '<label class="txt" id="lbl' + i + '" ';
2. check.js:
A. Modify the setChecked function as follows:
B. Modify the setUnchecked function as follows:
C. Modify checkDeps as follows:
else
{
var chkbox = document.getElementById("chkbox"+i); //Modified code
var lbl = document.getElementById('lbl'+i); //Added code
if (chkbox==null)
return;
if (chkbox.disabled)
return;
if (!chkbox.checked)
debug("setChecked for '" + prog[i] + "' (uid=" +uid[i] + ")",1,4);
chkbox.checked=true; //Modified code
lbl.className='chktxt'; //Added code
tabs++;
checkParent(i);
if (DisableOnDepsNotMet)
enableChildren(i);
if (useExclusions)
checkExclusions(i);
tabs--;
}
B. Modify the setUnchecked function as follows:
else
{
var chkbox = document.getElementById("chkbox"+i); //Modified code
var lbl = document.getElementById('lbl'+i); //Added code
if (chkbox==null)
return;
chkbox.checked=false; //Modified code
lbl.className='txt'; //Added code
debug("setUnchecked for '" + prog[i] + "' (uid=" +uid[i] + ")",1,4);
tabs++;
uncheckChildren(i);
if (DisableOnDepsNotMet)
disableChildren(i);
if (useExclusions)
checkExclusions(i);
tabs--;
}
C. Modify checkDeps as follows:
if (elem.disabled)
{
if (forc[i]!=null && forc[i]=='yes') //Added code
return; //Added code
elem.checked=false;
return 0;
}
3. wpi.css: In the wpi.css file of your favorite theme add the following class
.chktxt //Added code style for highlighted (checked) Programs
{
font-family: arial;
font-weight: bold;
color: #EBB313;
font-size: 8pt;
margin-left: 5px;
margin-right: 10px;
}
...and style it however you would like.This post has been edited by zorphnog: 04 August 2006 - 07:05 AM



Help

Back to top









