/** Loads default VisUI skin for given {@link SkinScale}. */ public static void load (SkinScale scale) { VisUI.scale = scale; load(scale.getSkinFile()); }
/** Returns common I18N bundle. If current bundle is null, a default bundle is set and returned */ public static I18NBundle getCommonBundle () { if (commonBundle == null) commonBundle = getBundle("com/kotcrab/vis/ui/i18n/Common"); return commonBundle; }
/** * 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; }
public VisScrollPane (Actor widget) { super(widget, VisUI.getSkin(), "list"); } }
public static Sizes getSizes () { if (scale == null) return getSkin().get(Sizes.class); else return getSkin().get(scale.getSizesName(), Sizes.class); }
/** Loads default VisUI skin with {@link SkinScale#X1}. */ public static void load () { load(SkinScale.X1); }
/** Unloads VisUI. */ public static void dispose () { dispose(true); }
@Override public final String toString () { return get(); } }
private static I18NBundle getBundle () { return Locales.getDialogsBundle(); }
public PopupMenu (PopupMenuStyle style) { this(VisUI.getSizes(), style); }
private static I18NBundle getBundle () { return Locales.getCommonBundle(); }
public VisSlider (float min, float max, float stepSize, boolean vertical) { super(min, max, stepSize, vertical, VisUI.getSkin()); }
/** Returns I18N bundle used by {@link ColorPicker}, if current bundle is null, a default bundle is set and returned */ public static I18NBundle getColorPickerBundle () { if (colorPickerBundle == null) colorPickerBundle = getBundle("com/kotcrab/vis/ui/i18n/ColorPicker"); return colorPickerBundle; }
public VisLabel () { super("", VisUI.getSkin()); }
/** Returns I18N bundle used by {@link FileChooser}, if current bundle is null, a default bundle is set and returned */ public static I18NBundle getFileChooserBundle () { if (fileChooserBundle == null) fileChooserBundle = getBundle("com/kotcrab/vis/ui/i18n/FileChooser"); return fileChooserBundle; }
public VisLabel (CharSequence text, String fontName, String colorName) { super(text, VisUI.getSkin(), fontName, colorName); }
/** Returns I18N bundle used by {@link ButtonBar}, if current bundle is null, a default bundle is set and returned */ public static I18NBundle getButtonBarBundle () { if (buttonBarBundle == null) buttonBarBundle = getBundle("com/kotcrab/vis/ui/i18n/ButtonBar"); return buttonBarBundle; }
public VisTable () { super(VisUI.getSkin()); }
/** Returns I18N bundle used by {@link TabbedPane}, if current bundle is null, a default bundle is set and returned */ public static I18NBundle getTabbedPaneBundle () { if (tabbedPaneBundle == null) tabbedPaneBundle = getBundle("com/kotcrab/vis/ui/i18n/TabbedPane"); return tabbedPaneBundle; }
/** Returns I18N bundle used by {@link Dialogs}, if current bundle is null, a default bundle is set and returned */ public static I18NBundle getDialogsBundle () { if (dialogsBundle == null) dialogsBundle = getBundle("com/kotcrab/vis/ui/i18n/Dialogs"); return dialogsBundle; }