Logo update
|
Before Width: | Height: | Size: 256 B After Width: | Height: | Size: 294 B |
|
Before Width: | Height: | Size: 284 B After Width: | Height: | Size: 321 B |
|
Before Width: | Height: | Size: 282 B After Width: | Height: | Size: 320 B |
|
Before Width: | Height: | Size: 392 B After Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 325 KiB After Width: | Height: | Size: 327 KiB |
@@ -24,7 +24,6 @@ ButtonStyle: {
|
|||||||
},
|
},
|
||||||
TextButtonStyle: {
|
TextButtonStyle: {
|
||||||
default: {over: button-over, disabled: button, font: default-font, fontColor: white, disabledFontColor: gray, down: button-down, up: button},
|
default: {over: button-over, disabled: button, font: default-font, fontColor: white, disabledFontColor: gray, down: button-down, up: button},
|
||||||
left: {over: button-left-over, font: default-font, fontColor: white, disabledFontColor: gray, down: button-left-down, up: button-left},
|
|
||||||
right: {over: button-right-over, font: default-font, fontColor: white, disabledFontColor: gray, down: button-right-down, up: button-right},
|
right: {over: button-right-over, font: default-font, fontColor: white, disabledFontColor: gray, down: button-right-down, up: button-right},
|
||||||
wave: {font: default-font, fontColor: white, disabledFontColor: gray, up: button-edge-4},
|
wave: {font: default-font, fontColor: white, disabledFontColor: gray, up: button-edge-4},
|
||||||
clear: {over: flat-over, font: default-font, fontColor: white, disabledFontColor: gray, down: pane, up: flat},
|
clear: {over: flat-over, font: default-font, fontColor: white, disabledFontColor: gray, down: pane, up: flat},
|
||||||
|
|||||||
@@ -29,13 +29,13 @@ public class BackgroundFragment extends Fragment{
|
|||||||
Draw.color();
|
Draw.color();
|
||||||
|
|
||||||
boolean portrait = Gdx.graphics.getWidth() < Gdx.graphics.getHeight();
|
boolean portrait = Gdx.graphics.getWidth() < Gdx.graphics.getHeight();
|
||||||
float logoscl = (int) Unit.dp.scl(7) * (portrait ? 5f / 7f : 1f);
|
|
||||||
TextureRegion logo = Core.skin.getRegion("logotext");
|
TextureRegion logo = Core.skin.getRegion("logotext");
|
||||||
float logow = logo.getRegionWidth() * logoscl;
|
float ratio = (float)logo.getRegionWidth() / logo.getRegionHeight();
|
||||||
float logoh = logo.getRegionHeight() * logoscl;
|
float logow = 810f;
|
||||||
|
float logoh = logow / ratio;
|
||||||
|
|
||||||
Draw.color();
|
Draw.color();
|
||||||
Core.batch.draw(logo, (int) (w / 2 - logow / 2), (int) (h - logoh + 15 - Unit.dp.scl(portrait ? 30f : 0)), logow, logoh);
|
Core.batch.draw(logo, (int) (w / 2 - logow / 2), (int) (h - logoh - Unit.dp.scl(portrait ? 30f : 20)), logow, logoh);
|
||||||
}).visible(() -> state.is(State.menu)).grow();
|
}).visible(() -> state.is(State.menu)).grow();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ public class DesktopLauncher extends Lwjgl3Application{
|
|||||||
config.setTitle("Mindustry");
|
config.setTitle("Mindustry");
|
||||||
config.setMaximized(true);
|
config.setMaximized(true);
|
||||||
config.setWindowedMode(960, 540);
|
config.setWindowedMode(960, 540);
|
||||||
config.setBackBufferConfig(0, 0, 0, 0, 0, 0, 16);
|
//config.setBackBufferConfig(0, 0, 0, 0, 0, 0, 16);
|
||||||
config.setWindowIcon("sprites/icon.png");
|
config.setWindowIcon("sprites/icon.png");
|
||||||
|
|
||||||
Platform.instance = new DesktopPlatform(arg);
|
Platform.instance = new DesktopPlatform(arg);
|
||||||
|
|||||||