Kotcrab.com

import com.kotcrab.Brain;

VisUI 0.9.3 and 0.9.4 Released

PSA: Released 0.9.4 which fixes GWT support.

VisUI 0.9.3 was released. We are getting pretty close to 1.0.0! This time let’s start with changes description and you will see change log later. Biggest change in this release are around ColorPicker. It was rewritten using shaders, previously it was using pixmaps which was fine for desktop but quite slow for GWT and low end Android devices. Shaders gave a huge performance boost and decreased picker creation time. ColorPicker is now an embeddable widget, see BasicColorPicker and ExtendedColorPicker, they extend VisTable so you can add them pretty much anywhere. It also got slight UI redesign.

Next up: DragPane which was contributed by MJ. It’s a wrapper around WidgetGroup that’s allows to drag it’s children and change their order. TabbedPane was modified to use it, so now you can change order of TabbedPane tabs! Also TabbedPane tabs can be disabled.

Fixed NumberSelector bugs and fixed weird issues with GridGroup and allowed to set width and height of it’s children independently. This brought small api change because GridGroup#getItemSize() was removed, you can use GridGroup#getItemWidth() or GridGroup#getItemWidth().

That’s all from biggest changes but I’ve got one more announcement: LML (templates for scene2d.ui with HTML-like syntax) now supports VisUI. Checkout gdx-lml-vis. We’ve got a very nice web demo for it: lml-vis web demo

Full change log for 0.9.3:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
-API Change: FocusManager.getFocus(Stage) renamed to resetFocus
-API Change: FocusManager.getFocus(Stage, Focusable) renamed to switchFocus
-API Change: GridGroup#getItemSize() removed, use getItemWidth or getItemHeight
-API Change: Moved FileChooser's FavouritesIO to 'com.kotcrab.vis.ui.widget.file.internal' package (isn't VisUI public API)
-API Addition: FocusManager.resetFocus(Stage, Actor)
-API Addition: FileChooser#getCurrentDirectory()
-API Addition: GridGroup#setItemWidth(int), GridGroup#setItemWidth(int), GridGroup#getItemWidth(), GridGroup#getItemWidth()
-API Addition: GridGroup#getItemSize(int width, int height)
-API Addition: TabbedPane#disableTab(Tab tab, boolean disable), TabbedPane#isTabDisabled(Tab)
-API Addition: IntDigitsOnlyFilter
-API Addition: DragPane
-API Addition: VisValue, VisWidgetValue - standard Table Values can be used as lambadas if you are using Java 1.8
-APi Addition: PrefHeightIfVisibleValue
-ColorPicker:
 -API Change: added ColorPickerListener#reset (Color previousColor, Color newColor)
 -Rewritten using shaders, huge performance boost, now usable on gwt and low end devices
 -Internal ColorPicker classes moved to `com.kotcrab.vis.ui.widget.color.internal` package (remember that those classes aren't considered as public api)
 -ColorPicker can now be used as embeddable widget, see ExtendedColorPicker and BasicColorPicker
 -Added ColorPickerWidgetStyle used by ExtendedColorPicker and BasicColorPicker
  -Changed ColorPickerStyle, now uses ColorPickerWidgetStyle as composition
 -I18N: Removed entries: "old", "new" (no longer needed)
 -Style: removed fields: alphaBar10px and alphaBar25px, white (no longer needed)
-NumberSelector:
 -API Addition: setMaxLength(int), getMaxLength()
 -Fixed entering negative integer values
 -Fixed NumberSelector text field focus border when using SkinScale.X2
 -When selector loses focus and entered value is bigger than max it will be set to max value, if it's smaller than min it will be set to min value
  -Previous behavior was to restore last valid value
-Trying to use PopupMenu.add(Actor) with MenuItem will throw an exception (MenuItems must be added using addItem method)
-Fixed GridGroup too high when total items width in single row was equals to group width
-GridGroup now supports setting item width and height separately
-TabbedPane tabs order can be changed by mouse dragging
-Skin changes:
 -Removed drawables: alpha-bar-10px, alpha-bar-25px
-VisUI is now supported by LML (templates for scene2d.ui with HTML-like syntax), https://github.com/czyzby/gdx-lml-vis

Comments