From cf793e3b0debd729ccb0ca100076214666f594c9 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sat, 9 May 2020 18:16:01 -0400 Subject: [PATCH] v0.8.1: tweaked the grey color for icon fading, improved fade effect --- .../shatteredpixeldungeon/ui/BuffIndicator.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/BuffIndicator.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/BuffIndicator.java index 22c51421b..dcea68367 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/BuffIndicator.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/BuffIndicator.java @@ -153,7 +153,8 @@ public class BuffIndicator extends Component { for (Buff buff : buffIcons.keySet().toArray(new Buff[0])){ if (!newBuffs.contains(buff)){ Image icon = buffIcons.get( buff ).icon; - icon.origin.set( SIZE / 2 ); + icon.origin.set( SIZE / 2f ); + icon.alpha(0.6f); add( icon ); add( new AlphaTweener( icon, 0, 0.6f ) { @Override @@ -207,7 +208,7 @@ public class BuffIndicator extends Component { icon.frame( film.get( buff.icon() ) ); add( icon ); - grey = new Image( TextureCache.createSolid(0xCC808080)); + grey = new Image( TextureCache.createSolid(0xCC666666)); add( grey ); }