v0.8.1: tweaked the grey color for icon fading, improved fade effect
This commit is contained in:
@@ -153,7 +153,8 @@ public class BuffIndicator extends Component {
|
|||||||
for (Buff buff : buffIcons.keySet().toArray(new Buff[0])){
|
for (Buff buff : buffIcons.keySet().toArray(new Buff[0])){
|
||||||
if (!newBuffs.contains(buff)){
|
if (!newBuffs.contains(buff)){
|
||||||
Image icon = buffIcons.get( buff ).icon;
|
Image icon = buffIcons.get( buff ).icon;
|
||||||
icon.origin.set( SIZE / 2 );
|
icon.origin.set( SIZE / 2f );
|
||||||
|
icon.alpha(0.6f);
|
||||||
add( icon );
|
add( icon );
|
||||||
add( new AlphaTweener( icon, 0, 0.6f ) {
|
add( new AlphaTweener( icon, 0, 0.6f ) {
|
||||||
@Override
|
@Override
|
||||||
@@ -207,7 +208,7 @@ public class BuffIndicator extends Component {
|
|||||||
icon.frame( film.get( buff.icon() ) );
|
icon.frame( film.get( buff.icon() ) );
|
||||||
add( icon );
|
add( icon );
|
||||||
|
|
||||||
grey = new Image( TextureCache.createSolid(0xCC808080));
|
grey = new Image( TextureCache.createSolid(0xCC666666));
|
||||||
add( grey );
|
add( grey );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user