// // Name: ScreenImageMgr Demo // License: Public Domain // Author: Matthew Gates // Description: An example script showing how to use the ScreenImageMgr module. // include("status_label.inc"); function moveIt(x, y, duration, sleeptime) { l = LabelMgr.labelScreen("("+x+","+y+") in " + duration + " sec (sleep=" + sleeptime + ")", x, y-14, true, 11, "#00ff00"); ScreenImageMgr.setImageXY("logo", x, y, duration); core.wait(sleeptime); LabelMgr.deleteLabel(l); } testData = Array(Array(300,80), Array(300,300), Array(0,300), Array(0,80)); useStatusLabel("ScreenImageMgr test 4: ", 50, 50, 16, "#ff0000"); status("Moving an image around the screen"); ScreenImageMgr.createScreenImage("logo", "../textures/earthmap.png", 0, 80, 0.8, true, 0.4, 0.5); core.wait(0.5); status("first some instantaneous moves..."); core.wait(0.5); for(i=0; i