// // Name: ScreenImageMgr Demo // License: Public Domain // Author: Matthew Gates // Description: An example script showing how to use the ScreenImageMgr module. // include("status_label.inc"); useStatusLabel("ScreenImageMgr test 5: ", 50, 50, 16, "#ff0000"); // x, y, scale, alpha, fadetime testData = Array(Array(0, 100, 1.0, 1.0, 0.5), Array(200, 200, 1.0, 0.9, 1.5), Array(400, 100, 1.0, 0.7, 2.5), Array(600, 200, 1.0, 0.5, 1.5), Array(800, 100, 1.0, 0.3, 0.5), Array(0, 400, 1.5, 1.0, 0.5), Array(200, 600, 0.4, 0.9, 1.5), Array(400, 400, 1.2, 0.7, 2.5), Array(600, 600, 0.8, 0.5, 1.5), Array(800, 400, 1.0, 0.3, 0.5)); function mkLabel(dat) { return "x,y=" + dat[0] + "," + dat[1] + " s=" + dat[2] + " a=" + dat[3] + " d=" + dat[4]; } function showAll(b) { imageIDs = ScreenImageMgr.getAllImageIDs(); for(i=0; i0; i--) { status("script ending in " + i + " seconds"); core.wait(1); } LabelMgr.deleteAllLabels(); ScreenImageMgr.deleteAllImages();