Bugfixes
This commit is contained in:
@@ -40,7 +40,7 @@ public class AssetsAnnotationProcessor extends AbstractProcessor{
|
|||||||
try{
|
try{
|
||||||
|
|
||||||
String path = Paths.get(Utils.filer.createResource(StandardLocation.CLASS_OUTPUT, "no", "no")
|
String path = Paths.get(Utils.filer.createResource(StandardLocation.CLASS_OUTPUT, "no", "no")
|
||||||
.toUri().toURL().toString().substring("file:".length()))
|
.toUri().toURL().toString().substring(System.getProperty("os.name").contains("Windows") ? 6 : "file:".length()))
|
||||||
.getParent().getParent().getParent().getParent().getParent().getParent().toString();
|
.getParent().getParent().getParent().getParent().getParent().getParent().toString();
|
||||||
|
|
||||||
process("Sounds", path + "/assets/sounds", "io.anuke.arc.audio.Sound", "newSound");
|
process("Sounds", path + "/assets/sounds", "io.anuke.arc.audio.Sound", "newSound");
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ public class UI implements ApplicationListener{
|
|||||||
generator = new FreeTypeFontGenerator(Core.files.internal("fonts/font.ttf"));
|
generator = new FreeTypeFontGenerator(Core.files.internal("fonts/font.ttf"));
|
||||||
|
|
||||||
FreeTypeFontParameter param = new FreeTypeFontParameter(){{
|
FreeTypeFontParameter param = new FreeTypeFontParameter(){{
|
||||||
size = (int)(9 * 2 * Math.max(UnitScl.dp.scl(1f), 0.5f));
|
size = (int)(UnitScl.dp.scl(18f));
|
||||||
shadowColor = Color.DARK_GRAY;
|
shadowColor = Color.DARK_GRAY;
|
||||||
shadowOffsetY = 2;
|
shadowOffsetY = 2;
|
||||||
incremental = true;
|
incremental = true;
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ public class MenuFragment extends Fragment{
|
|||||||
String versionText = "[#ffffffba]" + ((Version.build == -1) ? "[#fc8140aa]custom build" : Version.modifier + " build " + Version.build);
|
String versionText = "[#ffffffba]" + ((Version.build == -1) ? "[#fc8140aa]custom build" : Version.modifier + " build " + Version.build);
|
||||||
|
|
||||||
parent.fill((x, y, w, h) -> {
|
parent.fill((x, y, w, h) -> {
|
||||||
float logoscl = (int)UnitScl.dp.scl(1);
|
float logoscl = UnitScl.dp.scl(1);
|
||||||
float logow = Math.min(logo.getWidth() * logoscl, Core.graphics.getWidth() - UnitScl.dp.scl(20));
|
float logow = Math.min(logo.getWidth() * logoscl, Core.graphics.getWidth() - UnitScl.dp.scl(20));
|
||||||
float logoh = logow * (float)logo.getHeight() / logo.getWidth();
|
float logoh = logow * (float)logo.getHeight() / logo.getWidth();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user