PSA: Please use hot fix version 1.1.1 as it fixes NullPointerException in FileChooser.
VisUI 1.1.0 was released.
Version: 1.1.0 (LibGDX 1.9.3)
- API Moved:
JNAFileDeleterwas moved to vis-ui-contrib project - API Deprecated:
FileChooser.setFavoritesPrefsName()replaced byFileChooser.setDefaultPrefsName() - API Changed: GridGroup is now taking float for item size instead of int.
- Warning: There were two constructors
GridGroup (float spacing)andGridGroup (int itemSize). Constructor taking float spacing was removed. Constructor taking int item size now takes float.
- Warning: There were two constructors
- API Changed: Refactored
FileChoose.FileIconProvider, new methods added.#provideIcontakesFileChooser.FileItem, wasFileHandle - API Changed: Refactored
VisCheckBox- Style was refactored to separate checkbox background and tick drawable (see below for full skin drawables changes)
VisCheckBoxStylenow extendsTextButtonStyle, wasCheckBox(fields was renamed to properly communicate their functions)getImage()removed, usegetBackgroundImage()orgetTickImage()getImageCell()removed, usegetImageStackCell()- protected
getCheckboxImage()removed, overridegetCheckboxBgImage()orgetCheckboxTickImage() getStyle()returnsVisCheckBoxStyle, wasCheckBoxStyle
- Added: default styles for
ImageButtonandImageTextButton. Note: this is only applies to standard scene2d widgets. VisUI widgets equivalents (VisImageButton,VisImageTextButton) already had them. - Added:
SimpleFormValidator#validate - Added:
ToastManager,Toast,ToastTable - Added: VisTextField read-only mode (
VisTextField#setReadOnly(boolean)) - Added:
TabbedPane#getUIOrderedTabs() - Added:
FileChooser#setFavoriteFolderButtonVisible(true)- FileChooser now can display ‘add folder to favorites’ button in the toolbar - Added:
FileChooser#setPrefsName() - Added:
FileTypeFilter,FileChooser#setFileTypeFilter(...) - Added:
MenuItem#getSubMenuIconCell()andMenuItem#getShortcutCell() - Added:
VisTextField#setEnterKeyFocusTraversal(boolean) - Added:
VisTextField#setCursorPercentHeight - Added:
PopupMenuListener - Added:
PopupMenu#showMenu (Stage stage, Actor actor) - Added:
ConstantIfVisibleValue - Added:
Sizes#borderSize - Added:
Sizes#fileChooserViewModeBigIconsSize,fileChooserViewModeMediumIconsSize,fileChooserViewModeSmallIconsSize,fileChooserViewModeListWidthSize - Changed: #169 -
TabbedPane#getTable()returnsTabbedPaneTable(holds reference toTabbedPaneand allow to easily get its cells for customization) - Changed:
FileChoosernow tries to maintain selection while rebuilding file list - Changed:
FileChooserwill now select new folder after creating it - Changed:
FileChooserwill be automatically refreshed when added toStage - Changed:
FileChooserwhen typing file names manually suggestion will be showed - Changed:
TabbedPane’s Tab now can’t be dragged using it’s close button - Changed: Synced
VisTextFieldansVisTextAreawith equivalents of those classes libgdx - Changed:
PopupMenunow support menu navigation using arrows keys - Changed:
PopupMenunow optionally takesSizesinstance (added constructorPopupMenu (Sizes sizes, PopupMenuStyle style)) - Removed deprecated API:
NumberSelector- replaced bySpinner - Removed deprecated API:
Sizes#numberSelectorButtonSize,numberSelectorButtonsWidth,numberSelectorFieldSize,numberSelectorFieldRightPadding - Fixed:
Sizes.buttonBarSpacingwas ignored byButtonBar- Added: constructors
ButtonBar(Sizes sizes, String order)andButtonBar(Sizes sizes)
- Added: constructors
- Fixed:
TabbedPanelayout when no separator image was used. Fixed misc issue with close button style on touch down. - Fixed:
FileChooserNPE when error occurred during directory deleting - Fixed:
FileChoosernon empty directories are now deleted correctly when using defaultFileChooserdeleter - Fixed:
FileChoosercrash when user manually entered path to file instead of directory - Fixed:
FocusManagercallingfocusLost()when the widget that was already focused tried to gain focus again - Fixed:
VisSplitPanewas not implementinghit(...)which could result in widget that was underneath split pane’s handle get touch events - Fixed: Now it’s not possible to call
VisWindow#fadeOutmultiple times - Skin changes:
- Changed:
FileChooserStyle: added drawable fields:iconStar,iconStarOutline,iconRefresh,iconListSettings,expandDropdown - Added: drawable
window-border-bg.9,icon-star,icon-star-outline,icon-refresh,icon-list-settings - Added: style
BaseToastStyle - Added: VisTextField
labelstyle - if combined with read-only mode allows to create selectable labels - Updated:
cursordrawable (cursor.9.png) - Removed:
check-down-on,check-down,check-on-disabled,check-over-off,check-over-on,radio-down-on,radio-down,radio-on-disabled,radio-over-off,radio-over-on - Added:
vis-check,vis-check-over,vis-check-down,vis-check-tick,vis-check-tick-disabled,vis-radio,vis-radio-over,vis-radio-down,vis-radio-tick,vis-radio-tick-disabled
- Changed:
- I18N Changes:
- FileChooser: added keys
contextMenuRefresh,fileType,allFiles,changeViewMode,viewModeList,viewModeDetails,viewModeBigIcons,viewModeMediumIcons,viewModeSmallIcons
- FileChooser: added keys
- Misc: Added Gradle tasks to package VisUI skin textures and compile USL into JSON (
gradlew :ui:compileSkin)