Package com.pointcliki.ui

Examples of com.pointcliki.ui.ScrollBar


    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;
      }
View Full Code Here


    addChild(fTilesetMenu, 20);
   
    fTiles = new Tiles();
    addChild(fTiles, 10);
   
    fScrollbar = new ScrollBar(new Minion<SelectionEvent>(), true);
    fScrollbar.position(new Vector2f(142, 29));
    fScrollbar.resize(new Vector2f(12, 627));
    addChild(fScrollbar, 0);
   
    updateTiles();
View Full Code Here

TOP

Related Classes of com.pointcliki.ui.ScrollBar

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.