Cleanup of old attributes. And addition of "top_tool" which is necessary for -clean...
[PsN.git] / lib / status_bar_subs.pm
blob1a4af4dcbc5c94eda5923da49ff42f4dd83a90f7
1 start tick
4 $self -> {'sofar'} ++;
6 if( $self -> {'sofar'} >= $self -> {'steps'} ){
7 return 1;
10 if( $self -> {'steps'} / $self -> {'width'} < 1 ){
11 $return = 1;
12 } elsif( $self -> {'sofar'} % int($self -> {'steps'} / $self -> {'width'}) ){
13 $return = 0;
14 } else {
15 $return = 1;
19 end tick
21 start print_step
23 if( $self -> {'sofar'} == 0 ){
24 $output = '|';
25 } else {
26 if( $self -> {'steps'} / $self -> {'width'} < 1 ){
27 $output = '.' x int($self -> {'width'} / $self -> {'steps'});
28 } else {
29 $output = '.';
33 if( $self -> {'sofar'} >= $self -> {'steps'} ){
34 $output .= '|';
38 end print_step