Example usage for com.badlogic.gdx.scenes.scene2d.ui Skin get

List of usage examples for com.badlogic.gdx.scenes.scene2d.ui Skin get

Introduction

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

Prototype

public <T> T get(Class<T> type) 

Source Link

Usage

From source file:com.agateau.ui.menu.RangeMenuItem.java

License:Apache License

private static Button createButton(Drawable drawable, Skin skin) {
    ImageButton.ImageButtonStyle style = new ImageButton.ImageButtonStyle(
            skin.get(ImageButton.ImageButtonStyle.class));
    style.imageUp = drawable;//ww w .j  a  va2s .  co m
    return new ImageButton(style);
}

From source file:com.aia.hichef.ui.n.MyDialog.java

License:Apache License

public MyDialog(String title, Skin skin) {
    super(title, skin.get(WindowStyle.class));
    this.skin = skin;
    WindowStyle style = skin.get(WindowStyle.class);
    style.titleFont = Assets.instance.fontFactory.getRegular20();
    setStyle(skin.get(WindowStyle.class));
    initialize();//from   ww w. ja  va  2 s .c  o m
}

From source file:com.aia.hichef.ui.n.MyWindow.java

License:Apache License

public MyWindow(String title, Skin skin) {
    this(title, skin.get(WindowStyle.class));
    setSkin(skin);
}

From source file:com.anstrat.gui.SnapScrollPane.java

License:Apache License

/** @param widget May be null. */
public SnapScrollPane(Actor widget, Skin skin) {
    this(widget, skin.get(SnapScrollPaneStyle.class));
}

From source file:com.apptogo.roperace.custom.MyTouchpad.java

License:Apache License

/** @param deadzoneRadius The distance in pixels from the center of the touchpad required for the knob to be moved. */
public MyTouchpad(float deadzoneRadius, Skin skin) {
    this(deadzoneRadius, skin.get(TouchpadStyle.class));
}

From source file:com.badlogic.gdx.ai.tests.utils.scene2d.FloatValueLabel.java

License:Apache License

public FloatValueLabel(CharSequence text, float initialValue, Skin skin) {
    this(text, initialValue, skin.get(LabelStyle.class));
}

From source file:com.badlogic.gdx.ai.tests.utils.scene2d.FpsLabel.java

License:Apache License

public FpsLabel(CharSequence text, Skin skin) {
    this(text, skin.get(LabelStyle.class));
}

From source file:com.badlogic.gdx.ai.tests.utils.scene2d.IntValueLabel.java

License:Apache License

public IntValueLabel(CharSequence text, int initialValue, Skin skin) {
    this(text, initialValue, skin.get(LabelStyle.class));
}

From source file:com.badlogic.gdx.ai.tests.utils.scene2d.PauseButton.java

public PauseButton(Actor cover, Skin skin) {
    super(PAUSE_AI, skin.get(TextButtonStyle.class));
    initialize(cover);
}

From source file:com.badlogic.gdx.ai.tests.utils.scene2d.TabbedPane.java

License:Apache License

/** Creates a {@code TabbedPane} using the specified skin.
 * @param skin the skin *//*  w  w  w  . j av  a 2 s  . c om*/
public TabbedPane(Skin skin) {
    super(skin);
    initialize(skin.get(TabbedPaneStyle.class));
}