1
0
Fork 0
spacetac/src/scripts/view/widgets/ShipListItem.ts

10 lines
393 B
TypeScript
Raw Normal View History

module SpaceTac.View.Widgets {
// One item in a ship list (used in BattleView)
export class ShipListItem extends Phaser.Button {
// Create a ship button for the battle ship list
constructor(ui: UIGroup, x: number, y: number, owned: boolean) {
super(ui.game, x, y, owned ? 'ui-shiplist-own' : 'ui-shiplist-enemy');
ui.add(this);
}
}
}