class TextOtherContainer extends egret . DisplayObjectContainer { /**
     * 其他玩家不出牌时的文字提示
     */ public constructor ( text , isLeft ) { super ( ) ; let pc = RES . getRes ( "layout_json" ) . textOtherContainer ; if ( isLeft ) { this . x = pc . leftX ; } else { this . x = pc . rightX ; } this . y = pc . y ; this . width = pc . width ; this . height = pc . height ; this . show ( text , isLeft ) ; } private layout ; private show ( text , isLeft ) { let x = 0 ; if ( ! isLeft ) { x = 16 + ( 6 - text . length ) * 64 ; } let tip = new TextTip ( text , x , 0 , 64 ) ; this . addChild ( tip ) ; } }