v0.9.3a: badge banner is now refreshed on multi badge, not recreated
This commit is contained in:
parent
fa2e63a529
commit
2706ed0fdf
|
@ -61,6 +61,10 @@ public class BadgeBanner extends Image {
|
|||
atlas = new TextureFilm( texture, 16, 16 );
|
||||
}
|
||||
|
||||
setup(index);
|
||||
}
|
||||
|
||||
public void setup( int index ){
|
||||
this.index = index;
|
||||
|
||||
frame( atlas.get( index ) );
|
||||
|
@ -113,7 +117,7 @@ public class BadgeBanner extends Image {
|
|||
killAndErase();
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -189,9 +193,11 @@ public class BadgeBanner extends Image {
|
|||
|
||||
public static BadgeBanner show( int image ) {
|
||||
if (current != null) {
|
||||
current.killAndErase();
|
||||
current.setup(image);
|
||||
} else {
|
||||
current = new BadgeBanner(image);
|
||||
}
|
||||
return (current = new BadgeBanner( image ));
|
||||
return current;
|
||||
}
|
||||
|
||||
public static Image image( int index ) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user