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

View File

@@ -139,7 +139,7 @@ public class BadgesGrid extends Component {
@Override
protected void onClick() {
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

View File

@@ -120,7 +120,7 @@ public class BadgesList extends ScrollPane {
public boolean onClick( float x, float y ) {
if (inside( x, y )) {
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;
} else {
return false;