$_d (Dialog open effect)

By dataprofile on Sep 10, 2007

About:
Two simple dialog effects. It extends from the top-left corner to the bottom-right corner. The second extends from right to left.

Usage:

$_d(-m,300,300,150,150,aux,1) as an example. The 1st position returns the type of opening (-m in this case). The 2-3rd positions returns the position on the screen in which the dialog starts opening. the 3rd-4th positions return the size of the dialog. The 6th position returns the dialog name and the 7th position returns the type of effect (1, 2, or 3). When creating a dialog, remember to set the size as 0 0 0 0 so that it doesn't mess with the idenfitifer.

Basically:

$_d(dialogopentype,pos1,pos2,x,y,dname,effecttype)

-

Customization:

to edit the speed of the effect:
Change the %y variable to your desire. The lower the variable number is, the faster it opens. The higher, the slower.

alias _d {
  if ($7 = 1) { 
    dialog $1 $6 $6
    var %x = 1 , %y = 500
    while (%x <= %y) { dialog -s $6 $2 $3 $round($calc( $4 / %y * %x )) $round($calc( $5 / %y * %x )) | inc %x }
  }
  if ($7 = 2) { 
    dialog $1 $6 $6
    var %x = 1 , %y = 500
    while (%x <= %y) { dialog -s $6 $2 $3 $round($calc( $4 / %y * %x )) $5 | inc %x }
  }
  if ($7 = 3) { 
    dialog $1 $6 $6
    var %x = 1 , %y = 500
    while (%x <= %y) { dialog -s $6 $2 $3 $4 $round($calc( $5 / %y * %x )) | inc %x }
  }  
}

Comments

Sign in to comment.
guest598594   -  Sep 26, 2007

cool

 Respond  
dataprofile   -  Sep 10, 2007

*updated:

Now has use of three different dialog effects.

1 - top-left corner to bottom-right corner
2 - right to left
3 - Top to bottom

 Respond  
dataprofile   -  Sep 10, 2007

Thank you. :)

 Respond  
Ghost-lit Warder   -  Sep 10, 2007

This is neat. Nice job.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.