adjust labels

This commit is contained in:
Anthony Calosa
2023-06-04 11:41:59 +08:00
parent 4eec93a3d8
commit b83963b285

View File

@@ -345,7 +345,7 @@ public class RewardActor extends Actor implements Disposable, ImageFetcher.Callb
} }
setItemTooltips(item, backSprite, isBooster); setItemTooltips(item, backSprite, isBooster);
processSprite(backSprite, item, Controls.newTextraLabel("[%200]" + editionCode + " Booster"), 0, isBooster ? -40 : -10, isBooster); processSprite(backSprite, item, Controls.newTextraLabel("[%200]" + editionCode + " Booster"), 0, -10, isBooster);
needsToBeDisposed = true; needsToBeDisposed = true;
break; break;
} }
@@ -574,7 +574,7 @@ public class RewardActor extends Actor implements Disposable, ImageFetcher.Callb
if (!isBooster) { if (!isBooster) {
float iw = item.getWidth() * 4; float iw = item.getWidth() * 4;
float ih = item.getHeight() * 4; float ih = item.getHeight() * 4;
batch.draw(item, pw / 2 - iw / 2, (ph / 2 - ih / 2) - modY, iw, ih); batch.draw(item, pw / 2 - iw / 2, (ph / 2 - ih / 2), iw, ih);
} else } else
batch.draw(item, pw / 4, ph / 4, pw / 2, ph / 2); batch.draw(item, pw / 4, ph / 4, pw / 2, ph / 2);
} }
@@ -583,8 +583,8 @@ public class RewardActor extends Actor implements Disposable, ImageFetcher.Callb
itemText.setAlignment(1); itemText.setAlignment(1);
itemText.setWidth(pw); itemText.setWidth(pw);
itemText.setHeight(ph); itemText.setHeight(ph);
itemText.setX(itemText.getX() + modX); itemText.setX(itemText.getX() + (modX * 4));
itemText.setY(itemText.getY() + modY); itemText.setY(itemText.getY() + (modY * 8));
itemText.draw(batch, 1); itemText.draw(batch, 1);
} }
batch.end(); batch.end();