List of usage examples for com.badlogic.gdx.scenes.scene2d.ui Cell getTable
public Table getTable()
From source file:com.forerunnergames.peril.client.ui.screens.game.play.modes.classic.dialogs.armymovement.AbstractArmyMovementDialog.java
License:Open Source License
private void setCountryImage(final Country country, final CountryArmyText countryArmyText, final Stack countryStack, final Cell<Stack> countryStackCell, final float countryArrowWidth, final CellPadding paddingType) { final Image countryImage = asImage(country); countryStack.clear();/*w ww. j a v a 2 s.c om*/ countryStack.add(countryImage); countryStack.add(countryArmyText.asActor()); getContentTable().layout(); Widgets.padCell(countryStackCell, calculateCountryImagePadding(countryImage, countryArrowWidth), paddingType); countryStackCell.getTable().invalidateHierarchy(); getContentTable().layout(); updateCountryArmyCircle(countryArmyText, country, countryImage); }