10 lines
393 B
TypeScript
10 lines
393 B
TypeScript
|
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);
|
||
|
}
|
||
|
}
|
||
|
}
|