Skin Composer - Create skins for scene2d.ui

Any community contributions to libgdx go here! Some may get included in the core API when permission is granted.

Re: Skin Composer - Create skins for scene2d.ui

Postby raeleus » Thu Sep 07, 2017 7:25 pm

I would like to add that the title positioning is automatically calculated by the top padding specified for the Window background. You can set alignment and such with window.getTitleLabel() and window.getTitleTable(). I still find this too restrictive so I often omit a title altogether and add my own labels to the window's contents.
Play Forward Gunner!
Create skins visually with Skin Composer.
raeleus
 
Posts: 407
Joined: Wed Aug 07, 2013 10:57 pm

Re: Skin Composer - Create skins for scene2d.ui

Postby MrStahlfelge » Fri Sep 15, 2017 1:34 pm

Two suggestions or questions I have so far.
  • Drawable reload - if I change a drawable source file, I cannot reload it from the source in Skin Composer. I must delete the drawable and re-add it with loosing all usages of it. Not-so-nice workaround: Delete it, re-add it so that the texture pack is refreshed, close the skin file without saving so that the usage deletions are not saved, reload the skin.
  • Texture Pack has empty areas: This may be a Texture Packer issue and not Skin Composer's fault, but I wanted to state it here. If I use many drawables with different sizes, the Texture Pack has many unused areas but will nevertheless use many pages. How can I avoid that, perhaps by reordering the drawables?
MrStahlfelge
 
Posts: 93
Joined: Thu Jun 15, 2017 6:40 am

Re: Skin Composer - Create skins for scene2d.ui

Postby raeleus » Fri Sep 15, 2017 2:14 pm

1. When you make a change, go to to Project >> Settings >> Repack Texture Atlas. You will see the changes you've made within the editor. If you don't care to see the changes, choosing Export will always pull the latest version of the file.

2. See the documentation on Texture Packer. To make changes to the Texture Packer settings, go to Project >> Settings >> Open texture packer settings file. From Spine to Texture Packer GUI, we all use the same Texture Packer class. You won't find a better software to pack your images. Post your resources if you have a concern.
Play Forward Gunner!
Create skins visually with Skin Composer.
raeleus
 
Posts: 407
Joined: Wed Aug 07, 2013 10:57 pm

Re: Skin Composer - Create skins for scene2d.ui

Postby MrStahlfelge » Fri Sep 15, 2017 2:52 pm

Thank you! I did not understand that repack texture atlas is for refreshing it from the source files. Thanks for the help and again, thanks for the great utility!
MrStahlfelge
 
Posts: 93
Joined: Thu Jun 15, 2017 6:40 am

Re: Skin Composer - Create skins for scene2d.ui

Postby raeleus » Fri Sep 15, 2017 2:56 pm

No problem! I'm glad to be of assistance.
Play Forward Gunner!
Create skins visually with Skin Composer.
raeleus
 
Posts: 407
Joined: Wed Aug 07, 2013 10:57 pm

Re: Skin Composer - Create skins for scene2d.ui

Postby raeleus » Mon Oct 30, 2017 9:47 am

Version 14 Available
* Added "Raw Text" type for custom class properties to allow manual typing of arrays and objects in JSON format. Ex. ["banana", "strawberry", "grape"]
* Allow import of objects and arrays in custom classes as "Raw Text" types.
* Added a splash screen to show while java is loading.
* Added support for spanish characters: ñ, ¿, ¡, á, é, í, ó, ú, ü.
* All JSON exports are now encoded in UTF-8.
Play Forward Gunner!
Create skins visually with Skin Composer.
raeleus
 
Posts: 407
Joined: Wed Aug 07, 2013 10:57 pm

Re: Skin Composer - Create skins for scene2d.ui

Postby raeleus » Wed Nov 22, 2017 3:40 pm

Version 15 Available
* Added Export Format option to allow the user to select between Minimal, JavaScript, and JSON output types when exporting a skin JSON. See Project >> Settings.
Play Forward Gunner!
Create skins visually with Skin Composer.
raeleus
 
Posts: 407
Joined: Wed Aug 07, 2013 10:57 pm

Re: Skin Composer - Create skins for scene2d.ui

Postby raeleus » Tue Feb 20, 2018 3:07 am

Version 16 can be downloaded here.

* Added Ctrl+E shortcut for export.
* Added F5 shortcut for refreshing the texture atlas.
* Moved refresh texture atlas option to project menu.
* Added TiledDrawable functionality. See Project >> Drawables.
Play Forward Gunner!
Create skins visually with Skin Composer.
raeleus
 
Posts: 407
Joined: Wed Aug 07, 2013 10:57 pm

Re: Skin Composer - Create skins for scene2d.ui

Postby raeleus » Tue Mar 13, 2018 7:28 am

Version 17 is now available.

* Added a hexadecimal field to the color picker.
* Added custom drawable button to drawables dialog. Use this to refer to your classes that inherit from Drawable specified in the new custom class dialog.
* Fixed alpha slider being initialized with the incorrect color in color picker.
* Fixed keyboard shortcuts being incorrectly configured on alternative keyboard layouts.
* Fixed crash bug on Mac.
* Fixed spinner not accepting numbers starting with a decimal point.
* Fixed removing a custom property does not remove it from new custom styles.
* Reordered JSON export so that custom classes can be implemented by styles.
Play Forward Gunner!
Create skins visually with Skin Composer.
raeleus
 
Posts: 407
Joined: Wed Aug 07, 2013 10:57 pm

Re: Skin Composer - Create skins for scene2d.ui

Postby raeleus » Sat Mar 31, 2018 1:56 am

Version 18 available for download.

Summary of latest changes here: https://youtu.be/ImcS9jD-sXw

* Added FreeType font option. Users can generate their own fonts or build their fonts in the editor.
* Added option to export custom classes before or after the standard UI classes are defined.
Play Forward Gunner!
Create skins visually with Skin Composer.
raeleus
 
Posts: 407
Joined: Wed Aug 07, 2013 10:57 pm

PreviousNext

Return to Libgdx Contributions

Who is online

Users browsing this forum: No registered users and 1 guest