For example, a layout like this(http://www.cegui.org.uk/wiki/index.php/Introduction_To_Auto_Windows#Test_layout_file):
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<GUILayout>
<Window Type="DefaultGUISheet" Name="root">
<Window Type="WindowsLook/NewFrameWindow" Name="myFrameWindow">
<Property Name="UnifiedPosition" Value="{{0.1,0},{0.1,0}}" />
<Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
<Property Name="UnifiedMinSize" Value="{{0,128},{0,128}}" />
<Property Name="UnifiedSize" Value="{{0.4,0},{0.5,0}}" />
<Property Name="Text" Value="Demo of seperate client area." />
<AutoWindow NameSuffix="__auto_clientarea__" >
<Window Type="WindowsLook/Button" Name="myFrameWindow/Button1">
<Property Name="UnifiedAreaRect" Value="{{0.02,0},{0.01,0},{0.98,0},{0.15,0}}" />
<Property Name="Text" Value="A Button" />
</Window>
<Window Type="WindowsLook/Button" Name="myFrameWindow/Button2">
<Property Name="UnifiedAreaRect" Value="{{0.04,0},{0.6,0},{0.96,0},{0.75,0}}" />
<Property Name="Text" Value="Another Button" />
</Window>
</AutoWindow>
</Window>
</Window>
</GUILayout>
will end up like this:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<GUILayout>
<Window Type="DefaultGUISheet" Name="root">
<Window Type="WindowsLook/NewFrameWindow" Name="myFrameWindow">
<Property Name="UnifiedPosition" Value="{{0.1,0},{0.1,0}}" />
<Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
<Property Name="UnifiedMinSize" Value="{{0,128},{0,128}}" />
<Property Name="UnifiedSize" Value="{{0.4,0},{0.5,0}}" />
<Property Name="Text" Value="Demo of seperate client area." />
</Window>
</Window>
</GUILayout>
Is it even possible to update the CELayoutEditor to correctly handle this case? And if so, would it also be possible to update the CELayoutEditor to allow adding child-windows to AutoWindows directly? Perhaps by adding an option to show a second AutoWindow selection tree (based on the selected window, similar to the normal window selection tree) that would allow you to select an AutoWindow to add child-windows too?