v3.2.5: reverted some corner UI insets on desktop
This commit is contained in:
@@ -47,6 +47,7 @@ import com.watabou.noosa.BitmapText;
|
||||
import com.watabou.noosa.Camera;
|
||||
import com.watabou.noosa.Image;
|
||||
import com.watabou.noosa.audio.Music;
|
||||
import com.watabou.utils.DeviceCompat;
|
||||
import com.watabou.utils.GameMath;
|
||||
import com.watabou.utils.RectF;
|
||||
|
||||
@@ -147,7 +148,7 @@ public class RankingsScene extends PixelScene {
|
||||
btnExit.setPos( Camera.main.width - btnExit.width() - insets.right, insets.top );
|
||||
add( btnExit );
|
||||
|
||||
float left = insets.left + (PixelScene.landscape() ? 10 : 0);
|
||||
float left = insets.left + (PixelScene.landscape() && !DeviceCompat.isDesktop() ? 10 : 0);
|
||||
|
||||
if (Rankings.INSTANCE.latestDaily != null) {
|
||||
IconButton btnDailies = new IconButton(Icons.CALENDAR.get()) {
|
||||
|
||||
@@ -221,9 +221,8 @@ public class TitleScene extends PixelScene {
|
||||
BitmapText version = new BitmapText( "v" + Game.version, pixelFont);
|
||||
version.measure();
|
||||
version.hardlight( 0x888888 );
|
||||
//TODO perhaps extra check for Android top-right / top-left notches?
|
||||
version.x = insets.left + w - version.width() - 8;
|
||||
version.y = insets.top + h - version.height() - 4;
|
||||
version.x = insets.left + w - version.width() - (DeviceCompat.isDesktop() ? 4 : 8);
|
||||
version.y = insets.top + h - version.height() - (DeviceCompat.isDesktop() ? 2 : 4);
|
||||
add( version );
|
||||
|
||||
if (DeviceCompat.isDesktop()) {
|
||||
|
||||
Reference in New Issue
Block a user