import { _decorator, ccenum, Label, Node } from 'cc';
import { InGamePanel } from './InGamePanel';

const { ccclass, property } = _decorator;

@ccclass('GameOverPanel')
export class GameOverPanel extends InGamePanel
{
    @property({type: Label})
    public m_GameOverHeader: Label;
    
    @property({type: Label})
    public m_GameOverLabel: Label;
    
    private m_GameLoseText = "You’ve run out of turns! The ships drift apart into the mist…";
    
    public fn_InitText()
    {
        this.m_GameOverLabel.string = this.m_GameLoseText;
        this.m_GameOverHeader.string = "Game Over";
    }
}

