Kotcrab.com

import com.kotcrab.Brain;

VisUI 0.6.1 Released

VisUI 0.6.0 released! This updates adds one new big widget, other small changes and bugfixes. Go here if you still don’t know what VisUI is.

UPDATE: Please use 0.6.1, this release fixes file chooser favorites bug.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[0.6.1] [LibGDX 1.5.4]
-Fixed FileChooser disappearing when removing favourite

[0.6.0] [LibGDX 1.5.4]
-API Change: VisUI.skin is not private, use VisUI.getSkin() instead
-API Addition: DialogUtils.showOptionDialog (Stage stage, String title, String text, OptionDialogType type, OptionDialogListener listener)
-API Addition: FormValidator.fileExists (VisValidableTextField field, VisTextField relativeTo, String errorMsg, boolean errorIfRelativeEmpty)
-API Addition: ColorPicker
-API Addition: ColorUtils
-API Addition: VisImage
-API Addition: constructor VisLabel (CharSequence text, Color textColor)
-Changed close button style name to 'close-window' (was 'close')
-Added 'close' button style that matches other normal buttons
-Fixed focus traversing when TAB pressed in VisTextField, doesn't change focus to invisible fields and doesn't leaves modal windows
-Added built-in validators: IntegerValidator, FloatValidator, GreaterThanValidator, LesserThanValidator (see Validators class)
-Added VERSION string constant in VisUI

ColorPicker

Let’s start with the big one, a color picker!

Now, that is next big widget after file chooser, I think that now you don’t have to use any Swing class if you are creating desktop application. Picker wiki page

I also added ColorUtils, class that allows to convert RGB to HSV color system and vice-versa.

Breaking changes

VisUI.skin is now private, you have to use VisUI.getSkin() instead. Surprisingly, except that no other breaking changes.

Other

You may wonder what is that new FormValidator method, it was to added only to improve UX, see VisEditor Devlog #2 for more details (Ctrl+F -> FormValidator improvements).

VisUI now have VERSION constant. Added some premade validators for VisValidableTextField. And updated to newest LibGDX 1.5.4.

Previous VisUI version fixed focus traversal, this version improves it a lot! Now focus won’t to go field that is not visible or if you are using field in modal window it won’t escacpe it to some other field in background, awesome thing in my opinion.

Added option dialog to DialogUtils, it can display dialogs with buttons like yes, no, cancel.

Comments