mIRC Home    About    Download    Register    News    Help

Print Thread
#36887 18/07/03 02:07 AM
Joined: Dec 2002
Posts: 397
A
ATMA Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
im makin a little proggress bar for my script but i have the code but it dont do the proggress right

could any one help me? =/

Code:
alias line1 {
  set %line1 0
  :loop
  /drawline @loading2 10 10 25 %line1 25
  if (%line1 == 150) { goto end }
  inc %line1 1
  goto loop
  :end
}

alias loading2 {
  .window -pk[0]C +d @loading2 0 0 170 50
  ;top and bottom of the loading graph
  .drawline @loading2 grey 1 10 35 160 35
  .drawline @loading2 grey 1 10 25 160 25
  ;sides of the loading graph
  .drawline @loading2 grey 1 10 25 10 35
  .drawline @loading2 grey 1 160 25 160 36
  ;writs the Loading text
  .drawtext @loading2 grey Courier New 12 1 .. : Loading : ..
  ;this makes the line loading bar
  .line1
}


Need amazing web design for low price: http://www.matrixn3t.net
#36888 18/07/03 03:45 AM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
u are missing a parameter in the /drawline
/drawline @loading2 color size x y x y

#36889 18/07/03 03:47 AM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
oh and the color should be a number, so gray will be 14

#36890 18/07/03 03:48 AM
Joined: Dec 2002
Posts: 397
A
ATMA Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
no im not 10 is the size and %line1 makes the length

the first 10 is a hight of the line %line1 makes the width
.drawline @loading2 10 10 25 %line1 25

please read the script a bit more careful......


Need amazing web design for low price: http://www.matrixn3t.net
#36891 18/07/03 03:52 AM
Joined: Dec 2002
Posts: 397
A
ATMA Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
ok now its drawing the line but its not showing it move...... i want it to show it sliding well it goes through that little thing there =/


Need amazing web design for low price: http://www.matrixn3t.net
#36892 18/07/03 04:01 AM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
tell me what are u trying to do..

#36893 18/07/03 04:13 AM
Joined: Dec 2002
Posts: 397
A
ATMA Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
ok im just making a lil' script that makes a loading bar and makes the progress line go accross it thats it...... so it would be like
5% 30% 50% 90% 100% done
do u get what i mean?


Need amazing web design for low price: http://www.matrixn3t.net
#36894 18/07/03 04:15 AM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
alias line1 {
var %line1 30
:loop
drawline @loading2 2 5 20 30 %line1 30
if (%line1 == 150) { goto end }
inc %line1 1
goto loop
:end
}
alias loading2 {
.window -pk[0]C +d @loading2 0 0 170 50
;top and bottom of the loading graph
.drawline @loading2 14 1 10 35 160 35
.drawline @loading2 14 1 10 25 160 25
;sides of the loading graph
.drawline @loading2 14 1 10 25 10 35
.drawline @loading2 14 1 160 25 160 36
;writs the Loading text
.drawtext @loading2 grey Courier New 12 1 .. : Loading : ..
;this makes the line loading bar
.line1
}

#36895 18/07/03 04:17 AM
Joined: Dec 2002
Posts: 397
A
ATMA Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
it happens so fast u cant tell wtf is happening.... by the time u see the bar its filled in -.-


Need amazing web design for low price: http://www.matrixn3t.net
#36896 18/07/03 04:30 AM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
of course it's fast, it's a loop
use:
alias line1 {
set %line1 30
.timerpb 120 0 if ($window(@loading2)) { drawline @loading2 2 5 20 30 $(%line1,0) 30 $(|) inc %line1 }
}
alias loading2 {
.window -pk[0]C +d @loading2 0 0 170 50
;top and bottom of the loading graph
.drawline @loading2 14 1 10 35 160 35
.drawline @loading2 14 1 10 25 160 25
;sides of the loading graph
.drawline @loading2 14 1 10 25 10 35
.drawline @loading2 14 1 160 25 160 36
;writs the Loading text
.drawtext @loading2 grey Courier New 12 1 .. : Loading : ..
;this makes the line loading bar
.line1
}

#36897 18/07/03 04:46 AM
Joined: Dec 2002
Posts: 397
A
ATMA Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
thx it works now


Need amazing web design for low price: http://www.matrixn3t.net

Link Copied to Clipboard