Jump to content

My WPI and some suggestions...


Recommended Posts

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 one

if 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


Assume I recommend you to install dNet Framework, so I set

dflt[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 forget

clear 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-138

from

if(DoGray) txt += ('disabled ');
else txt += ('onclick="checkDeps(' + i + ');checkCategory(' + i + ')"');

to

txt += ('onclick="checkDeps(' + i + ');checkCategory(' + i + ');"');

line 155

from

if(!DoGray) txt += ('onClick="toggleChecked('+i+');checkDeps(' + i + ');checkCategory(' + i + ');" ');

to

txt += ('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 by billjrm
Link to comment
Share on other sites

Assume I recommend you to install dNet Framework, so I set

dflt[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 forget

clear 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! :thumbup

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 by cipher982
Link to comment
Share on other sites

Great :thumbup .....thanks to CIPHER

Checkbox of "default item" is disabled during initialization and re-enabled after initialization is completed when grayed condition is met.

Everybody will be happy :w00t:

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 by billjrm
Link to comment
Share on other sites

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.zip

I will continue to work on WPI to see what other improvements can be made.

Edited by cipher982
Link to comment
Share on other sites

...Change box.js(v4.3.7b) as follows if you want to change color only...

thank you @billjrm

is 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 beginning

and the greyed change only the first part in those cases .

i want my custom default color of the text of items .

IF i use now

my name of app <- normal mode (=gcond=false)

my name of app <- greyed mode (=gcond=true)

or

my name of app <- normal mode

my name of app <- greyed mode

i want use

my name of app <- normal mode

my name of app <- greyed mode

probably will be ok if i can change the default color to blue

and i will not use colour codes in the names

Link to comment
Share on other sites

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 beginning

and 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

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 by cipher982
Link to comment
Share on other sites

  • 5 weeks later...

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 :P )

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...