Kotcrab.com

import com.kotcrab.Brain;

VisEditor - Devlog #2

Hi again!

I’ve got some updates for you about VisEditor - my game level editor. You can read previous devlog here: Devlog #1

So let’s see what I’ve added:

Object Properties

It is basically a window that displays current selected objects properties. I’ve added two nice features to it. First is that in any field you can press Ctrl+Plus or Minus to increment or decrement value.

And second, if you select multiple objects then values that are same for every selected object will be shown normally, as number. Values that are various will be displayed as ‘?’. In any field you can enter new value and it will be set for every selected object.

This can be used for example to quickly align objects.

Z Index changing

Simple but important thing, changing Z index of added objects.

VisUI 0.5.1 Released

VisUI 0.5.1 has been released. If you still don’t know, VisUI is a flat-design skin and UI toolkit made for LibGDX scene2d.ui. This version adds two main new features and of course introduces other small changes, but let’s start with a change log:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[0.5.1]
-Added cancelable input dialog in DialogUtils

[0.5.0]
-API Addition: VisValidableTextField.setValidationEnabled(boolean)
-API Addition: VisValidableTextField.isValidationEnabled()
-API Addition: VisValidableTextField.setProgrammaticChangeEvents(boolean)
-API Addition: constructor VisImageButton (String styleName)
-API Addition: constructor VisCheckBox (String text, boolean checked)
-API Addition: VisWindow.addCloseButton()
-API Addition: VisWindow.closeOnEscape()
-API Addition: VisTextField.focusField()
-API Addition: MenuItem.getShortcut()
-API Addition: DialogUtils.showInputDialog (Stage stage, String title, String fieldTitle, InputDialogListener listener)
-API Addition: DialogUtils.showInputDialog (Stage stage, String title, String fieldTitle, InputValidator validator, InputDialogListener listener)
-API Change: VisUI.setDefaultTitleAlign and VisUI.getDefaultTitleAlign (typo fixed)
-API Change: Removed deprecated TableUtils.setColumnsDefaults(Table)
-Separator style "menu" height changed to 3px (was 4px), that means PopupMenu separator height is now 3px as well
-File chooser now have close button in top right corner
-File chooser now closes when escape key has been pressed
-Fixed bug where VisValidableTextField would loss focus if user type something and field don't have ChangeListener attached
-Fixed focusing next field when TAB key is pressed inside VisTextField
-Added Tooltips
-Moved TableUtils to com.kotcrab.vis.util package (sorry!)

Tooltips

VisEditor - Devlog #1

Welcome in first VisEditor progress update. Here I will write about recent stuff I did in my LibGDX game editor. Okay, maybe not ‘game’ editor yet. For now I want to make scene editor.

So, let’s start with a little of history: VisSceneEditor

VisSceneEditor was a prototype of VisEditor. It allowed moving, resizing and rotating objects on scene. It was running on top of LibGDX game, so editor view was actually in real time. Work flow with it, was like this: open game, enter edit mode, place objects where you want them to be, save scene. Next time you will open your game, saved scene will be load automatically.

That editor worked pretty well, until you wanted to do something more complex. The problem was that programmer still had to add objects to scene form code level, that wasn’t very convenient. Also, I wanted to build editor that will have more features, it would be hard to do advanced editor running on top of game, so now VisEditor is a standalone application, here it is:

Kinda big change, don’t you think? :D

VisUI 0.4.0 Released

VisUI 0.3.1 and 0.4.0 is now available. 0.3.1 fixes few bugs and introduces new widget called CollapsbileWidget, here is little showcase:

0.4.0 does not add anything new, but from this version VisUI is using com.kotcrab.vis groupId (previous one was pl.kotcrab.vis) for Maven and Gradle dependencies. Bellow you can find informations what you have to do if you are updating from older version.

VisUI 0.3.0 Released

VisUI 0.3.0 has been released! Here is list of all changes for this version:

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
[0.3.0]
-LibGDX dependency version changed to 1.5.0
-Font size changed to 15
-Separator width changed to 4px, split pane bar width/height changed to 4px
-Removed markup font
-API Change: Removed deprecated resize() from MenuBar
-API Change: New MenuItem constructors which takes Image instead of Drawable, removed MenuItem (String text, Drawable image, String styleName)
-API Change: FormValidator.fileExist(...) -> FormValidator.fileExists(...)
-API Change: VisTable.addSeparator() returns Cell<Separator> instead of void
-API Addition: FileChooser(FileChooserLocale, Mode)
-API Addition: MenuItem (String, ChangeListener)
-API Addition: VisUI.setDefualtTitleAlign(int align)
-API Addition: VisUI.getDefualtTitleAlign()
-API Addition: FormValidator.fileExist(VisValidableTextField field, File relavtiveTo, String errorMsg)
-API Addition: FormValidator can also take FileHandle when using file(Not)Exist relativeTo method
-API Addition: Added VisTextField.isFocusBorderEnabled() and VisTextField.setFocusBorderEnabled(boolean)
-API Addition: Added FormValidator.fileNotExist(...) methods
-API Addition: Added FormValidator.custom (VisValidableTextField field, FormInputValidator customValidator)
-API Addition: VisSplitPane.setWidgets (Actor firstWidget, Actor secondWidget)
-Fixed bug when FormValidator doesn't updated all fields borders after changes in other field
-FileChooser deselects all files when reopened
-FileChooser: When clicked on drive shortcut file scroll pane table will get focus automaticly
-FileChooser: When sorting file list chooser now ignores uppercase/lowercase
-Fixed problem where Separator didn't set color before rendering
-Fixed look of disabled MenuItem, if MenuItem has an image and it is disabled, image color will be set to Color.GRAY.
This can be disabled by calling item.setGenerateDisabledImage(false)

This version is for LibGDX 1.5.0, main changes of this release were: making font smaller, adding method to set default title alignment, new FormValidators methods and few small file chooser changes. Use 0.3.1-SNAPSHOT if you are using LibGDX 1.5.2.

Hello, World!

Hello and welcome to my blog, here you will find my thoughts, devlogs, tutorials, and everything else that I would like to write. It you want to know more about me check out About and Projects pages. Probably first posts will be about VisUI 0.3.0 release and VisEditor devlog, but until then see you soon!