Java Code Examples for com.badlogic.gdx.scenes.scene2d.ui.ProgressBar#ProgressBarStyle
The following examples show how to use
com.badlogic.gdx.scenes.scene2d.ui.ProgressBar#ProgressBarStyle .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PackDialogController.java From gdx-texture-packer-gui with Apache License 2.0 | 5 votes |
@Override public void onProcessingFinished() { btnClose.setDisabled(false); btnClose.setColor(Color.WHITE); FocusManager.switchFocus(stage, btnClose); window.closeOnEscape(); if (!errors && cbAutoClose.isChecked()) { window.hide(); showReopenLastDialogNotification(); } // If there is only one pack, show log on error if (errors && adapter.size() == 1) { adapter.getView(adapter.get(0)).showLogWindow(); } // Indicate total result by changing progress bar color { ProgressBar.ProgressBarStyle style = new ProgressBar.ProgressBarStyle(progressBar.getStyle()); Drawable fill = errors ? VisUI.getSkin().getDrawable("progressBarErr") : VisUI.getSkin().getDrawable("progressBarSucc"); style.knob = fill; style.knobBefore = fill; progressBar.setStyle(style); } }