Skip to content

Commit

Permalink
UI landscape 반대로 전환 & Challenge 버튼 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
gagip committed Jul 8, 2021
1 parent e97d1a8 commit edd0cb7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public static void landscape( boolean value ) {
}

public static boolean landscape() {
return width < height;
return width > height;
}

// *** IMMERSIVE MODE ****
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@ protected void onClick() {
shield.setRect( left + i * shieldW, top, shieldW, shieldH );
}

// ChallengeButton challenge = new ChallengeButton();
// challenge.setPos(
// w / 2 - challenge.width() / 2,
// top + shieldH - challenge.height() / 2 );
// add( challenge );
ChallengeButton challenge = new ChallengeButton();
challenge.setPos(
w / 2 - challenge.width() / 2,
top + shieldH - challenge.height() / 2 );
add( challenge );

} else {
float shieldW = width / 2;
Expand All @@ -170,11 +170,11 @@ protected void onClick() {
shieldW, shieldH );
}

// ChallengeButton challenge = new ChallengeButton();
// challenge.setPos(
// w / 2 - challenge.width() / 2,
// top + shieldH - challenge.height() / 2 );
// add( challenge );
ChallengeButton challenge = new ChallengeButton();
challenge.setPos(
w / 2 - challenge.width() / 2,
top + shieldH - challenge.height() / 2 );
add( challenge );
}

// unlock = new Group();
Expand Down Expand Up @@ -469,8 +469,8 @@ protected void createChildren() {

super.createChildren();

// image = Icons.get( PixelDungeon.challenges() > 0 ? Icons.CHALLENGE_ON :Icons.CHALLENGE_OFF );
// add( image );
image = Icons.get( PedometerPixelDungeon.challenges() > 0 ? Icons.CHALLENGE_ON :Icons.CHALLENGE_OFF );
add( image );
}

@Override
Expand Down

0 comments on commit edd0cb7

Please sign in to comment.