Package com.pointcliki.ui

Examples of com.pointcliki.ui.Button.position()


        l.cleanup();
        return Minion.CONTINUE;
      }
    }, "delete logic");
    delete.resize(new Vector2f(155, 24));
    delete.position(new Vector2f(0, 26));
    addChild(delete, 3);
   
    TextEntity name = new TextEntity(l.name(), TextEntity.ALIGN_LEFT, EditorScene.LargeFont(), Color.darkGray);
    name.position(new Vector2f(0, 64));
    addChild(name, 4);
View Full Code Here


        return Minion.CONTINUE;
      }
     
    }, "play");
    play.resize(new Vector2f(155, 24));
    play.position(new Vector2f(0, 182));
    addChild(play, 1);
   
    Button create = new Button(new Minion<SelectionEvent>() {
      @Override
      public long run(Dispatcher<SelectionEvent> dispatcher, String type, SelectionEvent event) {
View Full Code Here

        }
        return Minion.CONTINUE;
      }
    }, "new level");
    create.resize(new Vector2f(155, 24));
    create.position(new Vector2f(0, 208));
    addChild(create, 1);
   
    Button open = new Button(new Minion<SelectionEvent>() {
   
      @Override
View Full Code Here

        return Minion.CONTINUE;
      }
     
    }, "open level");
    open.resize(new Vector2f(155, 24));
    open.position(new Vector2f(0, 234));
    addChild(open, 1);
   
    Button save = new Button(new Minion<SelectionEvent>() {
      @Override
      public long run(Dispatcher<SelectionEvent> dispatcher, String type, SelectionEvent event) {
View Full Code Here

        scene(EditorScene.class).mapManager().saveAs();
        return Minion.CONTINUE;
      }     
    }, "save level as");
    save.resize(new Vector2f(155, 24));
    save.position(new Vector2f(0, 260));
    addChild(save, 1);
   
    Button imp = new Button(new Minion<SelectionEvent>() {
      @Override
      public long run(Dispatcher<SelectionEvent> dispatcher, String type, SelectionEvent event) {
View Full Code Here

        scene(EditorScene.class).importLevel(s);
        return Minion.CONTINUE;
      }     
    }, "import level");
    imp.resize(new Vector2f(155, 24));
    imp.position(new Vector2f(0, 286));
    addChild(imp, 1);

    Button exit = new Button(new Minion<SelectionEvent>() {
      @Override
      public long run(Dispatcher<SelectionEvent> dispatcher, String type, SelectionEvent event) {
View Full Code Here

        System.exit(0);
        return Minion.CONTINUE;
      }     
    }, "exit");
    exit.resize(new Vector2f(155, 24));
    exit.position(new Vector2f(0, 312));
    addChild(exit, 1);
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.