VisUI 0.5.1 has been released. If you still don’t know, VisUI is a
flat-design skin and UI toolkit made for LibGDX scene2d.ui.
This version adds two main new features and of course introduces other small changes, but let’s start with a change log:
123456789101112131415161718192021222324
[0.5.1]
-Added cancelable input dialog in DialogUtils
[0.5.0]
-API Addition: VisValidableTextField.setValidationEnabled(boolean)
-API Addition: VisValidableTextField.isValidationEnabled()
-API Addition: VisValidableTextField.setProgrammaticChangeEvents(boolean)
-API Addition: constructor VisImageButton (String styleName)
-API Addition: constructor VisCheckBox (String text, boolean checked)
-API Addition: VisWindow.addCloseButton()
-API Addition: VisWindow.closeOnEscape()
-API Addition: VisTextField.focusField()
-API Addition: MenuItem.getShortcut()
-API Addition: DialogUtils.showInputDialog (Stage stage, String title, String fieldTitle, InputDialogListener listener)
-API Addition: DialogUtils.showInputDialog (Stage stage, String title, String fieldTitle, InputValidator validator, InputDialogListener listener)
-API Change: VisUI.setDefaultTitleAlign and VisUI.getDefaultTitleAlign (typo fixed)
-API Change: Removed deprecated TableUtils.setColumnsDefaults(Table)
-Separator style "menu" height changed to 3px (was 4px), that means PopupMenu separator height is now 3px as well
-File chooser now have close button in top right corner
-File chooser now closes when escape key has been pressed
-Fixed bug where VisValidableTextField would loss focus if user type something and field don't have ChangeListener attached
-Fixed focusing next field when TAB key is pressed inside VisTextField
-Added Tooltips
-Moved TableUtils to com.kotcrab.vis.util package (sorry!)
Tooltips
Really nice feature in my option, especially useful for button that only has icon. Tooltips can contain any content and can be
added to any actor, see VisUI wiki for more details on how to use it.
Input dialogs
New methods in DialogUtils class that allows to display input dialogs, DialogUtils is becoming an equivalent to JOptionPane from Swing.
VisWindow changes
Two new methods in VisWindow:
addCloseButton() adds close button (you can see it in input dialog screenshot above),
closeOnEscape() will make your window close when user presses ESC key.
Other changes
TableUtils was moved to util package, sorry for that, it just has to be done.
Worth mentioning is that I fixed moving to next TextField when TAB key has been pressed. It is kinda weird because that was already done in scene2d.ui
but it was only setting keyboard focus for next field and that is not enough to focus next field. So fixing that was just changing one line to call my method focusField().
I think that I will add ColorChooser in next VisUI version, I’m not yet sure how I will do it though :D