public void offset( int yOffset ){ camera.y -= this.yOffset * camera.zoom; this.yOffset = yOffset; camera.y += yOffset * camera.zoom; shadow.boxRect( camera.x / camera.zoom, camera.y / camera.zoom, chrome.width(), chrome.height ); }
public void offset( int yOffset ){ camera.y -= this.yOffset * camera.zoom; this.yOffset = yOffset; 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; 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 ); }
camera.x / camera.zoom, camera.y / camera.zoom, chrome.width(), chrome.height );
camera.x / camera.zoom, camera.y / camera.zoom, chrome.width(), chrome.height );
camera.x / camera.zoom, camera.y / camera.zoom, chrome.width(), chrome.height );
@Override protected void layout() { super.layout(); bg.x = x; bg.y = y; bg.size( width, height ); close.setPos( bg.x + bg.width() - bg.marginHor() / 2 - MARGIN_HOR - close.width(), y + (height - close.height()) / 2 ); text.x = close.left() - MARGIN_HOR - text.width(); text.y = y + (height - text.height()) / 2; PixelScene.align( text ); }
@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(); }
@Override protected void layout() { super.layout(); bg.x = x; bg.y = y; bg.size( width, height ); close.setPos( bg.x + bg.width() - bg.marginHor() / 2f - MARGIN_HOR - close.width(), y + (height - close.height()) / 2f ); PixelScene.align(close); text.setPos(close.left() - MARGIN_HOR - text.width(), y + (height - text.height()) / 2); PixelScene.align(text); }
@Override protected void layout() { super.layout(); bg.x = x; bg.y = y; bg.size( width, height ); close.setPos( bg.x + bg.width() - bg.marginHor() / 2f - MARGIN_HOR - close.width(), y + (height - close.height()) / 2f ); PixelScene.align(close); text.setPos(close.left() - MARGIN_HOR - text.width(), y + (height - text.height()) / 2); PixelScene.align(text); }
camera.x / camera.zoom, camera.y / camera.zoom, chrome.width(), chrome.height );
camera.x / camera.zoom, camera.y / camera.zoom, chrome.width(), chrome.height );
camera.x / camera.zoom, camera.y / camera.zoom, chrome.width(), chrome.height );