use of com.kotcrab.vis.ui.widget.VisProgressBar in project vis-ui by kotcrab.
the class TestVertical method addVisWidgets.
private void addVisWidgets() {
VisProgressBar progressbar = new VisProgressBar(0, 100, 1, true);
VisSlider slider = new VisSlider(0, 100, 1, true);
VisSlider sliderDisabled = new VisSlider(0, 100, 1, true);
progressbar.setValue(50);
slider.setValue(50);
sliderDisabled.setValue(50);
sliderDisabled.setDisabled(true);
VisTable progressbarTable = new VisTable(true);
progressbarTable.add(progressbar);
progressbarTable.add(slider);
progressbarTable.add(sliderDisabled);
add(progressbarTable);
}
use of com.kotcrab.vis.ui.widget.VisProgressBar in project HyperLap2D by rednblackgames.
the class ImportPanel method setImportingView.
public void setImportingView(int type, int count) {
mainTable.clear();
errorLabel.getColor().a = 0;
errorLabel.clearActions();
String typeText = typeNames.get(type);
if (count > 1)
typeText += " (" + count + ")";
mainTable.add(new VisLabel("Currently importing: " + typeText)).left();
mainTable.row().padBottom(5);
progressBar = new VisProgressBar(0, 100, 1, false);
mainTable.add(progressBar).fillX().padTop(5).width(250);
mainTable.row().padBottom(5);
pack();
}
Aggregations