List of usage examples for com.badlogic.gdx.scenes.scene2d.ui Cell height
public Cell<T> height(float height)
From source file:com.bladecoder.engineeditor.ui.components.EditDialog.java
License:Apache License
public void setVisible(InputPanel i, boolean v) { i.setVisible(v);// w w w . j a v a 2 s . c om Cell<InputPanel> c = getCenterPanel().getCell(i); if (v) { c.height(i.getPrefHeight()); } else { c.height(1); } i.invalidateHierarchy(); }
From source file:com.kotcrab.vis.ui.building.utilities.CellWidget.java
License:Apache License
private void applySizeData(final Cell<?> cell) { if (width > IGNORED_SIZE) { cell.width(width);//from w w w . j ava 2 s . co m } if (height > IGNORED_SIZE) { cell.height(height); } if (minWidth > IGNORED_SIZE) { cell.minWidth(minWidth); } if (minHeight > IGNORED_SIZE) { cell.minHeight(minHeight); } }
From source file:com.vlaaad.dice.game.tutorial.ui.windows.TutorialMessageWindow.java
License:Open Source License
@Override protected void initialize() { Table table = new Table(Config.skin); table.setBackground(Config.skin.getDrawable("ui-tutorial-window-background")); label = new LocLabel("", DieMessageWindow.ACTIVE); label.setWrap(true);/*from ww w . j av a 2s . c o m*/ label.setAlignment(Align.center); table.setTouchable(Touchable.disabled); Label tapToContinue = new LocLabel("tap-to-continue", DieMessageWindow.INACTIVE); tapToContinue.setWrap(true); tapToContinue.setAlignment(Align.center); if (image != null) { image.setTouchable(Touchable.disabled); table.add(image).padTop(-15 - dy).row(); } final Cell<LocLabel> cell = table.add(label).width(100); if (forceLabelHeight) cell.height(labelHeight); cell.row(); table.add(new Image(Config.skin, "ui-tutorial-window-line")).padTop(4).row(); table.add(tapToContinue).width(80).row(); this.table.add(table); }