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 }
}
}