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...
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.
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"?>And add this file to the list of resources.
<Property key="Skin" value="MyButtonSkin" group="MySkins"/>
<Property key="Skin" value="MyComboBoxSkin" group="MySkins"/>
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 ?