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: {
|
||||
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},
|
||||
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},
|
||||
|
||||
@@ -29,13 +29,13 @@ public class BackgroundFragment extends Fragment{
|
||||
Draw.color();
|
||||
|
||||
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");
|
||||
float logow = logo.getRegionWidth() * logoscl;
|
||||
float logoh = logo.getRegionHeight() * logoscl;
|
||||
float ratio = (float)logo.getRegionWidth() / logo.getRegionHeight();
|
||||
float logow = 810f;
|
||||
float logoh = logow / ratio;
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||