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
|
@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;
|
||||||
|
|||||||
Reference in New Issue
Block a user