Package com.pointcliki.ui

Examples of com.pointcliki.ui.TextBox


        n--;
        i += 26;
       
        String[] choices = s.choices();
        if (choices == null) {
          TextBox box = new TextBox(s.value().equals("") ? s.name() : s.value(), s.name());
          box.position(new Vector2f(0, i)).resize(new Vector2f(155, 24));
          box.setChangedMinion(new Minion<IEvent>() {
            @Override
            public long run(Dispatcher<IEvent> dispatcher, String type, IEvent event) {
              s.value(type);
              editLogic(l);
              return Minion.CONTINUE;
View Full Code Here


  };

  public void init() {
    resize(new Vector2f(164, 740));
   
    final TextBox title = new TextBox(scene(EditorScene.class).map().name(), "level title");
    title.resize(new Vector2f(155, 24));
    addChild(title, 1);
    title.setChangedMinion(new Minion<IEvent> () {
      public long run(Dispatcher<IEvent> dispatcher, String type, IEvent event) {
        scene(EditorScene.class).map().name(title.value());
        return Minion.CONTINUE;
      };
    });
   
    final TextBox author = new TextBox(scene(EditorScene.class).map().author(), "author");
    author.resize(new Vector2f(155, 24));
    author.position(new Vector2f(0, 26));
    addChild(author, 1);
    author.setChangedMinion(new Minion<IEvent> () {
      public long run(Dispatcher<IEvent> dispatcher, String type, IEvent event) {
        scene(EditorScene.class).map().author(author.value());
        return Minion.CONTINUE;
      };
    });
   
    TextBox dimensions = new TextBox(scene(EditorScene.class).map().width() + " " + scene(EditorScene.class).map().height(), "dimensions");
    dimensions.resize(new Vector2f(155, 24));
    dimensions.position(new Vector2f(0, 52));
    addChild(dimensions, 1);
   
    TextBox test4 = new TextBox("camera location");
    test4.resize(new Vector2f(155, 24));
    test4.position(new Vector2f(0, 78));
    addChild(test4, 1);
   
    final TextBox quirks = new TextBox(scene(EditorScene.class).map().quirks(), "quirkz mode");
    quirks.resize(new Vector2f(155, 24));
    quirks.position(new Vector2f(0, 104));
    addChild(quirks, 1);
    quirks.setChangedMinion(new Minion<IEvent> () {
      public long run(Dispatcher<IEvent> dispatcher, String type, IEvent event) {
        scene(EditorScene.class).map().quirks(quirks.value());
        return Minion.CONTINUE;
      };
    });
   
    final DropDownMenu type = new DropDownMenu(new Minion<SelectionEvent>() {
View Full Code Here

TOP

Related Classes of com.pointcliki.ui.TextBox

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.