Package com.pointcliki.ui

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


        fSubType = ((DropDownMenu) event.source()).value();
        editLogic(null);
        return Minion.CONTINUE;
      }
    });
    subtype.position(new Vector2f(0, 26));
    try {
      for (String s: JSONObject.getNames(fLogics.getJSONObject(fType))) subtype.add(s);
    } catch (JSONException e) {
      System.err.println("Error parsing the editor preset logics");
      System.err.println(e.getMessage());
View Full Code Here


              s.choice(event.value());
              editLogic(l);
              return Minion.CONTINUE;
            }
          });
          drop.position(new Vector2f(0, i)).resize(new Vector2f(155, 24));
          for (String str: choices) drop.add(str.toLowerCase());
          if (!s.value().equals("")) drop.select(s.value().toLowerCase());
          addChild(drop, n);
        }
      }
View Full Code Here

    type.add("Questz");
    type.add("Friendz");
    type.add("Battlez");
    type.select(scene(EditorScene.class).map().type());
    type.resize(new Vector2f(155, 24));
    type.position(new Vector2f(0, 130));
    addChild(type, 3);
   
    DropDownMenu fog = new DropDownMenu(new Minion<SelectionEvent>() {
      @Override
      public long run(Dispatcher<SelectionEvent> dispatcher, String t, SelectionEvent event) {
View Full Code Here

    fog.add("No Fog");
    fog.add("Fog Of War");
    fog.add("Fixed Fog");
    fog.select(scene(EditorScene.class).map().fog());
    fog.resize(new Vector2f(155, 24));
    fog.position(new Vector2f(0, 156));
    addChild(fog, 2);
   
    Button play = new Button(new Minion<SelectionEvent>() {
     
      @Override
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.