v2.5.0: fixed badges list/grid not adding info window properly
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user