Search in sources :

Example 1 with SelectBoxStyle

use of com.badlogic.gdx.scenes.scene2d.ui.SelectBox.SelectBoxStyle in project var3dframe by Var3D.

the class VGame method getSelectBox.

@SuppressWarnings("rawtypes")
public <T> UI<VSelectBox> getSelectBox(String titlebg) {
    UI<VSelectBox> ui = new UI<VSelectBox>(this);
    SelectBoxStyle style = new SelectBoxStyle();
    style.fontColor = Color.BLACK;
    style.background = getDrawable(titlebg);
    style.font = getFont();
    style.scrollStyle = new ScrollPaneStyle(getRectColorDrawable(1, 1, new Color(0.4f, 0.4f, 0.4f, 0.6f)), null, null, null, null);
    style.listStyle = new ListStyle(getFont(), Color.BROWN, Color.WHITE, getRectColorDrawable(1, 1, new Color(1, 1, 0, 0.3f)));
    VSelectBox select = new VSelectBox(style);
    ui.setActor(select);
    return ui;
}
Also used : ListStyle(com.badlogic.gdx.scenes.scene2d.ui.List.ListStyle) Color(com.badlogic.gdx.graphics.Color) SelectBoxStyle(com.badlogic.gdx.scenes.scene2d.ui.SelectBox.SelectBoxStyle) ScrollPaneStyle(com.badlogic.gdx.scenes.scene2d.ui.ScrollPane.ScrollPaneStyle)

Aggregations

Color (com.badlogic.gdx.graphics.Color)1 ListStyle (com.badlogic.gdx.scenes.scene2d.ui.List.ListStyle)1 ScrollPaneStyle (com.badlogic.gdx.scenes.scene2d.ui.ScrollPane.ScrollPaneStyle)1 SelectBoxStyle (com.badlogic.gdx.scenes.scene2d.ui.SelectBox.SelectBoxStyle)1