List of usage examples for com.badlogic.gdx.scenes.scene2d.ui Skin get
public <T> T get(String name, Class<T> type)
From source file:com.agateau.ui.menu.Menu.java
License:Apache License
public Menu(Skin skin, String styleName) { mSkin = skin;/*from w w w . j a v a 2s .co m*/ mStyle = skin.get(styleName, MenuStyle.class); mGroup = new MenuItemGroup(this); setLabelColumnWidth(LABEL_COLUMN_WIDTH); addActor(mGroup.getActor()); }
From source file:com.aia.hichef.ui.n.MyDialog.java
License:Apache License
public MyDialog(String title, Skin skin, String windowStyleName) { super(title, skin.get(windowStyleName, WindowStyle.class)); setSkin(skin);/* w ww . j a va 2 s.c o m*/ this.skin = skin; initialize(); }
From source file:com.aia.hichef.ui.n.MyWindow.java
License:Apache License
public MyWindow(String title, Skin skin, String styleName) { this(title, skin.get(styleName, 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, String styleName) { this(widget, skin.get(styleName, 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, String styleName) { this(deadzoneRadius, skin.get(styleName, 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, String styleName) { this(text, initialValue, skin.get(styleName, LabelStyle.class)); }
From source file:com.badlogic.gdx.ai.tests.utils.scene2d.FpsLabel.java
License:Apache License
public FpsLabel(CharSequence text, Skin skin, String styleName) { this(text, skin.get(styleName, 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, String styleName) { this(text, initialValue, skin.get(styleName, LabelStyle.class)); }
From source file:com.badlogic.gdx.ai.tests.utils.scene2d.PauseButton.java
public PauseButton(Actor cover, Skin skin, String styleName) { super(PAUSE_AI, skin.get(styleName, TextButtonStyle.class)); initialize(cover);// www . ja v a 2 s . c o m }
From source file:com.badlogic.gdx.ai.tests.utils.scene2d.TabbedPane.java
License:Apache License
/** Creates a {@code TabbedPane} using the specified skin and style name. * @param skin the skin// w w w .j a v a2 s . co m * @param styleName the style name */ public TabbedPane(Skin skin, String styleName) { super(skin); initialize(skin.get(styleName, TabbedPaneStyle.class)); }