mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 07:22:19 +02:00
Revert IV text back to original size
This commit is contained in:
parent
90ea48a2da
commit
d62e3f4a74
@ -52,10 +52,10 @@ export class StatsContainer extends Phaser.GameObjects.Container {
|
|||||||
this.ivStatValueTexts = [];
|
this.ivStatValueTexts = [];
|
||||||
|
|
||||||
new Array(6).fill(null).map((_, i: integer) => {
|
new Array(6).fill(null).map((_, i: integer) => {
|
||||||
const statLabel = addTextObject(this.scene, ivChartBg.x + (ivChartSize) * ivChartStatCoordMultipliers[i][0] * 1.325 + (this.showDiff ? 0 : ivChartLabelxOffset[i]), ivChartBg.y + (ivChartSize) * ivChartStatCoordMultipliers[i][1] * 1.325 - 4 + (this.showDiff ? 0 : ivChartLabelyOffset[i]), getStatName(i as Stat), TextStyle.TOOLTIP_CONTENT, { fontSize: "62px" });
|
const statLabel = addTextObject(this.scene, ivChartBg.x + (ivChartSize) * ivChartStatCoordMultipliers[i][0] * 1.325 + (this.showDiff ? 0 : ivChartLabelxOffset[i]), ivChartBg.y + (ivChartSize) * ivChartStatCoordMultipliers[i][1] * 1.325 - 4 + (this.showDiff ? 0 : ivChartLabelyOffset[i]), getStatName(i as Stat), TextStyle.TOOLTIP_CONTENT);
|
||||||
statLabel.setOrigin(0.5);
|
statLabel.setOrigin(0.5);
|
||||||
|
|
||||||
this.ivStatValueTexts[i] = addBBCodeTextObject(this.scene, statLabel.x - (this.showDiff ? 0 : ivChartLabelxOffset[i]), statLabel.y + 8, "0", TextStyle.TOOLTIP_CONTENT, { fontSize: "62px" });
|
this.ivStatValueTexts[i] = addBBCodeTextObject(this.scene, statLabel.x - (this.showDiff ? 0 : ivChartLabelxOffset[i]), statLabel.y + 8, "0", TextStyle.TOOLTIP_CONTENT);
|
||||||
this.ivStatValueTexts[i].setOrigin(0.5);
|
this.ivStatValueTexts[i].setOrigin(0.5);
|
||||||
|
|
||||||
this.add(statLabel);
|
this.add(statLabel);
|
||||||
|
Loading…
Reference in New Issue
Block a user