addChild(fSideBar, 103);
fMapManager.importLevel(GruntzGame.resourceManager().rez().file("AREA1/WORLDZ/LEVEL1", "wwd"));
// Scroll bars
fScrollX = new ScrollBar(new Minion<SelectionEvent>(){
@Override
public long run(Dispatcher<SelectionEvent> dispatcher, String type, SelectionEvent event) {
fMapViewer.offset(new Vector2f(16 - event.value(), fMapViewer.offset().y));
return Minion.CONTINUE;
}
}, false);
fScrollX.resize(new Vector2f(fSW - 176, 12));
fScrollX.position(new Vector2f(0, fSH - 12));
fScrollX.barSpan(fSW - 176);
addChild(fScrollX, 104);
fScrollY = new ScrollBar(new Minion<SelectionEvent>() {
@Override
public long run(Dispatcher<SelectionEvent> dispatcher, String type, SelectionEvent event) {
fMapViewer.offset(new Vector2f(fMapViewer.offset().x, 16 - event.value()));
return Minion.CONTINUE;
}