More helpful in-game edit button
This commit is contained in:
@@ -135,14 +135,14 @@ public class MapEditorDialog extends Dialog implements Disposable{
|
||||
|
||||
menu.cont.row();
|
||||
|
||||
menu.cont.addImageTextButton("$play", "icon-play", isize, this::playtest).padTop(-5).size(swidth * 2f + 10, 60f);
|
||||
menu.cont.addImageTextButton("$editor.ingame", "icon-arrow", isize, this::playtest).padTop(-5).size(swidth * 2f + 10, 60f);
|
||||
|
||||
menu.cont.row();
|
||||
|
||||
menu.cont.addImageTextButton("$quit", "icon-back", isize, () -> {
|
||||
tryExit();
|
||||
menu.hide();
|
||||
}).padTop(-5).size(swidth * 2f + 10, 60f);
|
||||
}).size(swidth * 2f + 10, 60f);
|
||||
|
||||
resizeDialog = new MapResizeDialog(editor, (x, y) -> {
|
||||
if(!(editor.width() == x && editor.height() == y)){
|
||||
|
||||
@@ -40,7 +40,6 @@ public class MapInfoDialog extends FloatingDialog{
|
||||
name.setMessageText("$unknown");
|
||||
|
||||
cont.row();
|
||||
|
||||
cont.add("$editor.description").padRight(8).left();
|
||||
|
||||
TextArea description = cont.addArea(tags.get("description", ""), "textarea", text -> {
|
||||
@@ -48,7 +47,6 @@ public class MapInfoDialog extends FloatingDialog{
|
||||
}).size(400f, 140f).get();
|
||||
|
||||
cont.row();
|
||||
|
||||
cont.add("$editor.author").padRight(8).left();
|
||||
|
||||
TextField author = cont.addField(tags.get("author", Core.settings.getString("mapAuthor", "")), text -> {
|
||||
|
||||
@@ -35,6 +35,7 @@ public class BorderImage extends Image{
|
||||
float scaleY = getScaleY();
|
||||
|
||||
Draw.color(Pal.accent);
|
||||
Draw.alpha(parentAlpha);
|
||||
Lines.stroke(Unit.dp.scl(thickness));
|
||||
Lines.rect(x + imageX, y + imageY, imageWidth * scaleX, imageHeight * scaleY);
|
||||
Draw.reset();
|
||||
|
||||
Reference in New Issue
Block a user