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;
}
Aggregations