Using custom skin in the layout editor

thierryg

24-04-2014 11:21:57

Hi,

I feel kind of stupid, but I can't seem to find a way to use a custom skin and fonts in the layout editor.
So right now, I work blindly, using the layout editor with the black orange skin, then testing the layout in my game to look at the result, then going back to the layout editor...

Altren

25-04-2014 23:14:03

You need to do next steps:
- add directory/directories with your custom skins/templates/textures to the list of directories in options.
- add all needed xml files (use file name only, path is not needed) to the list of resources in options.
- restart layout editor (not always needed).

Then you will be able to select skin in the list of skins after creating widget with default skin.

Altren

25-04-2014 23:17:58

To get list of widgets with your custom skins in the right panel you should create file, similar to Media\Tools\LayoutEditor\Settings\Widgets.xml, but use only Skin parts, f.e.:
<?xml version="1.0" encoding="UTF-8"?>
<MyGUI type="Widgets">
<Widget name="Button">
<Property key="Skin" value="MyButtonSkin" group="MySkins"/>
</Widget>
<Widget name="ComboBox">
<Property key="Skin" value="MyComboBoxSkin" group="MySkins"/>
</Widget>
</MyGUI>
And add this file to the list of resources.

thierryg

06-05-2014 11:30:04

Thanks a lot Altren for you help !

A last question :
How do we define DEFAULT values in the layout editor ? For example, a default text color, or a default font for a widget ?

T.