/** Unloads VisUI. */ public static void dispose () { dispose(true); }
public VisScrollPane (Actor widget) { super(widget, VisUI.getSkin(), "list"); } }
/** Loads default VisUI skin with {@link SkinScale#X1}. */ public static void load () { load(SkinScale.X1); }
public VisWindow (String title, boolean showWindowBorder) { super(title, VisUI.getSkin(), showWindowBorder ? "default" : "noborder"); getTitleLabel().setAlignment(VisUI.getDefaultTitleAlign()); }
public PopupMenu (PopupMenuStyle style) { this(VisUI.getSizes(), style); }
public VisWindow (String title, WindowStyle style) { super(title, style); getTitleLabel().setAlignment(VisUI.getDefaultTitleAlign()); }
/** * Sets provided skin as default for every VisUI widget. Skin must be compatible with default VisUI skin. This * can be used if you prefer to load skin manually for example by using {@link AssetManager}. */ public static void load (Skin skin) { checkBeforeLoad(); VisUI.skin = skin; }
/** * @param styleName skin style name * @param title chooser window title * @param mode whether this chooser will be used to open or save files */ public FileChooser (String styleName, String title, Mode mode) { super(title); this.mode = mode; style = VisUI.getSkin().get(styleName, FileChooserStyle.class); sizes = VisUI.getSizes(); init(null); }
public VisWindow (String title, String styleName) { super(title, VisUI.getSkin(), styleName); getTitleLabel().setAlignment(VisUI.getDefaultTitleAlign()); }
public ButtonBar (String order) { this(VisUI.getSizes(), order); }
public VisWindow (String title) { this(title, true); getTitleLabel().setAlignment(VisUI.getDefaultTitleAlign()); }
/** Loads skin from provided file. Skin must be compatible with default VisUI skin. */ public static void load (FileHandle visSkinFile) { checkBeforeLoad(); VisUI.skin = new Skin(visSkinFile); }
public VisSlider (float min, float max, float stepSize, boolean vertical) { super(min, max, stepSize, vertical, VisUI.getSkin()); }
/** Loads default VisUI skin for given {@link SkinScale}. */ public static void load (SkinScale scale) { VisUI.scale = scale; load(scale.getSkinFile()); }
/** * @param directory starting chooser directory * @param mode whether this chooser will be used to open or save files */ public FileChooser (FileHandle directory, Mode mode) { super(""); this.mode = mode; getTitleLabel().setText(TITLE_CHOOSE_FILES.get()); style = VisUI.getSkin().get(FileChooserStyle.class); sizes = VisUI.getSizes(); init(directory); }
@Override public void dispose() { Disposables.disposeOf(contextDestroyer); VisUI.dispose(false); }
public TabbedPane (TabbedPaneStyle style) { this(style, VisUI.getSizes()); }
private void initialize () { setModal(true); getTitleLabel().setAlignment(VisUI.getDefaultTitleAlign());
public VisLabel () { super("", VisUI.getSkin()); }