more style changes
This commit is contained in:
parent
a50f7a7e9b
commit
310036e832
@ -61,7 +61,7 @@ export class CustomWokaPreviewer extends Phaser.GameObjects.Container {
|
|||||||
this.frame = this.scene.add.graphics();
|
this.frame = this.scene.add.graphics();
|
||||||
this.turnIcon = this.scene.add
|
this.turnIcon = this.scene.add
|
||||||
.image(this.background.displayWidth * 0.35, this.background.displayHeight * 0.35, "iconTurn")
|
.image(this.background.displayWidth * 0.35, this.background.displayHeight * 0.35, "iconTurn")
|
||||||
.setScale(0.25)
|
.setScale(0.2)
|
||||||
.setAlpha(0.75);
|
.setAlpha(0.75);
|
||||||
|
|
||||||
this.drawFrame();
|
this.drawFrame();
|
||||||
@ -129,11 +129,11 @@ export class CustomWokaPreviewer extends Phaser.GameObjects.Container {
|
|||||||
this.changeAnimation(direction, moving);
|
this.changeAnimation(direction, moving);
|
||||||
|
|
||||||
this.turnIconTween?.stop();
|
this.turnIconTween?.stop();
|
||||||
this.turnIcon.setScale(0.25);
|
this.turnIcon.setScale(0.2);
|
||||||
this.turnIconTween = this.scene.tweens.add({
|
this.turnIconTween = this.scene.tweens.add({
|
||||||
targets: [this.turnIcon],
|
targets: [this.turnIcon],
|
||||||
duration: 100,
|
duration: 100,
|
||||||
scale: 0.2,
|
scale: 0.15,
|
||||||
yoyo: true,
|
yoyo: true,
|
||||||
ease: Easing.SineEaseIn,
|
ease: Easing.SineEaseIn,
|
||||||
});
|
});
|
||||||
|
@ -154,7 +154,14 @@ export class CustomizeScene extends AbstractCharacterScene {
|
|||||||
if (this.textures.getTextureKeys().includes(`floorTexture${i}`)) {
|
if (this.textures.getTextureKeys().includes(`floorTexture${i}`)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
TexturesHelper.createFloorRectangleTexture(this, `floorTexture${i}`, 50, 50, "floorTiles", i);
|
TexturesHelper.createFloorRectangleTexture(
|
||||||
|
this,
|
||||||
|
`floorTexture${i}`,
|
||||||
|
WokaBodyPartSlot.SIZE,
|
||||||
|
WokaBodyPartSlot.SIZE,
|
||||||
|
"floorTiles",
|
||||||
|
i
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -328,13 +335,14 @@ export class CustomizeScene extends AbstractCharacterScene {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private handleCustomWokaPreviewerOnResize(): void {
|
private handleCustomWokaPreviewerOnResize(): void {
|
||||||
|
const ratio = innerHeight / innerWidth;
|
||||||
this.customWokaPreviewer.x = this.cameras.main.worldView.x + this.cameras.main.width / 2;
|
this.customWokaPreviewer.x = this.cameras.main.worldView.x + this.cameras.main.width / 2;
|
||||||
this.customWokaPreviewer.y = this.customWokaPreviewer.displayHeight * 0.5 + 10;
|
this.customWokaPreviewer.y = this.customWokaPreviewer.displayHeight * 0.5 + (ratio > 1.6 ? 40 : 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
private handleBodyPartButtonsOnResize(): void {
|
private handleBodyPartButtonsOnResize(): void {
|
||||||
const ratio = innerHeight / innerWidth;
|
const ratio = innerHeight / innerWidth;
|
||||||
const slotDimension = 50;
|
const slotDimension = WokaBodyPartSlot.SIZE;
|
||||||
|
|
||||||
for (const part in this.bodyPartsButtons) {
|
for (const part in this.bodyPartsButtons) {
|
||||||
this.bodyPartsButtons[part as CustomWokaBodyPart].setDisplaySize(slotDimension, slotDimension);
|
this.bodyPartsButtons[part as CustomWokaBodyPart].setDisplaySize(slotDimension, slotDimension);
|
||||||
|
Loading…
Reference in New Issue
Block a user