List of usage examples for com.badlogic.gdx.scenes.scene2d.ui CheckBox getStyle
public CheckBoxStyle getStyle()
From source file:org.pidome.client.photoframe.screens.loginloader.LoginPreloadProgressScreen.java
/** * Constructor./*from w ww .j a v a 2s.co m*/ * Sets the client system link and initializes the progress display. * @param listener Listener to report back to. * @param system the PCC system backend. */ public LoginPreloadProgressScreen(LoginPreloadProgressListener listener, PCCSystem system) { super(); this.listener = listener; this.clientSystem = system; this.app = (RaspberryMirror) listener; progressPositionX = (ScreenDisplay.getStageWidth() - progressbarWidth) / 2.0f; progressPositionY = (ScreenDisplay.getStageHeight() - progressbarHeight) / 2.0f; /** * Workaround until fixed, overwriting values in the skin. */ Label fakeLabel = new Label("", skin); fakeLabel.getStyle().font = defaultFont; TextButton fakeButton = new TextButton("Connect", skin); fakeButton.getStyle().font = defaultFont; CheckBox fakeCheck = new CheckBox(" Yes", skin); fakeCheck.getStyle().font = defaultFont; stage = new Stage(); inputMultiplexer.addProcessor(stage); inputMultiplexer.addProcessor(this); Gdx.input.setInputProcessor(inputMultiplexer); font.setWrap(true); font.setWidth(ScreenDisplay.getStageWidth() * .7f); font.setAlignment(Align.center); }