};
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>() {