oneless Posted December 29, 2005 Share Posted December 29, 2005 I Add a new Parameter called "Grayed condition" to determinate whether the application is installed.Item's checkbox will be disabled and the text color changed when "Grayed condition" meet.i agree . is verrrrry weeeeelcome .I DO NOT AGREE . also i do not agree another(s) variable to manage gcond[].the checkbox can be usefull for overwriting drivers and/or apps (who permit without uninstall)with newer versions . and so on...the greyed colour MUST BE (at least manually in a file) user_defined . i have more then one colours in one line , but i can live with MY OWN only oneif my wpi can start faster then now .so , the greyed colour must tell us by the colour of apps , only if gcond[] = TRUE . nothing else .this mean for me that an apps/driver is installed , maybe an older version ,(more programs use same names and locations) , but I KNOW .some (like 90% of hotfixes ) cant have older versions .at least this what i need to halfcut my config.js.this is my opinion , and of course , can be beside yours.anyway , happy new years ! Link to comment Share on other sites More sharing options...
billjrm Posted December 30, 2005 Author Share Posted December 30, 2005 (edited) Assume I recommend you to install dNet Framework, so I setdflt[pn]=['yes']and greyed condition do not disable checkbox.dNet Framework will always be checked every time I enter WPI, if dNet Framework is installed and I forgetclear its checkbox, it will install again. I don't like this.Change box.js(v4.3.7b) as follows if you want to change color only.change line 130-131 and 137-138fromif(DoGray) txt += ('disabled ');else txt += ('onclick="checkDeps(' + i + ');checkCategory(' + i + ')"');totxt += ('onclick="checkDeps(' + i + ');checkCategory(' + i + ');"');line 155from if(!DoGray) txt += ('onClick="toggleChecked('+i+');checkDeps(' + i + ');checkCategory(' + i + ');" ');totxt += ('onClick="toggleChecked('+i+');checkDeps(' + i + ');checkCategory(' + i + ');" ');to define your own greyed color, modify this ( in wpi.ccs ).gtxt{ font-family: arial; font-weight: bold; color : #A0522D; <---- this one font-size : 8pt; margin-left: 5px; margin-right: 10px; margin-top: 10px; margin-bottom: 50px;} Edited December 30, 2005 by billjrm Link to comment Share on other sites More sharing options...
cipher982 Posted January 4, 2006 Share Posted January 4, 2006 (edited) Assume I recommend you to install dNet Framework, so I setdflt[pn]=['yes']and greyed condition do not disable checkbox.dNet Framework will always be checked every time I enter WPI, if dNet Framework is installed and I forgetclear its checkbox, it will install again. I don't like this.I didn't like that either, so I decided to do something about it. I modified check.js (starting on line 144) so that the "default checked" option is ignored if the grayed condition is met. For example, if WinRAR is installed and the "default checked" option is ON, it will be unchecked anyway (since the grayed condition was successfull). On the other hand, if the grayed condition fails and the "default checked" option is ON, WinRAR will be checked like normal. I've tested this many times and seems to work VERY well.Anyway I have uploaded the modified check.js for your use. Enjoy! LAST-MINUTE UPDATE:If the program has dependencies they will be analyzed to see if they are installed. If so, the dependency will be unchecked. Otherwise, it will be checked like it normally would. This prevents any dependencies to re-install and saves a lot of time and frustration (especially if the program has many dependencies. If you've already downloaded my mod please re-download to make sure you get the latest version.check.js.zip Edited January 4, 2006 by cipher982 Link to comment Share on other sites More sharing options...
billjrm Posted January 5, 2006 Author Share Posted January 5, 2006 (edited) Great .....thanks to CIPHERCheckbox of "default item" is disabled during initialization and re-enabled after initialization is completed when grayed condition is met.Everybody will be happy For simplification, option of grayed condition is not included, so I do a little modification about your check.js.In the box.js, grayed condition only change item's text color and don't disable checkbox.I thought this is final. (codes I uploaded are modified from v4.3.7b)4.3.7b.2.rar Edited January 5, 2006 by billjrm Link to comment Share on other sites More sharing options...
cipher982 Posted January 5, 2006 Share Posted January 5, 2006 (edited) For simplification, option of grayed condition is not included, so I do a little modification about your check.js.In the box.js, grayed condition only change item's text color and don't disable checkbox.I agree. There is no real use for the "check disabled" option. So I removed it also. Below are the modified files (this time with NO "enable checked" option...Wpiscripts.zipconfigwizardtemplate.zipI will continue to work on WPI to see what other improvements can be made. Edited January 5, 2006 by cipher982 Link to comment Share on other sites More sharing options...
glent Posted January 6, 2006 Share Posted January 6, 2006 Thanks to all ,tested and working great Link to comment Share on other sites More sharing options...
oneless Posted January 6, 2006 Share Posted January 6, 2006 ...Change box.js(v4.3.7b) as follows if you want to change color only...thank you @billjrmis exactly what i need . no matter for me if is not ok for others .BTW , where can I change the main colour of the text (default is white in glossy) ?because i use code colours in names of my apps, not from beginningand the greyed change only the first part in those cases .i want my custom default color of the text of items .IF i use nowmy name of app <- normal mode (=gcond=false)my name of app <- greyed mode (=gcond=true)ormy name of app <- normal modemy name of app <- greyed modei want usemy name of app <- normal modemy name of app <- greyed modeprobably will be ok if i can change the default color to blueand i will not use colour codes in the names Link to comment Share on other sites More sharing options...
cipher982 Posted January 6, 2006 Share Posted January 6, 2006 BTW , where can I change the main colour of the text (default is white in glossy) ?because i use code colours in names of my apps, not from beginningand the greyed change only the first part in those cases .i want my custom default color of the text of items .This is simple. Just open your wpi.css in themes/glossy folder and look for the .txt block:.txt{ font-family: arial; font-weight: bold; color : #FFFFFF; font-size : 8pt; margin-left: 5px; margin-right: 10px; margin-top: 10px; margin-bottom: 50px;}Now all you have to do is change the default "color" attribute to whatever you want. Link to comment Share on other sites More sharing options...
billjrm Posted January 6, 2006 Author Share Posted January 6, 2006 (edited) BTW , where can I change the main colour of the text (default is white in glossy) ?same as cipher982's answer, so I delete myself. Edited January 6, 2006 by billjrm Link to comment Share on other sites More sharing options...
faaip565 Posted January 6, 2006 Share Posted January 6, 2006 Is it possible when the application is in the grayed out condition to remove the checkbox as well???? Link to comment Share on other sites More sharing options...
cipher982 Posted January 6, 2006 Share Posted January 6, 2006 (edited) Is it possible when the application is in the grayed out condition to remove the checkbox as well????Okay here it is. I modified boxes.js so that the checkbox is hidden if the grayed condition is met. This overrides the default rule in which the checkbox is unchecked (but enabled) when in the grayed condition, so don't download this if you intend to re-install applications. boxes.js.zip Edited January 13, 2006 by cipher982 Link to comment Share on other sites More sharing options...
faaip565 Posted January 9, 2006 Share Posted January 9, 2006 Fantastic!! thanks for the help Link to comment Share on other sites More sharing options...
anandus Posted February 9, 2006 Share Posted February 9, 2006 Can this solution be used when one is able to choose between, for instance, different antivirus-programs?For instance, one has 4 choices, and when one is chosen, the other threee are grayed out?(I'm a WPI- and code-noob ) Link to comment Share on other sites More sharing options...
lawrenca Posted February 9, 2006 Share Posted February 9, 2006 anandus,I think you would want to implement "excludes" instead of gcond. Look at wpi website under Help for a good example and definition.WPI HelpUnder topic:"Q: How do exclusions work?" Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now