Example usage for com.badlogic.gdx.scenes.scene2d.ui ImageTextButton setStyle

List of usage examples for com.badlogic.gdx.scenes.scene2d.ui ImageTextButton setStyle

Introduction

In this page you can find the example usage for com.badlogic.gdx.scenes.scene2d.ui ImageTextButton setStyle.

Prototype

public void setStyle(ButtonStyle style) 

Source Link

Usage

From source file:com.forerunnergames.peril.client.ui.screens.menus.AbstractMenuScreen.java

License:Open Source License

@Override
public void show() {
    super.show();

    screenBackgroundLeft.setDrawable(widgetFactory.createScreenBackgroundLeftDrawable());
    screenBackgroundRight.setDrawable(widgetFactory.createScreenBackgroundRightDrawable());
    menuBar.setDrawable(widgetFactory.createMenuBarDrawable());
    rightBackgroundShadow.setDrawable(widgetFactory.createRightBackgroundShadowDrawable());
    topBackgroundShadow.setDrawable(widgetFactory.createTopBackgroundShadowDrawable());
    bottomBackgroundShadow.setDrawable(widgetFactory.createBottomBackgroundShadowDrawable());
    titleBackground.setDrawable(widgetFactory.createTitleBackgroundDrawable());
    leftMenuBarShadow.setDrawable(widgetFactory.createLeftMenuBarShadowDrawable());
    rightMenuBarShadow.setDrawable(widgetFactory.createRightMenuBarShadowDrawable());
    titleLabel.setStyle(widgetFactory.createTitleStyle());
    subTitleLabel.setStyle(widgetFactory.createSubTitleStyle());
    for (final ImageTextButton menuChoice : menuChoices) {
        menuChoice.setStyle(widgetFactory.createMenuChoiceStyle());
    }/*w  ww.j  av  a  2  s. co m*/
    for (final Map.Entry<String, TextButton> entry : textButtonStyleNameToTextButtons.entries()) {
        entry.getValue().setStyle(widgetFactory.createTextButtonStyle(entry.getKey()));
    }
}