v1.3.0: fixed a small visual bug with buff icons on full UI

This commit is contained in:
Evan Debenham
2022-06-08 15:34:14 -04:00
parent e5d94cc864
commit 4b86d12ecf

View File

@@ -240,7 +240,7 @@ public class BuffIndicator extends Component {
public void updateIcon(){
((BuffIcon)icon).refresh(buff);
//round up to the nearest pixel if <50% faded, otherwise round down
if (!large) {
if (!large || buff.iconTextDisplay().isEmpty()) {
text.visible = false;
float fadeHeight = buff.iconFadePercent() * icon.height();
float zoom = (camera() != null) ? camera().zoom : 1;