Logo downscale
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 12 KiB |
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
Before Width: | Height: | Size: 327 KiB After Width: | Height: | Size: 337 KiB |
@@ -34,41 +34,6 @@ public abstract class Platform {
|
|||||||
Core.input.setOnscreenKeyboardVisible(false);
|
Core.input.setOnscreenKeyboardVisible(false);
|
||||||
};
|
};
|
||||||
Core.input.getTextInput(input);
|
Core.input.getTextInput(input);
|
||||||
/*
|
|
||||||
Dialog dialog = new Dialog("", "dialog");
|
|
||||||
dialog.setFillParent(true);
|
|
||||||
dialog.content().top();
|
|
||||||
dialog.content().defaults().height(65f);
|
|
||||||
|
|
||||||
TextField[] use = {null};
|
|
||||||
|
|
||||||
dialog.content().addImageButton("icon-copy", "clear", 16*3, () -> use[0].copy())
|
|
||||||
.visible(() -> !use[0].getSelection().isEmpty()).width(65f);
|
|
||||||
|
|
||||||
dialog.content().addImageButton("icon-paste", "clear", 16*3, () ->
|
|
||||||
use[0].paste(Core.app.getClipboard().getContents(), false))
|
|
||||||
.visible(() -> Core.app.getClipboard() != null && Core.app.getClipboard().getContents() != null && !Core.app.getClipboard().getContents().isEmpty()).width(65f);
|
|
||||||
|
|
||||||
TextField to = dialog.content().addField(field.getText(), t-> {}).pad(15).width(250f).get();
|
|
||||||
to.setMaxLength(maxLength);
|
|
||||||
to.keyDown(KeyCode.ENTER, () -> dialog.content().find("okb").fireClick());
|
|
||||||
|
|
||||||
use[0] = to;
|
|
||||||
|
|
||||||
dialog.content().addButton("$text.ok", () -> {
|
|
||||||
field.clearText();
|
|
||||||
field.appendText(to.getText());
|
|
||||||
field.change();
|
|
||||||
dialog.hide();
|
|
||||||
Core.input.setOnscreenKeyboardVisible(false);
|
|
||||||
}).width(90f).name("okb");
|
|
||||||
|
|
||||||
dialog.show();
|
|
||||||
Time.runTask(1f, () -> {
|
|
||||||
to.setCursorPosition(to.getText().length());
|
|
||||||
Core.scene.setKeyboardFocus(to);
|
|
||||||
Core.input.setOnscreenKeyboardVisible(true);
|
|
||||||
});*/
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
/**Update discord RPC.*/
|
/**Update discord RPC.*/
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ public class BackgroundFragment extends Fragment{
|
|||||||
Draw.shader();
|
Draw.shader();
|
||||||
|
|
||||||
boolean portrait = Core.graphics.getWidth() < Core.graphics.getHeight();
|
boolean portrait = Core.graphics.getWidth() < Core.graphics.getHeight();
|
||||||
float logoscl = (int) Unit.dp.scl(1) * (portrait ? 0.5f : 0.75f);
|
float logoscl = (int) Unit.dp.scl(1);
|
||||||
TextureRegion logo = Core.atlas.find("logotext");
|
TextureRegion logo = Core.atlas.find("logotext");
|
||||||
float logow = logo.getWidth() * logoscl;
|
float logow = logo.getWidth() * logoscl;
|
||||||
float logoh = logo.getHeight() * logoscl;
|
float logoh = logo.getHeight() * logoscl;
|
||||||
|
|||||||
Reference in New Issue
Block a user