v2.5.0: fixed badges list/grid not adding info window properly

This commit is contained in:
Evan Debenham
2024-09-04 13:38:56 -04:00
parent d5ef9fef16
commit 09b2338b54
2 changed files with 2 additions and 2 deletions
@@ -139,7 +139,7 @@ public class BadgesGrid extends Component {
@Override @Override
protected void onClick() { protected void onClick() {
Sample.INSTANCE.play( Assets.Sounds.CLICK, 0.7f, 0.7f, 1.2f ); Sample.INSTANCE.play( Assets.Sounds.CLICK, 0.7f, 0.7f, 1.2f );
Game.scene().add( new WndBadge( badge, unlocked ) ); Game.scene().addToFront( new WndBadge( badge, unlocked ) );
} }
@Override @Override
@@ -120,7 +120,7 @@ public class BadgesList extends ScrollPane {
public boolean onClick( float x, float y ) { public boolean onClick( float x, float y ) {
if (inside( x, y )) { if (inside( x, y )) {
Sample.INSTANCE.play( Assets.Sounds.CLICK, 0.7f, 0.7f, 1.2f ); Sample.INSTANCE.play( Assets.Sounds.CLICK, 0.7f, 0.7f, 1.2f );
Game.scene().add( new WndBadge( badge, true ) ); Game.scene().addToFront( new WndBadge( badge, true ) );
return true; return true;
} else { } else {
return false; return false;