let image = new RGUI.ImageBox({
x: 100,
y: 100,
width: 400,
height: 400,
type: 0,
focus: true,
image: 'test'
});
image.eventManager.on('Right', {}, ()=>{ image.xScroll(5) });
image.eventManager.on('Down', {}, ()=>{ image.yScroll(5) });
image.eventManager.on('Left', {}, ()=>{ image.xScroll(-5) });
image.eventManager.on('Up', {}, ()=>{ image.yScroll(-5) });
image.eventManager.on('A', {}, ()=>{ image.x -= 10 });
image.eventManager.on('D', {}, ()=>{ image.x += 10 });
image.eventManager.on('W', {}, ()=>{ image.y -= 10 });
image.eventManager.on('S', {}, ()=>{ image.y += 10 });
stage.addChild(image);
let image = new RGUI.ImageBox({
x: 100,
y: 100,
width: 400,
height: 400,
type: 0,
focus: true,
image: 'test'
});
image.eventManager.on('Right', {}, ()=>{ image.xScroll(5) });
image.eventManager.on('Down', {}, ()=>{ image.yScroll(5) });
image.eventManager.on('Left', {}, ()=>{ image.xScroll(-5) });
image.eventManager.on('Up', {}, ()=>{ image.yScroll(-5) });
image.eventManager.on('A', {}, ()=>{ image.x -= 10 });
image.eventManager.on('D', {}, ()=>{ image.x += 10 });
image.eventManager.on('W', {}, ()=>{ image.y -= 10 });
image.eventManager.on('S', {}, ()=>{ image.y += 10 });
stage.addChild(image);