public Toast( String text ) { super(); text( text ); width = this.text.width() + close.width() + bg.marginHor() + MARGIN_HOR * 3; height = Math.max( this.text.height(), close.height() ) + bg.marginVer() + MARGIN_VER * 2; }
public Toast( String text ) { super(); text( text ); width = this.text.width() + close.width() + bg.marginHor() + MARGIN_HOR * 3; height = Math.max( this.text.height(), close.height() ) + bg.marginVer() + MARGIN_VER * 2; }
public Toast( String text ) { super(); text( text ); width = this.text.width() + close.width() + bg.marginHor() + MARGIN_HOR * 3; height = Math.max( this.text.height(), close.height() ) + bg.marginVer() + MARGIN_VER * 2; }
public void resize( int w, int h ) { this.width = w; this.height = h; chrome.size( width + chrome.marginHor(), height + chrome.marginVer() ); camera.resize( (int)chrome.width, (int)chrome.height ); camera.x = (int)(Game.width - camera.screenWidth()) / 2; camera.y = (int)(Game.height - camera.screenHeight()) / 2; camera.y += yOffset * camera.zoom; shadow.boxRect( camera.x / camera.zoom, camera.y / camera.zoom, chrome.width(), chrome.height ); }
public void resize( int w, int h ) { this.width = w; this.height = h; chrome.size( width + chrome.marginHor(), height + chrome.marginVer() ); camera.resize( (int)chrome.width, (int)chrome.height ); camera.x = (int)(Game.width - camera.screenWidth()) / 2; camera.y = (int)(Game.height - camera.screenHeight()) / 2; shadow.boxRect( camera.x / camera.zoom, camera.y / camera.zoom, chrome.width(), chrome.height ); }
public void resize( int w, int h ) { this.width = w; this.height = h; chrome.size( width + chrome.marginHor(), height + chrome.marginVer() ); camera.resize( (int)chrome.width, (int)chrome.height ); camera.x = (int)(Game.width - camera.screenWidth()) / 2; camera.y = (int)(Game.height - camera.screenHeight()) / 2; camera.y += yOffset * camera.zoom; shadow.boxRect( camera.x / camera.zoom, camera.y / camera.zoom, chrome.width(), chrome.height ); }
height + chrome.marginVer() );
height + chrome.marginVer() );
height + chrome.marginVer() );
@Override protected void layout() { panel.x = this.x; panel.y = this.y; panel.alpha(alpha); panel.visible = updateAvailable || !quiet; updateMessage.x = panel.x+panel.marginLeft(); updateMessage.y = panel.y+panel.marginTop(); updateMessage.measure(); updateMessage.alpha(alpha); updateMessage.visible = updateAvailable || !quiet; panel.size( panel.marginHor()+updateMessage.width(), panel.marginVer()+updateMessage.height()-1); this.width = panel.width(); this.height = panel.height(); }