Add money items
This commit is contained in:
1 parent
84fe12d83a
commit
80095a64fc
6 files changed
+61
-9
No files matched your search
@@ -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