mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
adjust labels
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user