Commit 608c9b81 authored by Vitaliy Vashchenko's avatar Vitaliy Vashchenko

Merge branch 'feature-desktop-hd-assets' into V3.6.3

parents 8d6e16cc a4f69d31
......@@ -41,6 +41,8 @@ public class PlaySoundScreen extends Group {
private static final float PAUSE_DURATION = 0.5f;
private static final int ACTION_CARD_SIZE = 200;
private static final int NUMBER_IMAGE_MAX_HEIGHT = 150;
private Image actionCard, overlay;
private Group numberGroup = new Group();
private List<Music> musicList;
......@@ -146,6 +148,8 @@ public class PlaySoundScreen extends Group {
for(int i = 0; i < numberOfNumerals; i++) {
numberImages[i] = new Image(crimeSceneGame.getScreenTextureRegion(Numbers.getNumberTexture(cardOrder)[i]));
float imgWidth = NUMBER_IMAGE_MAX_HEIGHT * (numberImages[i].getWidth() / numberImages[i].getHeight());
numberImages[i].setSize(imgWidth, NUMBER_IMAGE_MAX_HEIGHT);
numberImages[i].setY(crimeSceneGame.getViewportHeight() / 2 - numberImages[0].getHeight() / 2);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment