Add money items
This commit is contained in:
1 parent
84fe12d83a
commit
80095a64fc
6 files changed
+61
-9
No files matched your search
@@ -218,7 +218,7 @@ export default class ModifierSelectUiHandler extends AwaitableUiHandler {
|
||||
if (cursor < this.options.length) {
|
||||
const sliceWidth = (this.scene.game.canvas.width / 6) / (this.options.length + 2);
|
||||
this.cursorObj.setPosition(sliceWidth * (cursor + 1) + (sliceWidth * 0.5) - 20, -this.scene.game.canvas.height / 12 - 20);
|
||||
ui.showText(this.options[this.cursor].modifierTypeOption.type.description);
|
||||
ui.showText(this.options[this.cursor].modifierTypeOption.type.getDescription(this.scene));
|
||||
} else if (cursor === this.options.length) {
|
||||
this.cursorObj.setPosition(6, -60);
|
||||
ui.showText('Spend money to reroll your item options');
|
||||
|
||||
@@ -578,7 +578,7 @@ export default class SummaryUiHandler extends UiHandler {
|
||||
statsContainer.add(icon);
|
||||
|
||||
icon.setInteractive(new Phaser.Geom.Rectangle(0, 0, 32, 32), Phaser.Geom.Rectangle.Contains);
|
||||
icon.on('pointerover', () => (this.scene as BattleScene).ui.showTooltip(item.type.name, item.type.description, true));
|
||||
icon.on('pointerover', () => (this.scene as BattleScene).ui.showTooltip(item.type.name, item.type.getDescription(this.scene), true));
|
||||
icon.on('pointerout', () => (this.scene as BattleScene).ui.hideTooltip());
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user