Skip to content

Commit

Permalink
fix: add mana price
Browse files Browse the repository at this point in the history
  • Loading branch information
agustincarriso committed Jan 16, 2025
1 parent c21def8 commit e9ec6e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ui/itemamountpanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class ItemAmountPanel {
// let trans:Transform = new Transform({ position: _pos, scale: Vector3.One() });
// trans.rotation.eulerAngles = Vector3.create(0, 0, -90);
// this.addComponent(trans);
let bgSize: Vector3 = Vector3.create(0.36, 0.15, 0.1)
let bgSize: Vector3 = Vector3.create(0,0,0)
let iconScale: number = 0.14
if (_isSmall) {
bgSize = Vector3.create(0.32, 0.12, 0.1)
Expand Down Expand Up @@ -106,7 +106,7 @@ export class ItemAmountPanel {

show(_frameNum: number, _value: number, _numOwned: number = 0): void {
// log("show(" + _frameNum + ", " + _value + ", " + _numOwned) + ")";
if (_numOwned >= _value) {
if (_numOwned >= _value) {
this.enable()
} else {
this.disable()
Expand All @@ -118,7 +118,7 @@ export class ItemAmountPanel {
}

showText(_text: string): void {
this.textField = _text
TextShape.getMutable(this.textEntity).text = _text
}

enable(): void {
Expand Down

0 comments on commit e9ec6e3

Please sign in to comment.