[0.7.1] [LibGDX 1.5.5]
-Fixing GWT compatibility
[0.7.0] [LibGDX 1.5.5]
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)
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(...)
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.
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)
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.
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)
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