Search in sources :

Example 1 with VisProgressBar

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);
}
Also used : VisProgressBar(com.kotcrab.vis.ui.widget.VisProgressBar) VisTable(com.kotcrab.vis.ui.widget.VisTable) VisSlider(com.kotcrab.vis.ui.widget.VisSlider)

Example 2 with VisProgressBar

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();
}
Also used : VisProgressBar(com.kotcrab.vis.ui.widget.VisProgressBar) VisLabel(com.kotcrab.vis.ui.widget.VisLabel)

Aggregations

VisProgressBar (com.kotcrab.vis.ui.widget.VisProgressBar)2 VisLabel (com.kotcrab.vis.ui.widget.VisLabel)1 VisSlider (com.kotcrab.vis.ui.widget.VisSlider)1 VisTable (com.kotcrab.vis.ui.widget.VisTable)1