; /test to run
alias test {
;
; Centered 640*480 picture window
window -CpdofB @a 0 0 640 480
;
; Draw a black background
drawdot -nr @a 0 999 0 0
;
;
;
;
; 1) Red text for the VERTICAL scroller
drawtext -nor @a 255 tahoma 230 0 -40 MIRC
; ### Multiple co-ordinates drawscroll (Horizontal)
drawscroll -n @a 10 0 0 0 640 50 20 0 0 50 640 50 30 0 0 100 640 50 40 0 0 150 640 50
;
; 2) Blue text for the HORIZONTAL scroller
drawtext -nor @a 16737280 tahoma 230 0 200 MIRC
; *** Replace 0 by 1 in case you want to test without multiple values.
if (0) {
drawscroll -n @a 0 10 0 200 50 480
drawscroll -n @a 0 20 50 200 50 480
drawscroll -n @a 0 30 100 200 50 480
drawscroll -n @a 0 40 150 200 50 480
drawscroll -n @a 0 50 200 200 50 480
drawtext -nr @a 65280 tahoma 20 170 240 :expected
}
; ### Multiple co-ordinates drawscroll (Vertical)
else {
drawscroll -n @a 0 10 0 200 50 480 0 20 50 200 50 480 0 30 100 200 50 480 0 40 150 200 50 480 0 50 200 200 50 480
drawtext -nr @a 65280 tahoma 20 170 240 :"no stairs", now modify the script.
}
;
;
;
;
; Just visuals
drawtext -nr @a 65280 tahoma 20 0 0 Horizontal drawscroll
drawtext -nr @a 65280 tahoma 20 0 240 Vertical drawscroll
;
; Redraw
drawdot @a
;
}