Kotcrab.com

import com.kotcrab.Brain;

VisUI 0.7.1 Released

Finally, over a month after 0.6.0 release, VisUI 0.7.1 was released! (I ate 0.7.0) This version adds many different things. As usual, let’s start with changelog:

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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
[0.7.1] [LibGDX 1.5.5]
-Fixing GWT compatibility

[0.7.0] [LibGDX 1.5.5]
* Renaming:
   Validators.integers renamed to Validators.INTEGERS
   Validators.floats renamed to Validators.FLOAT
   PopupMenu#displayMenu renamed to PopupMenu#dshowMenu
   Skin Change: Separator 'height' renamed to 'thickness'
* Moving classes / reorganizing:
   VisTable moved to com.kotcrab.vis.ui.widget package
   DialogUtils moved to com.kotcrab.vis.ui.util.dialog package
   OptionDialogListener and OptionDialogAdapter moved to com.kotcrab.vis.ui.util.dialog package
   InputDialogListener and InputDialogAdapter moved to com.kotcrab.vis.ui.util.dialog package
   FormValidator, SimpleFormValidator, FormInputValidator moved to com.kotcrab.vis.ui.util.form package
   BasicFormValidator renamed to SimpleFormValidator
   TableUtils.setSpaceDefaults renamed to TableUtils.setSpacingDefaults
* Menu system changes:
   Submenus are now supported
   Removed PopupMenu constructors taking boolean, now auto remove is always enabled. Now when user has clicked MenuItem then PopupMenu will be removed from stage
   MenuBar constructor doesn't take Stage argument anymore
   Added: MenuItem#setSubMenu(PopupMenu subMenu)
   Added: MenuBar#addMenu(Menu menu) MenuBar#removeMenu(Menu menu) MenuBar#insertMenu(int index, Menu menu)
   Added: MenuBar#closeMenu()
   Skin Change: MenuItem widget now uses MenuItemStyle (used TextButtonStyle). MenuItemStyle extends TextButtonStyle. MenuItemStyle adds submenu icon.
* Skin changes:
   Separator style now has 'vertical' property
   Added VisSplitPane handleOver property
* Other API changes:
   API Change: Constructor Separator(boolean useMenuStyle) is now Separator(boolean vertical). Use 'new Separator("menu")' for menu styled separator
   API Change: FileChooserLocale removed, now using LibGDX's I18NBundle, see FileChooserText class
   API Change: VisWindow#getButtonTable deprecated, instead use VisWindow#getTitleTable
   API Change: VisDialog#getButtonTable deprecated, instead use VisDialog#getButtonsTable
   API Change: Removed FileChooser.getFavoritesPrefsName()
* Other API additions:
   Added New FormValidators: integerNumber, floatNumber, valueLesserThan, valueGreaterThan
   Added VisTable#addSeparator (boolean vertical)
   Added constructor VisLabel (CharSequence text, LabelStyle style)
   Added constructor VisLabel (CharSequence text, int alignment)
   Added TableBuilder and its implementations: StandardTableBuilder, CenteredTableBuilder, GridTableBuilder, OneColumnTableBuilder, OneRowTableBuilder
* Other changes:
   VisTree/Tree now have default mouse over drawable
   Added shift selection for FileChooser (key can be changed by FielChooser#setGroupMultiselectKey(...))
   Tooltip is now kept within Stage border
   Focus border is now optional for every widget that was using it
   Font support for Polish, German, Spanish, French, Greek and Russian characters
   FormInputValidator now uses validate(String) instead of validateInput(String) for input validation, calling setResult is no longer required
    (for examples on how to use it see SimpleFormValidator)
   Added ValidatorWrapper that allows standard validator to be used with (Simple)FormValidator#custom(...)
   Added DialogUtils.showConfirmDialog(...)
   Added TabbedPane

Okay, so this version also breaks a lot. If you want to update from old version better make a backup. Most breaking things comes from moving classes to different packages and from renaming things.

TabbedPane

Simply it’s a tabbed pane like you can see in your browser or almost any text editor. Except boring features like adding, removing, inserting tabs you can do: marking tab as dirty so when user will try to close it, pane will automatically display “Do you want to save changes?” dialog. You can make a tab which user won’t be able to close. You can also allow user deselect tab, and make something like this: (ignore the box select part please :D)

TableBuilders

Thanks to MJ who contributed some code, you can now use table builders that allow to create complex tables using one table and without need to deal with colspan, it’s pretty cool.


Source

Font improvements

Font now support characters from Polish, German, Spanish, French, Greek and Russian. In font texture there was space that was unused anyway, so it’s has been put into good use now :D

Menu system changes

The popup menu now supports sub menus!

PopupMenu auto remove function is now always enabled and removes menu when user clicked on menu item, that wasn’t happening before. Some small api changes and change in MenuItem which now uses MenuItemStyle (adds drawable for submenu icon)

Other improvements

VisTree, Tree and VisSplitPane handle now have ‘over’ property, making them nicer to use. Vertical separator is now supported. Tooltip is kept withing stage. In FileChooser you can now do group select by pressing shift key. Simplified adding custom validators to FormValidator

Web demo was updated, check it out: demo

That’s all, pretty big update, sorry for breaking things, but it had to be done if we want to make some progress. Besides we are still in early versions: 0.x.y. Now I just have to update GitHub wiki.

Comments