TimLu

Clayworks scene

Jun 23rd, 2021
790
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <cws  name="rootnode">
  2.     <object  name="root">
  3.         <object name="System" object_src="../xml/system.xml" />
  4.         <component name="cmpInputMessageDispatcher "/>
  5.    
  6.         <component name="cmpStyle" colour="#000000FF"/>
  7.         <object  name="ClayworksApp">
  8.  
  9.             <component  name="cmpClayworksApp" SceneNode="3Dscene" UIRoot="Editor"/>
  10.             <folder name="Layer Properties">
  11.                 <folder name="Object Layers">
  12.                     <component name="CmpLayerProperties" LayerName="Layer1" Index="0" Colour="1.0,0.5,0.5,1" Type="ELT_OBJECT_LAYER" />
  13.                     <component name="CmpLayerProperties" LayerName="Layer2" Index="1" Colour="0.5,0.5,1.0,1" Type="ELT_OBJECT_LAYER" />
  14.                     <component name="CmpLayerProperties" LayerName="Layer3" Index="2" Colour="0.5,1.0,0.5,1" Type="ELT_OBJECT_LAYER" />
  15.                     <component name="CmpLayerProperties" LayerName="Layer4" Index="3" Colour="0.5,0.5,1.0,1" Type="ELT_OBJECT_LAYER" />
  16.                     <component name="CmpLayerProperties" LayerName="Layer5" Index="4" Colour="1.0,0.5,1.0,1" Type="ELT_OBJECT_LAYER" />
  17.                     <component name="CmpLayerProperties" LayerName="Layer6" Index="5" Colour="0.5,0.5,0.5,1" Type="ELT_OBJECT_LAYER" />
  18.                     <component name="CmpLayerProperties" LayerName="Layer7" Index="6" Colour="0.5,1.0,1.0,1" Type="ELT_OBJECT_LAYER" />
  19.                 </folder>
  20.                 <folder name="Sub-Component Layers">
  21.                     <component name="CmpLayerProperties" LayerName="Bounds"          Index="0" Colour="1.0,0.5,0.5,1" Type="SUB_COMPONENT_LAYER" />
  22.                     <component name="CmpLayerProperties" LayerName="Widgets"         Index="1" Colour="0.5,0.5,1.0,1" Type="SUB_COMPONENT_LAYER" />
  23.                     <component name="CmpLayerProperties" LayerName="Diagnostics"     Index="2" Colour="0.5,1.0,0.5,1" Type="SUB_COMPONENT_LAYER" />
  24.                     <component name="CmpLayerProperties" LayerName="Statistics"      Index="3" Colour="0.5,0.5,1.0,1" Type="SUB_COMPONENT_LAYER" />
  25.                     <component name="CmpLayerProperties" LayerName="Surface Normals" Index="4"  Colour="1.0,0.5,1.0,1" Type="SUB_COMPONENT_LAYER" />
  26.                     <component name="CmpLayerProperties" LayerName="Vertex Normals"  Index="5"  Colour="0.5,0.5,0.5,1" Type="SUB_COMPONENT_LAYER" />
  27.                     <component name="CmpLayerProperties" LayerName="Tangents"        Index="6" Colour="0.5,1.0,1.0,1" Type="SUB_COMPONENT_LAYER" />
  28.                 </folder>
  29.             </folder>
  30.             <object name="BrushStrokeManager">
  31.                 <component  name="CmpRenderBuffer" vertexBufferCapacity="164" indexBufferCapacity="164 " Persistent="false" />
  32.                 <component name="cmpBrushStrokeManager" />
  33.                 <component name="cmpTexture" size="1024,1024" PixelFormat="PXF_RGBA8888" />
  34.                 <component name="cmpMaterial" src="$(SHADER_PATH)/CSingleColourVertex.vert&$(SHADER_PATH)/CSingleTextureMaterial.frag"
  35.                 material_diffuse="1,1,1,1"
  36.                 CullMode="NOTHING"
  37.                 zFunc="Always"
  38.                 zWrite="false"
  39.                 DiffuseTextureSampler="BrushStrokeManager"
  40.                 DiffuseTextureSampler_URepeat="ETGL_REPEAT"
  41.                 DiffuseTextureSampler_VRepeat="ETGL_REPEAT"
  42.                 DiffuseTextureSampler_MinFilter="ETGL_LINEAR"
  43.                 DiffuseTextureSampler_MaxFilter="ETGL_MAG_LINEAR"/>
  44.                 <component name="cmpSprite" UnitType="EUT_FROM_CONTENT"/>
  45.             </object>
  46.             <component name="CCmpDebugHelper"
  47.                 PropertyValue="modeControls::cmpSelectGroup.SetSelectedWithSource"
  48.                 InstanceName="PerspectiveView2"
  49.                 TemplateName="ComponentPropertyEditor"
  50.             />         
  51.             <component name="cmpObjectSelection" />
  52.             <component name="cmpEngineSettings" ScreenSizePixelNudge="0.0,0.0" ShadowQuality="EQLMH_HIGH" LightingQuality="EQLMH_LOW" />           
  53.             <object name="Import/Export settings">
  54.                 <component name="cmpAnthraciteSceneFileSettings" IgnoreMask="0x80000"/> <!---->
  55.                 <component name="cmpFBXSettings" />
  56.                 <component name="cmpGLTFSettings" />               
  57.             </object>
  58.             <object name="Undo History">
  59.                 <component name="cmpUndoManager" />
  60.             </object>
  61.             <folder name="EnumToIcons">
  62.                 <!-- so what these do is populate a global map that connects enums with pretty little icons-->
  63.                 <!-- There are various ways to populate these, including the relation operator ('=>') to map enum values to sprite indices, or by using a direct list of indices (10,20,25 being the equivelent to doing 0=>10, 1=>20, 3=25) -->
  64.                 <!-- Any CCmpListView with a CCmpEnumListItemHandler will know how to use these and you'll get nice icons where the mapping for those exists -->
  65.  
  66.                 <component name="cmpEnumToSpriteMap" enumtype="EElementType" indices="64,65,66,67,68,69,70" sprites="iconSpritesColour"/>
  67.                 <component name="cmpEnumToSpriteMap" enumtype="EBoolMode" indices="EBM_OR => 52, EBM_XOR => 53, EBM_SET => 54, EBM_AND => 56, EBM_NOT = 57" sprites="iconSpritesColour" />
  68.  
  69.                 <component name="cmpEnumToSpriteMap" enumtype="EObjectSurfaceOrientationMode" indices="
  70.                     EOSOM_DEFAULT => 91,
  71.                     EOSOM_ORIENTATE_TO_SURFACE => 92
  72.                     " sprites="iconSpritesColour" />
  73.  
  74.                 <component name="cmpEnumToSpriteMap" enumtype="EObjectHeightMode" indices="
  75.                     EOHM_PROPORTIONAL => 70,
  76.                     EOHM_USER_SET => 69
  77.                     " sprites="iconSpritesColour" />
  78.                
  79.  
  80.                 <component name="cmpEnumToSpriteMap" enumtype="EObjectSurfacePlacementMode" indices="
  81.                     EOSPM_CENTRE_ON_SURFACE => 58,
  82.                     EOSPM_OBJECT_ON_SURFACE => 59,
  83.                     EOSPM_BASELINE_ON_SURFACE => 60
  84.                     " sprites="iconSpritesColour" />               
  85.  
  86.                 <component name="cmpEnumToSpriteMap" enumtype="EObjectDrawPivot" indices="
  87.                     EODM_CORNER_STRETCH => 62,
  88.                     EODM_CENTRE_STRETCH => 61
  89.                     " sprites="iconSpritesColour" />
  90.                
  91.                 <component name="cmpEnumToSpriteMap" enumtype="EComponentType" indices="
  92.                     CMPTYPE_CUBEGENERATOR               => 5,
  93.                     CMPTYPE_SPHEREGENERATOR             => 6,                                  
  94.                     CMPTYPE_CYLINDERGENERATOR           => 9,
  95.                     CMPTYPE_SUPERELLIPSEGENERATOR       => 14,
  96.                     CMPTYPE_TORUSGENERATOR              => 8,
  97.                     CMPTYPE_POLYHEDRONGENERATOR         => 15,
  98.                     CMPTYPE_GRIDGENERATOR               => 28,
  99.                     CMPTYPE_POLYGONGENERATOR            => 10,
  100.                     CMPTYPE_REGULARPOLYGONGENERATOR     => 12,
  101.                     CMPTYPE_POLYSPLINEGENERATOR         => 13,
  102.                     CMPTYPE_PARTICLESYSTEM              => 27,
  103.                     CMPTYPE_MESHINSTANCE                => 26,
  104.                     CMPTYPE_MESHMODAPPLYCOLOUR          => 29,
  105.                     CMPTYPE_MESHMODEXTRUDE              => 30,
  106.                     CMPTYPE_MESHMODPOLYGONEXTRUDE       => 31,
  107.                     CMPTYPE_MESHMODSUBDIVIDE            => 32,
  108.                     CMPTYPE_MESHMODSMOOTHSUBDIVIDE      => 33,
  109.                     CMPTYPE_MESHMODBEVEL                => 34,
  110.                     CMPTYPE_MESHMODLOOPCUT              => 35,
  111.                     CMPTYPE_MESHMODAPPLYSMOOTHGROUP     => 36,
  112.                     CMPTYPE_MESHMODALIGNVERTICES        => 96,
  113.                     CMPTYPE_PHYSJOINTHINGE              => 112,
  114.                     CMPTYPE_PHYSJOINTBALL               => 113,
  115.                     CMPTYPE_PHYSJOINTSLIDER             => 114,
  116.                     CMPTYPE_PHYSJOINTCONETWIST          => 115,
  117.                     CMPTYPE_PHYSJOINTPOINT2POINT        => 116,
  118.                     CMPTYPE_POINTLIGHT                  => 117,
  119.                     CMPTYPE_DIRECTIONALLIGHT            => 118,
  120.                     CMPTYPE_AREALIGHT                   => 119,
  121.                     CMPTYPE_SPOTLIGHT                   => 120,                
  122.                     CMPTYPE_STRIPLIGHT                  => 121                 
  123.                     " sprites="iconSpritesColour"/>
  124.  
  125.  
  126.             </folder>
  127.            
  128.         </object>
  129.  
  130.    
  131.         <component  name="cmpFolder" />
  132.  
  133.         <object name="objectTemplates">
  134.             <object name="test" />
  135.         </object>                  
  136.        
  137.         <folder name="editorTemplates">
  138.             <template name="topTabContents">
  139.                 <component name="cmpGlyphRenderer" Colour="1,1,1,1" Glyph="button_up_data "/>
  140.                 <component name="cmpUIBase" width="100%" height="100%" padding="3,3,1,1"/>             
  141.             </template>
  142.             <template name="SubModeUI">
  143.                 <component name="cmpGlyphRenderer" Colour="1,1,1,1" Glyph="button_up_data "/>
  144.                 <component name="cmpUIBase" width="100%" height="100%" padding="4,2,2,4"/>
  145.             </template>
  146.            
  147.             <template name="ResizeObjectSubmodeUI">
  148.                 <component name="cmpAppModeCreateAndResizeObject" />
  149.  
  150.                 <component name="cmpGlyphRenderer" Colour="1,1,1,1" Glyph="button_up_data "/>              
  151.                 <component name="cmpUIBase" width="100%" height="100%" padding="4,2,2,4"/>
  152.                 <HorizontalGroup width="100%" height="100%">
  153.                 <VerticalGroup width="125pt" height="100%" padding="4,2,2,4">
  154.                     <label text="Height mode:"  NoClickResponse="true" width="1c" height="1c" valign="top" margin="0,0,0,4"/>                              
  155.                     <EnumPropertyEditor name="HeightModeList" List::CmpEnumToIListAdapter.Type="EObjectHeightMode" List::CmpListView.OnListSelection="::cmpAppModeCreateAndResizeObject.OnHeightModeSelectionChanged" itemMargin="2, 2, 2, 2"/>
  156.                 </VerticalGroup>       
  157.                 <VerticalGroup width="90pt" height="100%" padding="4,2,2,4" >
  158.                     <label text="Draw pivot:"  NoClickResponse="true" width="1c" height="1c" valign="top" margin="0,0,0,4" />
  159.                     <EnumPropertyEditor name="DrawPivotList"  DefaultSelection="1" List::CmpEnumToIListAdapter.Type="EObjectDrawPivot" List::CmpListView.OnListSelection="::cmpAppModeCreateAndResizeObject.OnDrawPivotSelectionChanged" itemMargin="2, 2, 2, 2"/>
  160.                 </VerticalGroup>
  161.                 <VerticalGroup width="120pt" height="100%" padding="4,2,2,4" >
  162.                     <label text="Mesh Bundle:"  NoClickResponse="true" width="1c" height="1c" valign="top" margin="0,0,0,4" />
  163.                     <ListDropDownWithIcon name="MeshBundleListView"  DefaultSelection="0" List.List="MeshModifierBundleList" List::CmpListView.OnListSelection="::cmpAppModeCreateAndResizeObject.OnMeshModifierBundleSelectionChanged" itemMargin="2, 2, 2, 2"/>
  164.                 </VerticalGroup>
  165.                 <VerticalGroup width="150pt" height="100%" padding="4,2,2,4" >
  166.                     <label text="Instance Bundle:"  NoClickResponse="true" width="1c" height="1c" valign="top" margin="0,0,0,4" />
  167.                     <ListDropDownWithIcon name="InstanceBundleListView"  DefaultSelection="0" List.List="InstanceBundleList" List::CmpListView.OnListSelection="::cmpAppModeCreateAndResizeObject.OnInstanceComponentBundleSelectionChanged" itemMargin="2, 2, 2, 2"/>
  168.                 </VerticalGroup>
  169.                 <!--<VerticalGroup width="120pt" height="100%" padding="4,2,2,4" >
  170.                     <label text="Just testing this 'lil button:"  NoClickResponse="true" width="1c" height="1c" valign="top" margin="0,0,0,4" />
  171.                     <RotateButton Glyph="WidgetGlyphs.small_right_arrow" HAlign="Left"  VAlign="CENTRE_Y"/>
  172.  
  173.                 </VerticalGroup>-->
  174.             </HorizontalGroup>
  175.             </template>
  176.  
  177.             <template name="modelabel">
  178.         <!--<component name="cmpGlyphRenderer" Glyph="paper_round" Colour="1,1,1,1"/>-->
  179.  
  180.                 <component name="cmpLabel" Width="50%" HAlign="EPF_LEFT" VAlign="EPF_CENTRE_Y" margin="0,0,0,3"/>
  181.             </template>
  182.  
  183.         </folder>
  184.  
  185.         <template  name="jcamera">
  186.             <component  name="cmpTransform3d" />
  187.             <component  name="cmpCamera" />        
  188.             <!--Warning, this causes ever increasing draws -->
  189.             <!--<component name="cmpGlyphRenderer" bounds="-1,-1,1,1" depth="0.6" glyph="BrushStrokeManager"/>-->
  190.         </template>    
  191.        
  192.         <object  name="resources">
  193.  
  194.             <folder name="PBRmaterials" object_src="PBRmaterials.xml" />
  195.             <material name="shadowMapmat" src="$(SHADER_PATH)/CSingleColourVertex.vert&$(SHADER_PATH)/CVisualiseShadows.frag" DiffuseTextureSampler="shadowMap" material_diffuse="1,1,1,1" BlendMode="BM_SET" DiffuseTextureSampler_URepeat="ETGL_CLAMP_TO_EDGE" DiffuseTextureSampler_VRepeat="ETGL_CLAMP_TO_EDGE" zWrite="false" cullMode="NOTHING" DiffuseTextureSampler_minFilter="LINEAR"/>
  196.             <material name="PropertyManagerTexturePreviewMaterial" src="$(SHADER_PATH)/CSingleColourVertex.vert&$(SHADER_PATH)/CSingleTextureMaterial.frag" DiffuseTextureSampler="shadowMap" material_diffuse="1,1,1,1" BlendMode="BM_SET" DiffuseTextureSampler_URepeat="ETGL_CLAMP_TO_EDGE" DiffuseTextureSampler_VRepeat="ETGL_CLAMP_TO_EDGE" zWrite="false" cullMode="NOTHING"/>
  197.             <texture name="cwicons" PreLoad="True" src="$(TEXTURE_PATH)/cwicons.png" />
  198.             <!--<texture name="test_download" src="http://localhost:120/ZenSystem/View/Templates/default/media/images/logo_notext.png" PreLoad="true"/>-->
  199.  
  200.             <object name="softwareBuffer">
  201.                 <component name="cmpTexture" size="256,256" PixelFormat="PXF_RGBA8888" />
  202.                 <component name="cmpSoftwareTextureFill" />
  203.             </object>
  204.  
  205.            
  206.             <template name="ParticleSprite">
  207.                 <component name="cmpSprite" material="ParticleSpriteMaterial"/>
  208.             </template>
  209.  
  210.             <texture name="testmushroom2" PreLoad="True" src="$(TEXTURE_PATH)/testmushroom2.png" />
  211.             <texture name="testmushroom1" PreLoad="True" src="$(TEXTURE_PATH)/testmushroom1.png" />
  212.  
  213.             <material name="MushRoomTestMaterial1" src="$(SHADER_PATH)/CSingleColourVertex.vert&$(SHADER_PATH)/CSingleTextureMaterial.frag"
  214.                 material_diffuse="1,1,1,1"
  215.                 DiffuseTextureSampler_MinFilter="NEAREST"
  216.                 DiffuseTextureSampler_MaxFilter="MAG_NEAREST"
  217.                 DiffuseTextureSampler="testmushroom1"
  218.                 CullMode="NOTHING"
  219.                 zFunc="Always"
  220.                 zWrite="false">        
  221.             </material>
  222.  
  223.             <material name="MushRoomTestMaterial2" src="$(SHADER_PATH)/CSingleColourVertex.vert&$(SHADER_PATH)/CSingleTextureMaterial.frag"
  224.                 material_diffuse="1,1,1,1"
  225.                 DiffuseTextureSampler_MinFilter="NEAREST"
  226.                 DiffuseTextureSampler_MaxFilter="MAG_NEAREST"
  227.                 DiffuseTextureSampler="testmushroom2"
  228.                 CullMode="NOTHING"
  229.                 zFunc="Always"
  230.                 zWrite="false">        
  231.             </material>
  232.  
  233.             <folder name="GradientsFolder" object_src="../xml/gradients.xml" />
  234.             <object name="spriteNames">
  235.                 <component name="cmpVarArray" value=""/>
  236.             </object>
  237.              
  238.             <object name="iconSpritesColour">              
  239.                 <component name="cmpMaterial"
  240.                         src="$(SHADER_PATH)/CSingleTextureMaterial.vert&$(SHADER_PATH)/CSingleTextureMaterial.frag"
  241.                         DiffuseTextureSampler="cwicons"
  242.                         DiffuseTextureSampler_MinFilter="LINEAR_MIPMAP_NEAREST"
  243.                         DiffuseTextureSampler_MaxFilter="MAG_NEAREST"
  244.                         material_diffuse="1.0,1.0,1.0,1.0"
  245.                         zWrite="false"
  246.                         zFunc="Always"
  247.                         CullMode="NOTHING"/>
  248.                     <component name="cmpGridSpriteSheet" textureSize="512,256" cellCount="16,8" layeroffset="3"
  249.                         names='
  250. "cursor"        , "rotate"   , "move"                  , "scale"             , "stretch"     , "cube"                  , "sphere"                , "cone"            , "torus"          , "cylinder"           , "polygonshape"          ,"line"                 ,"regularpoly"           ,"spline"           ,"Superellipse"              , "Dodecahedron"         ,
  251. "rewind"        , "play"     , "fastforward"           , "stop"              , "record"      , "pause"                 , "clapper"               , "GUI"             , "logic"          , "nand"               , "A"                ,"ParticleSystems"      ,"grid"                  ,"rectangle"        ,"circle"                    , "Isocahedron"          ,
  252. "painttex"      , "Sculpt"   , "paintuv"               , "Paint"             , "airbrush"    , "pen"                   , "eraser"                , "setcolour"       , "extrude"        , "polygonextrude"     , "subdivide"        ,"smoothsubdivide"      ,"bevel"                 ,"loopcut"          ,"applysmoothgroup"          , "Tetrahedron"          ,
  253. "visible"       , "invisible", "LeftArrow"             , "RightArrow"        , "set"         , "xor"                   , "or"                    , "xor"             , "not"            , ""                   , "hm_centre"        ,"hm_onedge"            ,"hm_baseline"           ,"centrerotate"     ,"cornerrotate"              , ""                     ,
  254. "vertex"        , "edge"     , "polygon"               , "instance"          , ""            , "user-set height"       , "relative height"       , ""                , "cwlogoshade"   , "cwlogo"              , "texture"          ,"applymaterial"        ,"triangulate"           ,"selection"        ,"selectstrided"             , "selectall"                     ,
  255. "cut"           , "paste"    , "delete"                , "copy"              , "zoom"        , "lock"                  , "unlock"                , "target"          , "colourpick"     , "merge"              , "sharpedge"        ,"defaultorientation"  ,"orienttosurface"   ,"texturenoise"                 ,""                          , "selectnone"             ,
  256. "alignVertices" , ""         , ""                      , "StaticPhysics"    , "DynamicPhysics","GamePlay"              , ""                      , ""                , ""               , ""                   , ""                 ,""                     ,""                      ,""                 ,""                          , "",
  257. "hinge" , "ballandsocket"    , "slider"                , "conetwist"         , "pointtopoint" ,"pointlight"            , "directionallight"      , "arealight"       , "spotlight"     , "striplight"                   , ""                 ,""                     ,""                      ,""                 ,""                          , ""'
  258.                         />
  259.             </object>
  260.  
  261.            
  262.             <object name="iconSprites">        
  263.                 <component name="cmpMaterial"
  264.                         src="$(SHADER_PATH)/CSingleTextureMaterial.vert&$(SHADER_PATH)/CSingleTextureMonochrome.frag"
  265.                         DiffuseTextureSampler="cwicons"
  266.                         DiffuseTextureSampler_MinFilter="LINEAR_MIPMAP_NEAREST"
  267.                         DiffuseTextureSampler_MaxFilter="MAG_NEAREST"
  268.                         material_diffuse="1.0,1.0,1.0,1.0"
  269.                         zWrite="false"
  270.                         zFunc="Always"
  271.                         LayerOffset="2"
  272.                         CullMode="NOTHING"/>
  273.                 <component name="cmpGridSpriteSheet" textureSize="512,256" cellCount="16,8" layeroffset="3"
  274.                     names='
  275. "cursor"        , "rotate"   , "move"                  , "scale"             , "stretch"     , "cube"                  , "sphere"                , "cone"            , "torus"          , "cylinder"           , "polygonshape"          ,"line"                 ,"regularpoly"           ,"spline"           ,"Superellipse"              , "Dodecahedron"         ,
  276. "rewind"        , "play"     , "fastforward"           , "stop"              , "record"      , "pause"                 , "clapper"               , "GUI"             , "logic"          , "nand"               , "A"                ,"ParticleSystems"      ,"grid"                  ,"rectangle"        ,"circle"                    , "Isocahedron"          ,
  277. "painttex"      , "Sculpt"   , "paintuv"               , "Paint"             , "airbrush"    , "pen"                   , "eraser"                , "setcolour"       , "extrude"        , "polygonextrude"     , "subdivide"        ,"smoothsubdivide"      ,"bevel"                 ,"loopcut"          ,"applysmoothgroup"          , "Tetrahedron"          ,
  278. "visible"       , "invisible", "LeftArrow"             , "RightArrow"        , "set"         , "xor"                   , "or"                    , "xor"             , "not"            , ""                   , "hm_centre"        ,"hm_onedge"            ,"hm_baseline"           ,"centrerotate"     ,"cornerrotate"              , ""                     ,
  279. "vertex"        , "edge"     , "polygon"               , "instance"          , ""            , "user-set height"       , "relative height"       , ""                , "cwlogoshade"   , "cwlogo"              , "texture"          ,"applymaterial"        ,"triangulate"           ,"selection"        ,"selectstrided"             , "selectall"                     ,
  280. "cut"           , "paste"    , "delete"                , "copy"              , "zoom"        , "lock"                  , "unlock"                , "target"          , "colourpick"     , "merge"              , "sharpedge"        ,"defaultorientation"  ,"orienttosurface"   ,"texturenoise"                 ,""                          , "selectnone"             ,
  281. "alignVertices" , ""         , ""                      , "StaticPhysics"    , "DynamicPhysics","GamePlay"              , ""                      , ""                , ""               , ""                   , ""                 ,""                     ,""                      ,""                 ,""                          , "",
  282. "hinge" , "ballandsocket"    , "slider"                , "conetwist"         , "pointtopoint" ,"pointlight"            , "directionallight"      , "arealight"       , "spotlight"     , "striplight"                   , ""                 ,""                     ,""                      ,""                 ,""                          , ""'
  283.  
  284.                             LayerOffset="4"/>
  285.  
  286.                     <object name="smallRightArrow">
  287.                         <Component name="cmpGlyphModifier" glyph="iconSprites::cmpGridSpriteSheet.icons['RightArrow']" scale="0.5,0.5" />
  288.                     </object>
  289.        
  290.             </object>
  291.             <!--"Isocahedron"-->
  292.             <!--CCmpClayworks app looks for these list menu objects-->
  293.             <!--target in to which context menu items are built-->
  294.             <group name="ContextMenus" object_src="ContextMenus.xml" />
  295.  
  296.             <list name="GUIModeList">
  297.                 <component name="cmpListItem" text="Inspect" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['cursor']" />
  298.                 <component name="cmpListItem" text="Create" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['GUI']"  />
  299.                
  300.             </list>
  301.  
  302.  
  303.             <list name="LightList">            
  304.                 <component name="cmpListItem" text="Point Light" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['pointlight']" Value="CMPTYPE_POINTLIGHT"/>
  305.                 <component name="cmpListItem" text="Directional Light" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['directionallight']" Value="CMPTYPE_DIRECTIONALLIGHT"/>
  306.                 <component name="cmpListItem" text="Spot Light" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['spotlight']"   Value="CMPTYPE_SPOTLIGHT"/>
  307.                 <component name="cmpListItem" text="Strip Light" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['striplight']" Value="CMPTYPE_STRIPLIGHT"/>
  308.                 <component name="cmpListItem" text="Area Light" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['arealight']"   Value="CMPTYPE_AREALIGHT"/>
  309.             </list>
  310.  
  311.             <list name="JointList">
  312.                 <component name="cmpListItem" text="Hinge Joint" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['hinge']" Value="CMPTYPE_PHYSJOINTHINGE"/>
  313.                 <component name="cmpListItem" text="Ball Joint" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['ballandsocket']" Value="CMPTYPE_PHYSJOINTBALL"/>
  314.                 <component name="cmpListItem" text="Slider Joint" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['slider']" Value="CMPTYPE_PHYSJOINTSLIDER"/>
  315.                 <component name="cmpListItem" text="Cone / twist Joint" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['conetwist']" Value="CMPTYPE_PHYSJOINTCONETWIST"/>
  316.                 <component name="cmpListItem" text="Point to Point Joint" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['pointtopoint']" Value="CMPTYPE_PHYSJOINTPOINT2POINT"/>
  317.             </list>
  318.  
  319.             <list name="MeshModifierBundleList">
  320.                 <component name="cmpListItem" text="None" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['delete']" />
  321.                 <component name="cmpListItem" text="Subdivided" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['subdivide']" Value="ModBundleSubdivide"/>
  322.                 <component name="cmpListItem" text="Beveled" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['sharpedge']" Value="ModBundleBeveled"/>
  323.                 <component name="cmpListItem" text="Thick Edges" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['bevel']" Value="ThickEdgeBundle"/>
  324.             </list>
  325.  
  326.             <list name="InstanceBundleList">
  327.                 <component name="cmpListItem" text="None" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['delete']" />
  328.                 <component name="cmpListItem" text="Dynamic Physics" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['DynamicPhysics']" Value="InstanceBundleDynamicPhysics"/>
  329.                 <component name="cmpListItem" text="Static Physics" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['StaticPhysics']" Value="InstanceBundleStaticPhysics"/>
  330.                 <component name="cmpListItem" text="Game Object" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['GamePlay']" Value="InstanceBundleGameObject"/>
  331.                 <component name="cmpListItem" text="Static Physics Box" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['StaticPhysics']" Value="InstanceBundleStaticPhysicsBox"/>
  332.             </list>
  333.  
  334.             <list name="SelectionShapeList">
  335.                 <component name="cmpListItem" text="Rectangle" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['rectangle']" />
  336.                 <component name="cmpListItem" text="Circle" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['circle']"   />
  337.                 <component name="cmpListItem" text="Polygon" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['polygonshape']"    />
  338.                 <component name="cmpListItem" text="Line"   glyph="iconSpritesColour::cmpGridSpriteSheet.icons['line']" />
  339.                 <component name="cmpListItem" text="Draw" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['spline']" />
  340.             </list>
  341.             <list name="InstanceModeDrawList">
  342.                 <component name="cmpListItem" text="Freehand" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['spline']" />
  343.                 <component name="cmpListItem" text="Line" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['line']" />
  344.                 <component name="cmpListItem" text="Rectangle" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['rectangle']" />             
  345.                 <component name="cmpListItem" text="Circle" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['circle']" />
  346.                 <component name="cmpListItem" text="Polygon" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['polygon']" />
  347.             </list>
  348.  
  349.             <list name="SelectionModifiers">
  350.                 <component name="cmpListItem" text="Select all" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['selectall']" Code="TYPE_MESHMODSELECTALL"/>
  351.                 <component name="cmpListItem" text="Select None" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['selectnone']" Code="TYPE_MESHMODSELECTNONE"/>
  352.                 <component name="cmpListItem" text="Select Sharp" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['sharpedge']" Code="TYPE_MESHMODSELECTSHARP"/>
  353.                 <component name="cmpListItem" text="Select Strided" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['selectstrided']" Code="TYPE_MESHMODSELECTSTRIDED"/>
  354.             </list>
  355.             <list name="ModifierList">
  356.                 <component name="cmpListItem" text="Move"  glyph="iconSpritesColour::cmpGridSpriteSheet.icons['move']" Code="TYPE_MESHMODMOVE"/>
  357.                 <component name="cmpListItem" text="Rotate"  glyph="iconSpritesColour::cmpGridSpriteSheet.icons['rotate']" Code="TYPE_MESHMODROTATE"/>
  358.                 <component name="cmpListItem" text="Scale"   glyph="iconSpritesColour::cmpGridSpriteSheet.icons['scale']" Code="TYPE_MESHMODSCALE"/>
  359.                 <component name="cmpListItem" text="Stretch" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['stretch']" Code="TYPE_MESHMODSTRETCH"/>               
  360.                 <component name="cmpListItem" text="Extrude" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['extrude']" Code="TYPE_MESHMODEXTRUDE"/>
  361.                 <component name="cmpListItem" text="Polygon Extrude" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['polygonextrude']" Code="TYPE_MESHMODPOLYGONEXTRUDE"/>
  362.                 <component name="cmpListItem" text="Subdivide" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['subdivide']" Code="TYPE_MESHMODSUBDIVIDE"/>
  363.                 <component name="cmpListItem" text="Smooth subdivide" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['smoothsubdivide']" Code="TYPE_MESHMODSUBDIVIDE"/>
  364.                 <component name="cmpListItem" text="Apply Colour" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['applysmoothgroup']" Code="TYPE_MESHMODAPPLYCOLOUR"/>
  365.                 <component name="cmpListItem" text="Apply Smooth-group" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['applysmoothgroup']" Code="TYPE_MESHMODAPPLYSMOOTHGROUP"/>
  366.                 <component name="cmpListItem" text="Apply Material" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['cwlogoshade']" Code="TYPE_MESHMODAPPLYMATERIAL"/>
  367.                 <component name="cmpListItem" text="Align vertices" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['alignVertices']" Code="TYPE_ALIGNVERTICES"/>
  368.                 <component name="cmpListItem" text="Apply Crease" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['sharpedge']" Code="TYPE_MESHMODAPPLYCREASEFACTOR"/>
  369.                 <component name="cmpListItem" text="Merge" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['merge']" Code="TYPE_MESHMODMERGE"/>
  370.                 <component name="cmpListItem" text="Map Distort" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['texturenoise']" Code="TYPE_MESHMODMAPDISTORT"/>
  371.                 <component name="cmpListItem" text="Triangulate" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['triangulate']" Code="TYPE_MESHMODTRIANGULATE"/>
  372.                 <component name="cmpListItem" text="Selection" childList="SelectionModifiers" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['selection']"/>
  373.             </list>
  374.             <list name="BrushTypeList">
  375.                 <component name="cmpListItem" text="Air brush" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['airbrush']"/>
  376.                 <component name="cmpListItem" text="Paint Brush" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['paint']"/>
  377.                 <component name="cmpListItem" text="Pen" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['pen']"/>
  378.                 <component name="cmpListItem" text="Eraser" glyph="iconSpritesColour::cmpGridSpriteSheet.icons['eraser']"/>
  379.             </list>
  380.  
  381.  
  382.  
  383.             <object name="BrushShapeList">
  384.                 <component name="CCmpSceneGraphToIListAdapter" node="BrushDataFolder"/>
  385.             </object>
  386.  
  387.             <texture name="checker_1k" src="textures/1kchecker.png" />         
  388.  
  389.             <texture name="shadowMap" size="1024, 1024" GenerateMipmaps="false" PixelFormat="PXF_DEPTH" ColourSpaceMode="linear" IsRenderTarget="false"/> <!-- PXF_RGBA8888-->
  390.             <material name="ShadowMapMaterial2" PreLoad="True" src="$(SHADER_PATH)/CShadowMap.vert%$(SHADER_PATH)/CShadowMap.frag" CullMode="NOTHING" BlendMode="BM_SET"/> <!--For rendering the shadow map-->
  391.             <object  name="editor_background">
  392.                 <component  name="cmpSprite" UnitType="None"/>
  393.                 <component  name="cmpMaterial" src="$(SHADER_PATH)/CSingleColour.vert%$(SHADER_PATH)/CSingleColour.frag" material_diffuse="0.2,0.0,0.2,1" m_PosOffset="0,0,1000.0f" cullmode="Nothing" zFunc="always" zWrite="true" LayerOffset="4" defines="DEPTH_OFFSET" />
  394.                 <!--<component  name="cmpMaterial" src="$(SHADER_PATH)/CSingleColour.vert$(SHADER_PATH)/CHoloMaterial.frag" material_diffuse="0,0.3,1,1" m_PosOffset="0,0,10000.0f"  cullmode="None"/>-->
  395.             </object>
  396.  
  397.             <object  name="editor_background3D">
  398.                 <component  name="cmpSprite" UnitType="None"/>
  399.                 <component  name="cmpMaterial" src="$(SHADER_PATH)/CSingleColour.vert%$(SHADER_PATH)/CSingleColour.frag" material_diffuse="0.2,0.0,0.2,1" m_PosOffset="0,0,1000.0f" cullmode="FRONTFACE" zFunc="always" zWrite="true" m_write_depth="10000"/>
  400.                 <!--<component  name="cmpMaterial" src="$(SHADER_PATH)/CSingleColour.vert$(SHADER_PATH)/CHoloMaterial.frag" material_diffuse="0,0.3,1,1" m_PosOffset="0,0,10000.0f"  cullmode="None"/>-->
  401.             </object>
  402.  
  403.             <object name="MenuList" object_src="ClayworksMenu.xml"/>
  404.  
  405.             <folder name="instance_folder"  object_src="..\pilkapel\GameInstanceTemplates.xml" visible="false"/>
  406.             <!--<folder name="instance_folder"  object_src="" />-->
  407.             <folder name="BrushDataFolder">
  408.                 <ParticleSprite name="dot" UnitType="EUT_PIXELS" UV1="R0.00,0.00,62.5,62.5" />
  409.                 <ParticleSprite name="dot2" UnitType="EUT_PIXELS" UV1="R64.0,0.00,62.5,62.5" />
  410.                 <ParticleSprite name="capsule" UnitType="EUT_PIXELS" UV1="R128.0,0.00,62.5,62.5" />
  411.                 <ParticleSprite name="swoosh" UnitType="EUT_PIXELS" UV1="R192.0,0.00,62.5,62.5" />
  412.  
  413.                 <ParticleSprite name="darkswoosh" UnitType="EUT_PIXELS" UV1="R0.00,64.05,62.5,62.5" />             
  414.                 <ParticleSprite name="cloudunderlit" UnitType="EUT_PIXELS" UV1="R64.05,64.05,62.5,62.5" />
  415.                 <ParticleSprite name="cloud" UnitType="EUT_PIXELS" UV1="R128.05,64.05,62.5,62.5" />
  416.                 <ParticleSprite name="cloudnorm" UnitType="EUT_PIXELS" UV1="R192.05,64.05,62.5,62.5" />
  417.  
  418.                 <ParticleSprite name="star" UnitType="EUT_PIXELS" UV1="R0.00,128.050,62.5,62.5" />             
  419.                 <ParticleSprite name="pinpoint" UnitType="EUT_PIXELS" UV1="R64.05,128.050,62.5,62.5" />
  420.                 <ParticleSprite name="darkprelitcloud" UnitType="EUT_PIXELS" UV1="R128.05,128.050,62.5,62.5" />
  421.                 <ParticleSprite name="beam" UnitType="EUT_PIXELS" UV1="R192.05,128.050,62.5,62.5" />
  422.  
  423.                 <ParticleSprite name="lightning" UnitType="EUT_PIXELS" UV1="R0.00,192.05,62.5,62.5" />
  424.                 <ParticleSprite name="plasma" UnitType="EUT_PIXELS" UV1="R64.05,192.05,62.5,62.5" />
  425.                 <ParticleSprite name="debris" UnitType="EUT_PIXELS" UV1="R128.05,192.05,62.5,62.5" />
  426.                 <ParticleSprite name="debris_normal" UnitType="EUT_PIXELS" UV1="R192.05,192.05,62.5,62.5" />
  427.             </folder>
  428.  
  429.        
  430.            
  431.         </object>
  432.  
  433.         <folder name="EditorTemplates" object_src="EditorTemplates.xml" />
  434.  
  435.         <scene  name="3Dscene" object_src="DefaultScene.xml">  
  436.             <component name="CmpScene" defaultLayerMask="0x1" protect_from_reload="true"/>
  437.             <component name="CmpRenderBuffer" Persistent="true" MeshBufferMode="BEST_FOR_PLATFORM" protect_from_reload="true"/>
  438.             <component name="cmpBoundsVisualiser" OnlyUseColliders="false" processChildren="true" protect_from_reload="true"/>
  439.             <component name="cmpPhysicsScene3D" gravity="0,-9.8,0" ShowDebugSchematics="false" DebugLines="DebugLines" protect_from_reload="true"/>
  440.             <component name="cmpMouseEventTrigger" LeftButtonPointClicked="ClayworksApp::cmpClayworksApp.SceneLeftClicked" RightButtonPointClicked="ClayworksApp::cmpClayworksApp.SceneRightClicked" protect_from_reload="true"/>
  441.             <component name="cmpMouseEventVisualiser" protect_from_reload="true" DebugLines="DebugLines"/>
  442.             <folder name="meshes" protect_from_reload="true"/>
  443.             <folder name="textures" protect_from_reload="true"/>
  444.             <folder name="materials" protect_from_reload="true"/>
  445.             <component name="AMBIENTLIGHT" GroundSkySharpness="17.4257" GroundColour="L0.170139, 0.16032, 0.15537, 1" SkyColour="L0.0675998, 0.307679, 0.927083, 1" />
  446.             <component name="cmpLightManager" shadowMap="shadowMap, ETGL_NEAREST, ETGL_MAG_NEAREST"/>  
  447.            
  448.             <DirectionalLightWithShadow name="mainlight" EulerOrientation="D90, 205, 0" colour="1,1,1" protect_from_reload="true" OverrideMaterial="ShadowMapMaterial2" ViewCamera="Perspective" Intensity="6.0" DontDrawSubViews="true"/>
  449.             <pointlight name="cyanpointlight" colour="0.2,0.3,0.9,1.0" intensity="5" position="10,3,3" range="10" />
  450.             <pointlight name="orangepointlight" colour="1.0,0.7.0,0.2,1.0" intensity="5" position="3,3,10" range="10" />
  451.             <!--<pointlight name="purplepointlight" colour="1.0,0.2,1.0,1.0" intensity="5" position="0,3,3" range="10" />-->
  452.             <!--<ProceduralAsteroid name="ProceduralAsteroid" Position="0, 0, 0" />-->
  453.             <folder name="system" protect_from_reload="true" LayerMask="0x80000">
  454.                 <!--<component name="CmpRenderBuffer" Persistent="true" MeshBufferMode="BEST_FOR_PLATFORM" protect_from_reload="true"/>-->
  455.                 <folder name="ParticlesFolder" layerMask="0x2000" object_Src="../xml/particle_systems.xml" />
  456.                 <object name="ObjectLabler">
  457.                     <component name="cmpTransform3d" />
  458.                     <component name="cmpSpriteSystem" material="FontParticleMaterial" SpriteAtlas="FontManager"/>
  459.                 </object>
  460.                 <folder  name="cameras">           
  461.                     <component name="CmpRenderBuffer" Persistent="true" MeshBufferMode="BEST_FOR_PLATFORM" protect_from_reload="true"/>            
  462.                     <jcamera  name="orthofront"   debugLines="DebugLines" ProjectionMode="ORTHOGRAPHIC" rotationOrder="ERO_ZYX" position="0,0,-100" eulerorientation="0,0,0" fov="91" near="-100" far="3500" CalcFrustRectFromFov="true"    TargetProjectionMode="CAM_PERSPECTIVE"/>
  463.                     <jcamera  name="orthoright"   debugLines="DebugLines" ProjectionMode="ORTHOGRAPHIC" rotationOrder="ERO_ZYX" position="-100,0,0" eulerorientation="d0,90,0" fov="91" near="-100" far="3500" CalcFrustRectFromFov="true" TargetProjectionMode="CAM_PERSPECTIVE"/>
  464.                     <jcamera  name="orthotop"     debugLines="DebugLines" ProjectionMode="ORTHOGRAPHIC" rotationOrder="ERO_ZYX" position="0,100,0" eulerorientation="d90,0,0" fov="91" near="-100" far="3500" CalcFrustRectFromFov="true"   TargetProjectionMode="CAM_PERSPECTIVE"/>
  465.                     <jcamera  name="Perspective"  debugLines="DebugLines" ProjectionMode="PERSPECTIVE_OFF_CENTRE" rotationOrder="ERO_ZYX" position="0,30,-100" near="1.0" rayEnd="1.0" far="15000" CalcFrustRectFromFov="true" LeftHanded="true" DoubleSidedCollision="false" sprite="ClayworksApp.BrushStrokeManager"/> <!--TargetProjectionMode="CAM_ORTHOGRAPHIC"        -->
  466.                 </folder>
  467.                
  468.                 <object name="Triad" LayerMask="0x100">
  469.                     <component name="CmpTransform3D" />
  470.                     <!--<component name="cmpStyle"  constantScale="0.1" />-->
  471.                     <component name="cmpArrow" material="wireframe_constant_scale_noz" colour="1,0,0,1" orientation="0,90,0" AxisRestriction="1" renderLayer="8"/>
  472.                     <component name="cmpArrow" material="wireframe_constant_scale_noz" colour="0,1,0,1" orientation="90,0,0" AxisRestriction="2" renderLayer="8"/>
  473.                     <component name="cmpArrow" material="wireframe_constant_scale_noz" colour="0,0,1,1" orientation="0,0,0" AxisRestriction="4" renderLayer="8" />
  474.  
  475.                     <component name="cmpCube" material="wireframe_constant_scale_noz" colour="0.9,0.9,0.0,1" orientation="0,0,0" AxisRestriction="3"
  476.                         bounds="-1.2,0.8,-0.01,
  477.                                 -0.8,1.2, 0.01" renderLayer="8"/>
  478.                     <component name="cmpCube" material="wireframe_constant_scale_noz" colour="0.9,0.0,0.9,1" orientation="0,0,0" AxisRestriction="5"
  479.                         bounds="-1.2,-0.01, -0.8,
  480.                                 -0.8, 0.01, -1.2, " renderLayer="8"/>
  481.                     <component name="cmpCube" material="wireframe_constant_scale_noz" colour="0.0,0.9,0.9,1" orientation="0,0,0" AxisRestriction="6"
  482.                         bounds="-0.01,0.8, -0.8,
  483.                                  0.01,1.2, -1.2, " renderLayer="8"/>
  484.                     <!--<component name="cmpCube" material="wireframe_constant_scale_noz" colour="0.5,0.5,0.5,1" orientation="0,0,0" AxisRestriction="15" bounds="-0.5,-0.5,-0.5,0.5,0.5,0.5" renderLayer="8"/>
  485.                     <component name="cmpCube" material="wireframe_constant_scale_noz" colour="0.5,0.5,0.5,1" orientation="0,0,0" AxisRestriction="15" bounds="-0.5,-0.5,-0.5,0.5,0.5,0.5" renderLayer="8"/>-->
  486.  
  487.                     <component name="cmpCube" material="wireframe_constant_scale_noz" colour="0.5,0.5,0.5,1" orientation="0,0,0" AxisRestriction="15" bounds="-0.3,-0.3,-0.3,0.3,0.3,0.3" renderLayer="8"/>
  488.                     <component name="CmpDragBehaviour3D" />
  489.                 </object>
  490.                 <object name="RotateTool" LayerMask="0x100">
  491.                     <component name="cmpWidgetRotateDisk" material="wireframe_nonudge" colour="1,0,0,1" orientation="0,0,0" AxisRestriction="1"  radius="4" tubeRadius="0.05" renderLayer="8"/>
  492.                     <component name="cmpWidgetRotateDisk" material="wireframe_nonudge" colour="0,1,0,1" orientation="0,90,0" AxisRestriction="2" radius="4" tubeRadius="0.05" renderLayer="8"/>
  493.                     <component name="cmpWidgetRotateDisk" material="wireframe_nonudge" colour="0,0,1,1" orientation="90,0,0" AxisRestriction="4" radius="4" tubeRadius="0.05" renderLayer="8"/>
  494.                     <component name="CmpTransform3D" />
  495.                 </object>
  496.                 <object name="Cursor" LayerMask="0x100">
  497.                     <component name="CmpTransform3D" />
  498.                     <component name="CmpCursor" material="wireframe_constant_scale_noz" renderLayer="8"/>
  499.                     <component name="CmpDragBehaviour3D" />
  500.                 </object>              
  501.  
  502.                 <object name="StretchTool" LayerMask="0x100">
  503.                     <!--<component name="CmpTransform3D" position="0,0,0"/>-->
  504.                     <component name="CCmpStretchManipulator" boundsMaterial="wireframe_nonudge" handleMaterial="wireframe_constant_scale_noz" bounds="-10,-10,-10,10,10,10" renderLayer="8"/>
  505.                 </object>
  506.  
  507.                 <object name="planarProjectionTool" LayerMask="0x100" >
  508.                     <component name="CmpTransform3D" />
  509.                 </object>
  510.                 <object name="cubeProjectionTool" LayerMask="0x100" >
  511.                     <component name="CmpTransform3D" />
  512.                 </object>
  513.                 <object name="sphereProjectionTool" LayerMask="0x100" >
  514.                     <component name="CmpTransform3D" />
  515.                 </object>
  516.                 <object name="cylinderProjectionTool" LayerMask="0x100" >
  517.                     <component name="CmpTransform3D" />
  518.                 </object>
  519.  
  520.                 <object name="Snap Grid" LayerMask="0x100">
  521.                     <component name="cmpSnapGrid" material="wireframe2" GridCellSize="2, 2" AngleSnap="5"/>
  522.                 </object>
  523.                            
  524.                 <node name="DebugLines" LayerMask="0x100" >
  525.                     <component name="cmpDebugLines" material="wireframe2" renderLayer="1"/>
  526.                 </node>
  527.                 <node name="StaticDebugLines" LayerMask="0x100">
  528.                     <component name="cmpDebugLines" clearAfterFrame="false" material="wireframe2" renderLayer="2"/>
  529.                 </node>
  530.                 <node name="DrawingDebugLines" LayerMask="0x100" InitialLineCount="10000" >
  531.                     <component name="cmpDebugLines" clearAfterFrame="false" material="wireframe_nonudge" renderLayer="8"/>
  532.                 </node>
  533.                 <node name="SchematicDebugLines" LayerMask="0x100" >
  534.                     <component name="cmpDebugLines" material="wireframe2" renderLayer="1"/>
  535.                 </node>
  536.             </folder>
  537.         </scene>
  538.         <scene  name="Editor" FlipYAxisOnSprites="true">
  539.            
  540.             <component  name="cmpDummyAreaAccelerator" />
  541.             <component  name="cmpUIBase" width="100%" height="100% "/>
  542.             <component  name="CmpRenderBuffer" vertexBufferCapacity="4096" indexBuffePrCapacity="4096"  persistent="true"/>
  543.             <component  name="cmpScene" />         
  544.  
  545.            
  546.             <!--<camera  name="UIcamera" position="0,0,0" rotationorder="YZX"  ProjectionMode="CAM_PIXEL_SCALE_YORIGIN_TOP_ORTHOGRAPHIC" width="100%" height="100%" clearColour="0.12,0.1,0.12,1.0" clear="true" drawOrder="2" forceTopLevel="true"/>-->
  547.                    
  548.             <HorizontalGroup  name="EditorUI" height="100%" width="100%" UseChildrenForCollisionTest="true" Transparent="true">            
  549.                 <component name="cmpInputMessageDispatcher"/>
  550.                 <component name="cmpUIInspector" DebugLines="DebugLinesGUIInspector" />
  551.                
  552.                 <object  name="MainViewAndTopBar" >
  553.  
  554.                     <component  name="CmpRenderBuffer" vertexBufferCapacity="512" indexBufferCapacity="512" persistent="true"/>
  555.                     <component  name="cmpUIBase" ClipMode="ECM_OUTER_BOUNDS" Height="100%" PosX="0px" PosY="0%" Width="70%" UseChildrenForCollisionTest="true" Transparent="true"/>
  556.                     <VerticalGroup  name="VArrange" Height="100%" width="100%" UseChildrenForCollisionTest="true" Transparent="true">
  557.                         <!--<object name="KeyboardMapper">-->
  558.                         <!--<component  name="cmpInputMessageDispatcher" />-->
  559.                         <component name="cmpKeyboardMapper"/>
  560.                         <component name="cmpKeyboardMapperKey" KeyCode='C' OnKeyPress="ClayworksApp::cmpClayworksApp.SetPivotToLastCollisionPoint"/>
  561.                         <component name="cmpKeyboardMapperKey" KeyCode='B' OnKeyPress="ClayworksApp::cmpClayworksApp.AlignSelectedViewWithSelection"/>
  562.                        
  563.                         <component name="cmpKeyboardMapperKey" KeyCode="ctrl-R" OnKeyPress="ClayworksApp::cmpClayworksApp.ReloadChangedShaders"/>
  564.                         <component name="cmpKeyboardMapperKey" KeyCode="ctrl-X" OnKeyPress="ClayworksApp::cmpClayworksApp.OnMenuCut"/>
  565.                         <component name="cmpKeyboardMapperKey" KeyCode="ctrl-C" OnKeyPress="ClayworksApp::cmpClayworksApp.OnMenuCopy"/>
  566.                         <component name="cmpKeyboardMapperKey" KeyCode="ctrl-V" OnKeyPress="ClayworksApp::cmpClayworksApp.OnMenuPaste"/>
  567.                         <component name="cmpKeyboardMapperKey" KeyCode="ctrl-P" OnKeyPress="SystemSearchGroup.SystemSearchBox::cmpEditTextBox.KeyboardFocus"/>
  568.                         <component name="cmpKeyboardMapperKey" KeyCode="delete" OnKeyPress="ClayworksApp::cmpClayworksApp.OnMenuDelete"/>
  569.                         <component name="cmpKeyboardMapperKey" KeyCode="F4" OnKeyPress="popuptarget.icons::cmpUIBase.ToggleActivateAndShow"/>
  570.                         <component name="cmpKeyboardMapperKey" KeyCode="KP5" OnKeyPress="PerspectiveView::cmpEditorCameraController.TogglePseudoOrthographic"/>
  571.                         <component name="cmpKeyboardMapperKey" KeyCode="KP8" OnKeyPress="PerspectiveView::cmpEditorCameraController.ZoomToTopView" />
  572.                         <component name="cmpKeyboardMapperKey" KeyCode="KP2" OnKeyPress="PerspectiveView::cmpEditorCameraController.ZoomToBottomView" />
  573.                         <component name="cmpKeyboardMapperKey" KeyCode="KP4" OnKeyPress="PerspectiveView::cmpEditorCameraController.ZoomToLeftView" />
  574.                         <component name="cmpKeyboardMapperKey" KeyCode="KP6" OnKeyPress="PerspectiveView::cmpEditorCameraController.ZoomToRightView" />
  575.                         <component name="cmpKeyboardMapperKey" KeyCode="KP1" OnKeyPress="PerspectiveView::cmpEditorCameraController.ZoomToFrontView" />
  576.                         <component name="cmpKeyboardMapperKey" KeyCode="KP3" OnKeyPress="PerspectiveView::cmpEditorCameraController.ZoomToBackView" />
  577.                         <component name="cmpKeyboardMapperKey" KeyCode="KP9" OnKeyPress="PerspectiveView::cmpEditorCameraController.ZoomToIsometricView" />
  578.  
  579.                         <component name="cmpKeyboardMapperKey" KeyCode="ctrl-1" OnKeyPress="ClayworksApp::cmpClayworksApp.SaveModeParamsToInventory"/>
  580.                         <component name="cmpKeyboardMapperKey" KeyCode="ctrl-2" OnKeyPress="ClayworksApp::cmpClayworksApp.SaveModeParamsToInventory"/>
  581.                         <component name="cmpKeyboardMapperKey" KeyCode="ctrl-3" OnKeyPress="ClayworksApp::cmpClayworksApp.SaveModeParamsToInventory"/>
  582.                         <component name="cmpKeyboardMapperKey" KeyCode="ctrl-4" OnKeyPress="ClayworksApp::cmpClayworksApp.SaveModeParamsToInventory"/>
  583.                         <component name="cmpKeyboardMapperKey" KeyCode="ctrl-5" OnKeyPress="ClayworksApp::cmpClayworksApp.SaveModeParamsToInventory"/>
  584.                         <component name="cmpKeyboardMapperKey" KeyCode="ctrl-6" OnKeyPress="ClayworksApp::cmpClayworksApp.SaveModeParamsToInventory"/>
  585.                         <component name="cmpKeyboardMapperKey" KeyCode="ctrl-7" OnKeyPress="ClayworksApp::cmpClayworksApp.SaveModeParamsToInventory"/>
  586.                         <component name="cmpKeyboardMapperKey" KeyCode="ctrl-8" OnKeyPress="ClayworksApp::cmpClayworksApp.SaveModeParamsToInventory"/>
  587.                         <component name="cmpKeyboardMapperKey" KeyCode="ctrl-9" OnKeyPress="ClayworksApp::cmpClayworksApp.SaveModeParamsToInventory"/>
  588.                         <component name="cmpKeyboardMapperKey" KeyCode="ctrl-0" OnKeyPress="ClayworksApp::cmpClayworksApp.SaveModeParamsToInventory"/>
  589.  
  590.                         <component name="cmpKeyboardMapperKey" KeyCode="1" OnKeyPress="ClayworksApp::cmpClayworksApp.RestoreModeParamsFromInventory"/>
  591.                         <component name="cmpKeyboardMapperKey" KeyCode="2" OnKeyPress="ClayworksApp::cmpClayworksApp.RestoreModeParamsFromInventory"/>
  592.                         <component name="cmpKeyboardMapperKey" KeyCode="3" OnKeyPress="ClayworksApp::cmpClayworksApp.RestoreModeParamsFromInventory"/>
  593.                         <component name="cmpKeyboardMapperKey" KeyCode="4" OnKeyPress="ClayworksApp::cmpClayworksApp.RestoreModeParamsFromInventory"/>
  594.                         <component name="cmpKeyboardMapperKey" KeyCode="5" OnKeyPress="ClayworksApp::cmpClayworksApp.RestoreModeParamsFromInventory"/>
  595.                         <component name="cmpKeyboardMapperKey" KeyCode="6" OnKeyPress="ClayworksApp::cmpClayworksApp.RestoreModeParamsFromInventory"/>
  596.                         <component name="cmpKeyboardMapperKey" KeyCode="7" OnKeyPress="ClayworksApp::cmpClayworksApp.RestoreModeParamsFromInventory"/>
  597.                         <component name="cmpKeyboardMapperKey" KeyCode="8" OnKeyPress="ClayworksApp::cmpClayworksApp.RestoreModeParamsFromInventory"/>
  598.                         <component name="cmpKeyboardMapperKey" KeyCode="9" OnKeyPress="ClayworksApp::cmpClayworksApp.RestoreModeParamsFromInventory"/>
  599.                         <component name="cmpKeyboardMapperKey" KeyCode="0" OnKeyPress="ClayworksApp::cmpClayworksApp.RestoreModeParamsFromInventory"/>
  600.  
  601.                         <component name="cmpKeyboardMapperKey" KeyCode="ctrl-G" OnKeyPress="Snap Grid::cmpSnapGrid.ToggleSnap"/>
  602.                         <component name="cmpKeyboardMapperKey" KeyCode="ctrl-K" OnKeyPress="ClayworksApp::cmpEngineSettings.ZeroTriangulationTriangleCount"/>
  603.                         <component name="cmpKeyboardMapperKey" KeyCode="ctrl-shift-T" OnKeyPress="ClayworksApp::cmpEngineSettings.ToggleDebugTriangulation"/>
  604.                         <component name="cmpKeyboardMapperKey" KeyCode="J" OnKeyPress="ClayworksApp::cmpEngineSettings.IncrementTriangulationTriangleCount"/>
  605.                         <component name="cmpKeyboardMapperKey" KeyCode="K" OnKeyPress="ClayworksApp::cmpEngineSettings.DecrementTriangulationTriangleCount"/>
  606.                         <component name="cmpKeyboardMapperKey" KeyCode="ctrl-E" OnKeyPress="ClayworksApp::cmpClayworksApp.ApplyModifier" IntData="CMPTYPE_MESHMODEXTRUDE"/>
  607.                         <component name="cmpKeyboardMapperKey" KeyCode="ctrl-T" OnKeyPress="ClayworksApp::cmpClayworksApp.ApplyModifier" IntData="CMPTYPE_MESHMODMOVE"/>
  608.                         <component name="cmpKeyboardMapperKey" KeyCode="ctrl-S" OnKeyPress="ClayworksApp::cmpClayworksApp.ApplyModifier" IntData="CMPTYPE_MESHMODSTRETCH"/>
  609.                         <component name="cmpKeyboardMapperKey" KeyCode="ctrl-B" OnKeyPress="ClayworksApp::cmpClayworksApp.ApplyModifier" IntData="CMPTYPE_MESHMODSUBDIVIDE"/>
  610.                         <component name="cmpKeyboardMapperKey" KeyCode="ctrl-A" OnKeyPress="ClayworksApp::cmpClayworksApp.ApplyModifier" IntData="CMPTYPE_MESHMODSELECTALL"/>
  611.                         <component name="cmpKeyboardMapperKey" KeyCode="ctrl-U" OnKeyPress="ClayworksApp::cmpClayworksApp.ApplyModifier" IntData="CMPTYPE_MESHMODAPPLYSMOOTHGROUP"/>
  612.                         <component name="cmpKeyboardMapperKey" KeyCode="ctrl-Y" OnKeyPress="ClayworksApp::cmpClayworksApp.ApplyModifier" IntData="CMPTYPE_MESHMODTRIANGULATE"/>
  613.                         <!--<component name="cmpKeyboardMapperKey" KeyCode="ctrl-P" OnKeyPress="ClayworksApp::cmpClayworksApp.ApplyModifier" IntData="CMPTYPE_MESHMODPOLYGONEXTRUDE}"/>-->
  614.  
  615.                         <component name="cmpKeyboardMapperKey" KeyCode="ctrl-shift-D" OnKeyPress="ClayworksApp::cmpEngineSettings.ToggleReportDrawBlocks"/>
  616.                        
  617.                         <component name="cmpKeyboardMapperKey" KeyCode="ctrl-shift-F" OnKeyPress="ClayworksApp::cmpDebugHelper.DecreaseDebugCounter"/>
  618.                         <component name="cmpKeyboardMapperKey" KeyCode="ctrl-shift-G" OnKeyPress="ClayworksApp::cmpDebugHelper.IncreaseDebugCounter"/>
  619.                        
  620.                        
  621.                         <!--</object>-->
  622.                         <!--<component name="cmpKeyboardMapperKey" KeyCode="Q" OnKeyPress="ClayworksApp::cmpClayworksApp.OnMenuDebugDraw"/>
  623.                         <component name="cmpKeyboardMapperKey" KeyCode="R" OnKeyPress="ClayworksApp::cmpClayworksApp.OnMenuDebugDraw1"/>
  624.                         <component name="cmpKeyboardMapperKey" KeyCode="T" OnKeyPress="ClayworksApp::cmpClayworksApp.OnMenuDebugDraw2"/>-->
  625.                        
  626.  
  627.  
  628.                         <component  name="cmpUIBase" UseChildrenForCollisionTest="true" Transparent="true" />
  629.                         <component  name="cmpInputMessageDispatcher" />
  630.                         <HorizontalGroup  name="TopBar" Height="25px" Width="100%">
  631.                             <component  name="cmpInputMessageDispatcher" />
  632.                             <object  name="Menu">
  633.                                 <component  name="cmpGlyphRenderer" Colour="1,1,1,1" Glyph="button_up_data "/>
  634.                                 <component name="cmpStyle" font="Arial8" />
  635.                                 <component  name="cmpListView" HideSelectionWhenUnfocused="True" ListViewMode="horizontal" ItemMargin="10,1,10,1" List="MenuList" PadChildItems="False" Padding="3,3,3,3" PosX="0" PosY="0" SelectionGlyph="select_rect_data" DragMode="false" ShowAsTree="False" Width="1C" Height="100%" font="Arial8" ListIndent="0" OnListSelectionFinalised="ClayworksApp::cmpClayworksApp.OnMainMenuSelection"
  636.                                 RightHandSubmenuGlyph="smallRightArrow"
  637.                                     />
  638.                                 <component  name="cmpInputMessageDispatcher"/>
  639.                                 <component  name="cmpMenuController" SubListView="SubMenu" />
  640.                             </object>
  641.                            
  642.                             <!-- -4 on bottom pad allows tabs to sit behind border bar -->
  643.                             <object name="modeTabs" >
  644.                                 <component name="cmpStyle" colour="0,0,0,0.8" font="Arial8" />
  645.                                 <component name="cmpUIBase" Width="100%" Height="100%" Transparent="true" clipMode="ECM_OUTER_BOUNDS" padding="0,0,0,0" margin="0,0,0,0" />
  646.                                 <component name="cmpGlyphRenderer" Colour="1,1,1,1" Glyph="tab_border_data "/>
  647.                                 <component name="cmpInputMessageDispatcher"/>
  648.                                 <component name="cmpHorizontalArranger" />
  649.                                 <icontab name="Select" OnOutputCodeInt="modeControls::cmpSelectGroup.SetSelectedWithSource"  margin="0,0,0,0" ButtonState="1" icon.Width="0.5c" icon.height="0.5c" icon.glyph="iconSprites::cmpGridSpriteSheet.icons['cursor']"  OutputCode="0" label.text="Select"/>
  650.                                 <icontab name="Create" ButtonState="0" icon.Width="0.5c" icon.height="0.5c" icon.glyph="iconSprites::cmpGridSpriteSheet.icons['cube']"  OutputCode="1" OnOutputCodeInt="modeControls::cmpSelectGroup.SetSelectedWithSource" label.text="Create"/>
  651.                                 <icontab name="Sculpt" ButtonState="0" icon.Width="0.5c" icon.height="0.5c" icon.glyph="iconSprites::cmpGridSpriteSheet.icons['cursor']" label.text="Sculpt"  OutputCode="2" OnOutputCodeInt="modeControls::cmpSelectGroup.SetSelectedWithSource"/>
  652.                                 <icontab name="Paint" ButtonState="0"  icon.Width="0.5c" icon.height="0.5c" icon.glyph="iconSprites::cmpGridSpriteSheet.icons['paint']" label.text="Paint"   OutputCode="3" OnOutputCodeInt="modeControls::cmpSelectGroup.SetSelectedWithSource"/>
  653.                                 <icontab name="GUI" ButtonState="0"  icon.Width="0.5c" icon.height="0.5c" icon.glyph="iconSprites::cmpGridSpriteSheet.icons['GUI']" label.text="GUI"   OutputCode="4" OnOutputCodeInt="modeControls::cmpSelectGroup.SetSelectedWithSource"/>
  654.                                 <icontab name="Logic" ButtonState="0"  icon.Width="0.5c" icon.height="0.5c" icon.glyph="iconSprites::cmpGridSpriteSheet.icons['logic']" label.text="Logic"   OutputCode="5" OnOutputCodeInt="modeControls::cmpSelectGroup.SetSelectedWithSource"/>
  655.                             </object>
  656.                             <!--<object name="FPS text">
  657.                                 <component name="cmpStyle" colour="0,0,0,1" font="Arial8"/>
  658.                                 <component  name="CmpEngineStatistics" FPSString="::cmpLabel.SetTextComp" />
  659.                                 <component  name="CmpRenderBuffer" vertexBufferCapacity="32" indexBufferCapacity="32"/>
  660.                                 <component  name="cmpGlyphRenderer" Colour="1,1,1,1" Glyph="paper_data" />
  661.                                 <component  name="cmpLabel" PosX="0px" PosY="0px" TextVAlign="EPF_CENTRE_Y" colour="0,0,0,1" font="Arial8" height="100%" padding="5,0,0,0" text="FPS" Width="100px" DontCacheDimensions="true"/>
  662.                             </object>-->
  663.                         </HorizontalGroup>                     
  664.                         <object name="modeControls">
  665.                             <component name="cmpSelectGroup" Selection="0"/>
  666.                             <component name="cmpStyle" colour="0,0,0,1" fontSize="6pt" font="Arial8" />
  667.                             <component name="cmpUIBase" width="100%" height="50px" ClipMode="ECM_OUTER_BOUNDS"  Transparent="true" />
  668.  
  669.                             <topTabContents name="Select">
  670.                                 <component name="cmpHorizontalArranger" />
  671.                                 <component name="cmpAppModeSelect" OnModeActivatedOutput="ClayworksApp::cmpClayworksApp.OnApplicationModeChanged" DebugLines="DrawingDebugLines"/>
  672.                                
  673.                                 <VerticalGroup width="1c" valign="EPF_CENTRE_Y" padding="4,0,14,0" margin="4,0,4,0">                               
  674.                                     <UISprite2 name="icon" glyph="iconSprites::cmpGridSpriteSheet.icons['cursor']"  halign="EPF_CENTRE_X"/>
  675.                                     <label text="Select" NoClickResponse="true" posX="0px" posY="0px" width="1c" height="1c" valign="top"  halign="EPF_CENTRE_X"/>
  676.                                 </VerticalGroup>
  677.                                 <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,8,0" width="120px">
  678.                                     <modelabel text="Element Type:"  NoClickResponse="true" width="1c" height="1c" valign="top" />
  679.                                     <EnumIconBar Type="EElementType" OnListSelection="Select::cmpAppModeSelect.OnElementModeSelectionChanged" />
  680.                                     <!--<EnumPropertyEditor List::CmpEnumToIListAdapter.Type="EElementType" List::CmpListView.OnListSelection="Select::cmpAppModeSelect.OnElementModeSelectionChanged" />-->
  681.                                 </VerticalGroup>
  682.                                 <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,8,0" width="120pt">
  683.                                     <modelabel text="Shape:"  NoClickResponse="true" width="1c" height="1c" valign="top" />
  684.                                     <ListDropDownWithIcon name="SelectionShapeListView" List.List="SelectionShapeList" List::CmpListView.OnListSelection="Select::cmpAppModeSelect.OnSelectionShapeSelectionChanged" itemMargin="2, 2, 2, 2"/>
  685.                                 </VerticalGroup>
  686.                                 <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,8,0" width="130pt">
  687.                                     <modelabel text="Mode:"  NoClickResponse="true" width="1c" height="1c" valign="top" />
  688.                                     <EnumPropertyEditor name ="boolmode" List::CmpEnumToIListAdapter.Type="EBoolMode" List::CmpListView.OnListSelection="Select::cmpAppModeSelect.OnSelectModeSelectionChanged" itemMargin="2, 2, 2, 2"/>
  689.                                 </VerticalGroup>                               
  690.                                 <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,8,0" width="160pt">
  691.                                     <modelabel text="Modifier:"  NoClickResponse="true" width="1c" height="1c" valign="top" />
  692.                                     <ListDropDownWithIcon name="ModifierListView" List.List="ModifierList" List::CmpListView.OnListSelectionFinalised="Select::cmpAppModeSelect.OnModifierModeSelectionChanged" itemMargin="2, 2, 2, 2"/>
  693.                                 </VerticalGroup>
  694.                                 <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,8,0" width="160pt">
  695.                                     <modelabel text="Ignore Backfacing:"  NoClickResponse="true" width="1c" height="1c" valign="top" />
  696.                                     <CheckBox label::cmpLabel.text="" button::cmpButton.OutputOnOffState="ClayworksApp::cmpAppModeSelect.OnBackfaceToggleChange" />
  697.                                 </VerticalGroup>
  698.                             </topTabContents>
  699.                             <topTabContents name="Create" >
  700.                                 <component name="cmpHorizontalArranger" />
  701.                                 <component name="cmpAppModeCreate" OnModeActivatedOutput="ClayworksApp::cmpClayworksApp.OnApplicationModeChanged" OnSubModeChanged="submodecontents::cmpSelectGroup.SetSelected"/>
  702.                                 <VerticalGroup width="1c" valign="EPF_CENTRE_Y" padding="4,0,8,0" margin="4,0,4,0">
  703.                                     <UISprite2 name="icon" glyph="iconSprites::cmpGridSpriteSheet.icons['cube']" halign="EPF_CENTRE_X" valign="EPF_CENTRE_Y" />
  704.                                     <label text="Create"  NoClickResponse="true" width="1c" height="1c" valign="top"  halign="EPF_CENTRE_X"/>
  705.  
  706.                                 </VerticalGroup>
  707.                                 <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,8,0" width="140pt">
  708.                                     <modelabel  text="Shapes:" NoClickResponse="true" width="1c" height="1c" valign="top"  Colour="0,0,0,0.8" visible="true"/>
  709.                                     <object name ="objectListAdapter">
  710.                                         <component name="CCmpSceneGraphToIListAdapter" node="submodecontents" SingleLevel="true" />
  711.                                     </object>  
  712.                                     <ListDropDownWithIcon name="ShapeListView" List.List="objectListAdapter" List::CmpListView.OnListSelection="Create::cmpAppModeCreate.OnSubListSelectionChanged" itemMargin="2, 2, 2, 2"/>
  713.                                 </VerticalGroup>
  714.                                 <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,8,0" width="164pt">                                  
  715.                                     <modelabel text="Surface mode:"  NoClickResponse="true" width="1c" height="1c" valign="top" />                             
  716.                                     <EnumPropertyEditor name="SurfacePlacementMode" List::CmpEnumToIListAdapter.Type="EObjectSurfacePlacementMode" SurfacePlacementMode.List::CmpListView.OnListSelection="::cmpAppModeCreate.OnSurfaceModeSelectionChanged" itemMargin="2, 2, 2, 2"/>
  717.                                 </VerticalGroup>
  718.                                 <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,8,0" width="164pt">                                  
  719.                                     <modelabel text="Orientation Mode:"  NoClickResponse="true" width="1c" height="1c" valign="top" />                             
  720.                                     <EnumPropertyEditor name="SurfaceOrientationMode" List::CmpEnumToIListAdapter.Type="EObjectSurfaceOrientationMode" SurfaceOrientationMode.List::CmpListView.OnListSelection="::cmpAppModeCreate.OnSurfaceOrientationModeSelectionChanged" itemMargin="2, 2, 2, 2"/>
  721.                                 </VerticalGroup>
  722.                                 <object name="submodecontents">
  723.                                     <component name="cmpUIBase" width="100%" height="100%"/>
  724.                                     <component name="cmpSelectGroup"/>
  725.  
  726.                                     <ResizeObjectSubmodeUI name="Cube" Colour="1,1,0.8,1"  CoreComponentType="CMPTYPE_CUBEGENERATOR" ScaleMultiplier="1.0"/>
  727.                                     <ResizeObjectSubmodeUI name="Sphere" Colour="1,0.8,1,1"  CoreComponentType="CMPTYPE_SPHEREGENERATOR" ScaleMultiplier="2.0" DrawPivotList.DefaultSelection="1" DrawPivot="EODM_CENTRE_STRETCH"/>                                        
  728.                                     <ResizeObjectSubmodeUI name="Cylinder" Colour="0.8,1,1, 1" CoreComponentType="CMPTYPE_CYLINDERGENERATOR" ScaleMultiplier="2.0" DrawPivotList.DefaultSelection="1"/>
  729.                                     <ResizeObjectSubmodeUI name="Super Ellipsoid" CoreComponentType="CMPTYPE_SUPERELLIPSEGENERATOR" ScaleMultiplier="2.0" DrawPivotList.DefaultSelection="1"/>
  730.                                     <ResizeObjectSubmodeUI name="Torus" CoreComponentType="CMPTYPE_TORUSGENERATOR" ScaleMultiplier="2.0" DrawPivotList.DefaultSelection="1"/>
  731.                                     <ResizeObjectSubmodeUI name="Polyhedron" CoreComponentType="CMPTYPE_POLYHEDRONGENERATOR" ScaleMultiplier="2.0"/>
  732.                                     <ResizeObjectSubmodeUI name="Grid" CoreComponentType="CMPTYPE_GRIDGENERATOR" ScaleMultiplier="2.0" />
  733.                                     <ResizeObjectSubmodeUI name="Regular Polygon" CoreComponentType="CMPTYPE_REGULARPOLYGONGENERATOR" ScaleMultiplier="2.0" />
  734.  
  735.                                     <SubModeUI name="Polygon">
  736.                                         <component name="cmpAppModeCreatePolygonalObject" CoreComponentType="CMPTYPE_POLYGONGENERATOR" />                                      
  737.                                     </SubModeUI>
  738.                                     <SubModeUI name="Curves">
  739.                                         <component name="cmpAppModeCreatePolygonalObject" CoreComponentType="CMPTYPE_POLYSPLINEGENERATOR" DebugLines="DrawingDebugLines" />
  740.                                     </SubModeUI>
  741.  
  742.                                     <SubModeUI name="Joints">                                      
  743.                                         <component name="cmpAppModePlaceInstances" DebugLines="3Dscene.system.DrawingDebugLines"  CoreComponentType="CMPTYPE_PHYSJOINTHINGE" />
  744.                                         <component name="cmpHorizontalArranger" />
  745.                                         <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,8,0" width="120px" height="100%" margin="4,0,0,0">
  746.                                             <modelabel text="Joint types:"  NoClickResponse="true" width="1c" height="1.2c" valign="top" />
  747.                                             <!--medieval_templates-->
  748.                                             <ListDropDown name="JointListView" List="JointList"
  749.                                                  List::CmpListView.OnListSelection="ParticleSystems::cmpAppModePlaceInstances.OnInstanceSelectionChanged"
  750.                                                  width="120px" valign="EPF_TOP" List::CCmpSceneGraphToIListAdapter.Includemask="0x400" List::CCmpSceneGraphToIListAdapter.UnselectableMask="0" />
  751.                                         </VerticalGroup>
  752.                                         <!--<VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,8,0" width="120px" height="100%" margin="4,0,0,0">
  753.                                             <modelabel text="Draw mode:"  NoClickResponse="true" width="1c" height="1c" valign="top" />
  754.                                             <ListDropDownWithIcon name="DrawModeListView" List::cmpList.list="InstanceModeDrawList" List::CmpListView.OnListSelection="Instance::cmpAppModePlaceInstances.OnDrawModeChanged" width="120px" valign="EPF_TOP"/>
  755.                                         </VerticalGroup>-->
  756.                                         <!--<VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,4,0" margin="4,0,4,0" width="120px" height="100%">
  757.                                             <modelabel text="Colour"  NoClickResponse="true" width="1c" height="1c" valign="top" />
  758.                                             <ColourButtonTemplate name="lightcolour"/>
  759.                                         </VerticalGroup>-->
  760.                                     </SubModeUI>
  761.                                     <SubModeUI name="Lights">
  762.                                         <component name="cmpAppModePlaceInstances" DebugLines="3Dscene.system.DrawingDebugLines"  CoreComponentType="CMPTYPE_POINTLIGHT" />
  763.                                         <component name="cmpHorizontalArranger" />
  764.                                         <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,8,0" width="120px" height="100%" margin="4,0,0,0">
  765.                                             <modelabel text="Light types:"  NoClickResponse="true" width="1.2c" height="1c" valign="top" />
  766.                                             <!--medieval_templates-->
  767.                                             <ListDropDown name="LightListView" List="Lightlist"
  768.                                                  List::CmpListView.OnListSelection="Lights::cmpAppModePlaceInstances.OnInstanceSelectionChanged"
  769.                                                  width="120px" valign="EPF_TOP" List::CCmpSceneGraphToIListAdapter.Includemask="0x400" List::CCmpSceneGraphToIListAdapter.UnselectableMask="0" />
  770.                                         </VerticalGroup>
  771.                                         <!--<VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,8,0" width="120px" height="100%" margin="4,0,0,0">
  772.                                             <modelabel text="Draw mode:"  NoClickResponse="true" width="1c" height="1c" valign="top" />
  773.                                             <ListDropDownWithIcon name="DrawModeListView" List::cmpList.list="InstanceModeDrawList" List::CmpListView.OnListSelection="Instance::cmpAppModePlaceInstances.OnDrawModeChanged" width="120px" valign="EPF_TOP"/>
  774.                                         </VerticalGroup>-->
  775.                                         <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,4,0" margin="4,0,4,0" width="120px" height="100%">
  776.                                             <modelabel text="Colour"  NoClickResponse="true" width="1c" height="1c" valign="top" />
  777.                                             <ColourButtonTemplate name="lightcolour"/>
  778.                                         </VerticalGroup>
  779.                                        
  780.                                     </SubModeUI>
  781.  
  782.  
  783.                                     <!--<SubModeUI name="Point Cloud">
  784.                                         <component name="cmpAppModeCreatePoints" DebugLines="DrawingDebugLines" />
  785.                                     </SubModeUI>-->
  786.                                     <SubModeUI name="ParticleSystems">
  787.                                         <component name="cmpAppModePlaceInstances" DebugLines="3Dscene.system.DrawingDebugLines"  CoreComponentType="CMPTYPE_PARTICLESYSTEM" />
  788.                                         <component name="cmpHorizontalArranger" />
  789.                                         <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,8,0" width="120px" height="100%" margin="4,0,0,0">
  790.                                             <modelabel text="Instance:"  NoClickResponse="true" width="1.2c" height="1c" valign="top" />
  791.                                             <!--medieval_templates-->
  792.                                             <HierarchicalSceneListView name="ParticleListView"
  793.                                                  List::CCmpSceneGraphToIListAdapter.Node="ParticleEmitters"
  794.                                                  List::CmpListView.OnListSelection="Lights::cmpAppModePlaceInstances.OnInstanceSelectionChanged"
  795.                                                  width="120px" valign="EPF_TOP" List::CCmpSceneGraphToIListAdapter.Includemask="0x400" List::CCmpSceneGraphToIListAdapter.UnselectableMask="0" />
  796.                                         </VerticalGroup>
  797.                                         <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,8,0" width="120px" height="100%" margin="4,0,0,0">
  798.                                             <modelabel text="Draw mode:"  NoClickResponse="true" width="1c" height="1c" valign="top" />
  799.                                             <ListDropDownWithIcon name="DrawModeListView" List::cmpList.list="InstanceModeDrawList" List::CmpListView.OnListSelection="Instance::cmpAppModePlaceInstances.OnDrawModeChanged" width="120px" valign="EPF_TOP"/>
  800.                                         </VerticalGroup>
  801.                                         <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,4,0" margin="4,0,4,0" width="120px" height="100%">
  802.                                             <modelabel text="Spacing %:"  NoClickResponse="true" width="1c" height="1c" valign="top" />
  803.                                             <FloatPropertyEditor Slider::CCmpNumericSliderController.Value="100" Slider::CCmpNumericSliderController.Max="1000" Slider::CCmpNumericSliderController.OnValueChanged="Instance::cmpAppModePlaceInstances.SetSpacingValue"/>
  804.                                         </VerticalGroup>
  805.                                         <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,8,0" width="1C" height="100%" margin="4,0,0,0">                                          
  806.                                             <!--<component Colour="1,1,1,1" Glyph="button_up_data" name="cmpGlyphRenderer"/>-->
  807.                                             <!--<label text="Options:"  NoClickResponse="true" width="1c" height="1c" valign="top" />-->                                           
  808.                                             <CheckBox label::cmpLabel.text="Solid fill" button::cmpButton.OutputOnOffState="Instance::cmpAppModePlaceInstances.SetSolidFill" />
  809.                                             <CheckBox label::cmpLabel.text="Create generator  " button::cmpButton.OutputOnOffState="Instance::cmpAppModePlaceInstances.SetCreateGenerator"/>                                           
  810.                                         </VerticalGroup>                                                                           
  811.                                         <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,8,0" width="1C" height="100%" margin="4,0,0,0">                                          
  812.                                             <CheckBox label::cmpLabel.text="Align with direction  " button::cmpButton.OutputOnOffState="Instance::cmpAppModePlaceInstances.SetAlignWithDirection"/>
  813.                                             <CheckBox label::cmpLabel.text="Snap all instances  " button::cmpButton.OutputOnOffState="Instance::cmpAppModePlaceInstances.SetSnapAllInstances"/>
  814.                                         </VerticalGroup>
  815.                                         <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,8,0" width="1C" height="100%" margin="4,0,0,0">                                          
  816.                                             <modelabel text="Instance height mode:"  NoClickResponse="true" width="1c" height="1c" valign="top" />
  817.                                             <EnumPropertyEditor name ="heightmode" List::CmpEnumToIListAdapter.Type="EInstanceHeightMode" heightmode.List::CmpListView.OnListSelection="Select::cmpAppModePlaceInstances.OnInstanceHeightModeChanged" itemMargin="2, 2, 2, 2"/>
  818.                                
  819.                                         </VerticalGroup>
  820.                                     </SubModeUI>
  821.  
  822.                                     <SubModeUI name="Instance">
  823.                                         <component name="cmpAppModePlaceInstances" DebugLines="3Dscene.system.DrawingDebugLines" CoreComponentType="CMPTYPE_MESHINSTANCE" />
  824.                                         <component name="cmpHorizontalArranger" />
  825.                                         <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,8,0" width="120px" height="100%" margin="4,0,0,0">
  826.                                             <modelabel text="Instance:"  NoClickResponse="true" width="1c" height="1c" valign="top" />
  827.                                             <!--medieval_templates-->
  828.                                             <HierarchicalSceneListView name="InstanceListView"
  829.                                                  List::CCmpSceneGraphToIListAdapter.Node="instance_folder"
  830.                                                  List::CmpListView.OnListSelectionFinalised="Instance::cmpAppModePlaceInstances.OnInstanceSelectionChanged"
  831.                                                  width="120px" valign="EPF_TOP" List::CCmpSceneGraphToIListAdapter.IgnoreMask="0x8000" List::CCmpSceneGraphToIListAdapter.UnselectableMask="0x2000" />
  832.                                         </VerticalGroup>
  833.                                         <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,8,0" width="120px" height="100%" margin="4,0,0,0">
  834.                                             <modelabel text="Draw mode:"  NoClickResponse="true" width="1c" height="1c" valign="top" />
  835.                                             <ListDropDownWithIcon name="DrawModeListView" List::cmpList.list="InstanceModeDrawList" List::CmpListView.OnListSelection="Instance::cmpAppModePlaceInstances.OnDrawModeChanged" width="120px" valign="EPF_TOP"/>
  836.                                         </VerticalGroup>
  837.                                         <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,4,0" margin="4,0,4,0" width="120px" height="100%">
  838.                                             <modelabel text="Spacing %:"  NoClickResponse="true" width="1c" height="1c" valign="top" />
  839.                                             <FloatPropertyEditor Slider::CCmpNumericSliderController.Value="100" Slider::CCmpNumericSliderController.Max="1000" Slider::CCmpNumericSliderController.OnValueChanged="Instance::cmpAppModePlaceInstances.SetSpacingValue"/>
  840.                                         </VerticalGroup>
  841.                                         <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,8,0" width="1C" height="100%" margin="4,0,0,0">                                          
  842.                                             <!--<component Colour="1,1,1,1" Glyph="button_up_data" name="cmpGlyphRenderer"/>-->
  843.                                             <!--<label text="Options:"  NoClickResponse="true" width="1c" height="1c" valign="top" />-->                                           
  844.                                             <CheckBox label::cmpLabel.text="Solid fill" button::cmpButton.OutputOnOffState="Instance::cmpAppModePlaceInstances.SetSolidFill" />
  845.                                             <CheckBox label::cmpLabel.text="Create generator  " button::cmpButton.OutputOnOffState="Instance::cmpAppModePlaceInstances.SetCreateGenerator"/>                                           
  846.                                         </VerticalGroup>                                                                           
  847.                                         <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,8,0" width="1C" height="100%" margin="4,0,0,0">                                          
  848.  
  849.                                             <CheckBox label::cmpLabel.text="Align with direction  " button::cmpButton.OutputOnOffState="Instance::cmpAppModePlaceInstances.SetAlignWithDirection"/>
  850.                                             <CheckBox label::cmpLabel.text="Snap all instances  " button::cmpButton.OutputOnOffState="Instance::cmpAppModePlaceInstances.SetSnapAllInstances"/>
  851.                                         </VerticalGroup>
  852.                                         <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,8,0" width="1C" height="100%" margin="4,0,0,0">                                          
  853.                                             <modelabel text="Up Axis:"  NoClickResponse="true" width="1c" height="1c" valign="top" />
  854.                                             <EnumPropertyEditor width="60rem" name ="meshaxis" List::CmpEnumToIListAdapter.Type="EAxis" meshaxis.List::CmpListView.OnListSelection="Instance::cmpAppModePlaceInstances.OnInstanceUpAxisChanged" itemMargin="2, 2, 2, 2"/>
  855.                                         </VerticalGroup>
  856.                                         <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,8,0" width="1C" height="100%" margin="4,0,0,0">                                          
  857.                                             <modelabel text="Instance height mode:"  NoClickResponse="true" width="1c" height="1c" valign="top" />
  858.                                             <EnumPropertyEditor width="150rem" name ="heightmode" List::CmpEnumToIListAdapter.Type="EInstanceHeightMode" heightmode.List::CmpListView.OnListSelection="Instance::cmpAppModePlaceInstances.OnInstanceHeightModeChanged" itemMargin="2, 2, 2, 2"/>                               
  859.                                         </VerticalGroup>
  860.                                        
  861.                                        
  862.                                
  863.                                     </SubModeUI>
  864.  
  865.                                 </object>
  866.                             </topTabContents>
  867.  
  868.                             <topTabContents name="SculptModeControls" >
  869.                                 <component name="cmpHorizontalArranger" OnModeActivatedOutput="ClayworksApp::cmpClayworksApp.OnApplicationModeChanged"/>
  870.                                 <component name="cmpAppModeSculpt" OnModeActivatedOutput="ClayworksApp::cmpClayworksApp.OnApplicationModeChanged" DebugLines="DrawingDebugLines" BrushStrokeManager="BrushStrokeManager"/>
  871.                                 <VerticalGroup name="icon" width="1c" valign="EPF_CENTRE_Y" padding="4,0,4,0" margin="4,0,4,0">                            
  872.                                     <UISprite2 name="icon" glyph="iconSprites::cmpGridSpriteSheet.icons['paint']" valign="EPF_CENTRE_Y"/>
  873.                                     <modelabel text="Paint"  NoClickResponse="true" width="1c" height="1c" valign="top"/>
  874.                                 </VerticalGroup>
  875.                                 <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,4,0" margin="4,0,4,0" width="120px">
  876.                                     <modelabel text="Foreground:"  NoClickResponse="true" width="1c" height="1c" valign="top" />
  877.                                     <ColourButtonTemplate Colour="1,1,1,1" List::CmpListView.OnListSelection="::cmpAppModeSculpt.OnForegroundColourChanged"/>
  878.                                 </VerticalGroup>
  879.                                 <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,8,0" width="120px">
  880.                                     <modelabel text="Tool type:"  NoClickResponse="true" width="1c" height="1c" valign="top" />                                
  881.                                     <ListDropDownWithIcon List.List="BrushTypeList" List::CmpListView.OnListSelection="::cmpAppModeSculpt.OnBrushTypeChanged"/>
  882.                                 </VerticalGroup>
  883.                                 <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,8,0" width="120px">
  884.                                     <modelabel text="Brush tip shape:"  NoClickResponse="true" width="1c" height="1c" valign="top" />                                  
  885.                                     <ListDropDownWithIcon name="BrushShape" List.List="BrushShapeList" List::CmpListView.OnListSelection="::cmpAppModeSculpt.OnBrushShapeChanged" IconMaxPixelSize="20"/>
  886.                                 </VerticalGroup>
  887.                                 <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,8,0" width="120px">
  888.                                     <modelabel text="Blend Mode:"  NoClickResponse="true" width="1c" height="1c" valign="top" />                                   
  889.                                     <EnumPropertyEditor name="BlendMode" BlendMode.List::CmpEnumToIListAdapter.Type="EBlendMode" BlendMode.List::CmpListView.OnListSelection="::cmpAppModeSculpt.OnBlendModeChanged" />                                
  890.                                 </VerticalGroup>
  891.                                 <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,4,0" margin="4,0,4,0" width="120px">
  892.                                     <modelabel text="Pressure:"  NoClickResponse="true" width="1c" height="1c" valign="top" />
  893.                                     <FloatPropertyEditor value="100.0" min="0.001" max="100.0" Slider::CCmpNumericSliderController.OnValueChanged="::cmpAppModeSculpt.OnPressureChanged"/>
  894.                                 </VerticalGroup>
  895.                                 <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,4,0" margin="4,0,4,0" width="120px">
  896.                                     <modelabel text="Flow:"  NoClickResponse="true" width="1c" height="1c" valign="top" />
  897.                                     <FloatPropertyEditor value="100.0" min="0.001" max="100.0" Slider::CCmpNumericSliderController.OnValueChanged="::cmpAppModeSculpt.OnFlowChanged"/>
  898.                                 </VerticalGroup>
  899.                                 <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,4,0" margin="4,0,4,0" width="120px">
  900.                                     <modelabel text="Scale:"  NoClickResponse="true" width="1c" height="1c" valign="top" />
  901.                                     <FloatPropertyEditor value="1.0" min="0.001" max="100.0" Slider::CCmpNumericSliderController.OnValueChanged="::cmpAppModeSculpt.OnScaleChanged"/>
  902.                                 </VerticalGroup>
  903.                             </topTabContents>
  904.                            
  905.                             <topTabContents name="Paint"  OnModeActivatedOutput="ClayworksApp::cmpClayworksApp.OnApplicationModeChanged" DebugLines="DrawingDebugLines" BrushStrokeManager="BrushStrokeManager">
  906.                                 <component name="cmpHorizontalArranger" OnModeActivatedOutput="ClayworksApp::cmpClayworksApp.OnApplicationModeChanged"/>
  907.                                 <component name="cmpAppModePaint" />
  908.                                 <VerticalGroup width="1c" valign="EPF_CENTRE_Y" padding="4,0,4,0" margin="4,0,4,0">                            
  909.                                     <UISprite2 name="icon" glyph="iconSprites::cmpGridSpriteSheet.icons['paint']" valign="EPF_CENTRE_Y"/>
  910.                                     <modelabel text="Paint"  NoClickResponse="true" width="1c" height="1c" valign="top"/>
  911.                                 </VerticalGroup>
  912.  
  913.                                 <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,4,0" margin="4,0,4,0" width="120px">
  914.                                     <modelabel text="Foreground:"  NoClickResponse="true" width="1c" height="1c" valign="top" />
  915.                                     <ColourButtonTemplate Colour="1,1,1,1"/>
  916.                                 </VerticalGroup>
  917.                                 <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,8,0" width="120px">
  918.                                     <modelabel text="Tool type:"  NoClickResponse="true" width="1c" height="1c" valign="top" />
  919.                                     <ListDropDownWithIcon List.List="BrushTypeList"/>
  920.                                 </VerticalGroup>
  921.                                 <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,8,0" width="120px">
  922.                                     <modelabel text="Brush tip shape:"  NoClickResponse="true" width="1c" height="1c" valign="top"/>
  923.                                     <ListDropDownWithIcon List.List="BrushShapeList" IconMaxPixelSize="20"/>
  924.                                 </VerticalGroup>
  925.                                 <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,4,0" margin="4,0,4,0" width="120px">
  926.                                     <modelabel text="Pressure:"  NoClickResponse="true" width="1c" height="1c" valign="top" value="1.0"/>
  927.                                     <FloatPropertyEditor min="0" max="100.0" value="100.0"/>
  928.                                 </VerticalGroup>
  929.                                 <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,4,0" margin="4,0,4,0" width="120px">
  930.                                     <modelabel text="Flow:"  NoClickResponse="true" width="1c" height="1c" valign="top" value="1.0"/>
  931.                                     <FloatPropertyEditor min="0" max="100.0" value="100.0"/>
  932.                                 </VerticalGroup>
  933.                                 <VerticalGroup valign="EPF_CENTRE_Y" padding="4,0,4,0" margin="4,0,4,0" width="120px">
  934.                                     <modelabel text="Scale:"  NoClickResponse="true" width="1c" height="1c" valign="top" value="1.0"/>
  935.                                     <FloatPropertyEditor min="0" max="100.0" value="1.0"/>
  936.                                 </VerticalGroup>
  937.                             </topTabContents>
  938.                             <topTabContents name="GUI" >
  939.                                 <component name="cmpHorizontalArranger" OnModeActivatedOutput="ClayworksApp::cmpClayworksApp.OnApplicationModeChanged"/>
  940.                                 <component name="cmpAppModeGUI" />
  941.                                 <VerticalGroup width="1c" valign="EPF_CENTRE_Y" padding="4,0,4,0" margin="4,0,4,0">                            
  942.                                     <UISprite2 name="icon" glyph="iconSprites::cmpGridSpriteSheet.icons['GUI']" valign="EPF_CENTRE_Y"/>
  943.                                     <modelabel text="GUI"  NoClickResponse="true" width="1c" height="1c" valign="top"/>                                
  944.                                 </VerticalGroup>
  945.                                 <VerticalGroup>
  946.                                     <IconBar list="GUIModeList" IconSpacing="3" IconOffset="0,0" OnListSelection="GUI::cmpAppModeGUI.OnModeChange"/>
  947.                                 </VerticalGroup>
  948.                             </topTabContents>
  949.                             <topTabContents name="Logic" >
  950.                                 <component name="cmpHorizontalArranger" OnModeActivatedOutput="ClayworksApp::cmpClayworksApp.OnApplicationModeChanged"/>
  951.                                 <component name="cmpAppModeLogic" />
  952.                                 <VerticalGroup width="1c" valign="EPF_CENTRE_Y" padding="4,0,4,0" margin="4,0,4,0">                            
  953.                                     <UISprite2 name="icon" glyph="iconSprites::cmpGridSpriteSheet.icons['Logic']" valign="EPF_CENTRE_Y"/>
  954.                                     <modelabel text="Logic"  NoClickResponse="true" width="1c" height="1c" valign="top"/>
  955.                                 </VerticalGroup>
  956.                                 <VerticalGroup>
  957.                                 </VerticalGroup>
  958.                             </topTabContents>
  959.                         </object>                      
  960.                         <!-- setting the background to 'editor_background3D' in the perspective view causes many drawblocks to be created - investigate further, might get to the bottom of other drawblock issues (i.e. the occasional editor flickering and the issues with glyphs over views)-->
  961.                        
  962.                         <!--<HorizontalGroup  name="TopViewRow" PosY="0px" width="100%" height="50%" transparent="true">
  963.                             <EditView3D  name="TopLeftView" Camera="cameras.orthofront"
  964.                             Scene="3Dscene" width="50%" TopTarget="TopViewRow" BottomTarget="TopViewRow"
  965.                             padding="5,5,5,5" OnViewSelected="ClayworksApp::cmpClayworksApp.SelectView"
  966.                             SetRotationCentre="Cursor::cmpCursor.OnPositionChanged"
  967.                             showdebuglines="true" damping="0.25"  />
  968.                             <EditView3D  name="TopRightView" Camera="cameras.orthoright" Scene="3Dscene"
  969.                                 width="50%" TopTarget="TopViewRow" BottomTarget="TopViewRow" rightTarget="EditorPropertyPanel"
  970.                                 padding="5,5,5,5" OnViewSelected="ClayworksApp::cmpClayworksApp.SelectView"
  971.                                 SetRotationCentre="Cursor::cmpCursor.OnPositionChanged"
  972.                                 showdebuglines="true" damping="0.25" />
  973.                         </HorizontalGroup>
  974.                         <HorizontalGroup  name="BottomViewRow" PosY="0px" width="100%" height="50%"  transparent="true">
  975.                             <EditView3D  name="BottomLeftView" Camera="cameras.orthotop"
  976.                                 Scene="3Dscene" width="50%" TopTarget="BottomViewRow" BottomTarget="BottomViewRow"
  977.                                 padding="5,5,5,5" OnViewSelected="ClayworksApp::cmpClayworksApp.SelectView"
  978.                                 SetRotationCentre="Cursor::cmpCursor.OnPositionChanged"
  979.                                 showdebuglines="true" damping="0.25" />
  980.  
  981.                             <EditView3D  name="PerspectiveView" Camera="cameras.Perspective" Scene="3Dscene" width="50%"
  982.                                 TopTarget="BottomViewRow" BottomTarget="BottomViewRow" rightTarget="EditorPropertyPanel"
  983.                                 padding="5,5,5,5" OnViewSelected="ClayworksApp::cmpClayworksApp.SelectView"
  984.                                 SetRotationCentre="Cursor::cmpCursor.OnPositionChanged"
  985.                                 Glyph="editor_background" showdebuglines="true" damping="0.25" />
  986.                         </HorizontalGroup>-->
  987.                         <!--<component name="cmpStyle" colour="#FFFFFFFF"/>-->
  988.                        
  989.                         <EditView3D name="PerspectiveView" Camera="cameras.Perspective" Scene="3Dscene" width="100%" TopTarget="BottomViewRow"
  990.                             BottomTarget="BottomViewRow"
  991.                             rightTarget="EditorPropertyPanel"
  992.                             padding="5,5,5,5"
  993.                             SetRotationCentre="Cursor::cmpCursor.OnPositionChanged"
  994.                             OnViewSelected="ClayworksApp::cmpClayworksApp.SelectView" damping="0.25" MaterialDefines="SHOW_SELECTION, TONE_MAPPING"
  995.                             >                                              
  996.                         </EditView3D>
  997.  
  998.                         <!--<component name="cmpKeyboardMapper"/>
  999.                             <component name="cmpKeyboardMapperKey" KeyCode='G' OnKeyPress="ClayworksApp::cmpClayworksApp.ContextTranslate"/>
  1000.                             <component name="cmpKeyboardMapperKey" KeyCode='E' OnKeyPress="ClayworksApp::cmpClayworksApp.ContextExtrude"/>
  1001.                             <component name="cmpKeyboardMapperKey" KeyCode='R' OnKeyPress="ClayworksApp::cmpClayworksApp.ContextRotate"/>-->
  1002.                         <HorizontalGroup name="animation" height="40px" width="100%" padding="3,3,3,3">
  1003.                             <component name="cmpStyle" colour="#000000FF" font="arial8"/>
  1004.                             <component name="cmpGlyphRenderer" glyph="borderless_bg" />
  1005.                             <!--n.b. if this is not here, objects that are drawn after the 3D view (which currently kind of breaks the whole renderbuffer system a bit, like a nail in an otherwise smooth and polished piece of wood)
  1006.                             adding a render buffer here gives the buttons something to bite in to. Must see about solving the problem of nested views.
  1007.                         -->
  1008.                             <component  name="CmpRenderBuffer" vertexBufferCapacity="164" indexBufferCapacity="164 " Persistent="true"  />
  1009.                    
  1010.                             <IconToggleButton name="rewindbutton" icon.Width="1.0c" icon.height="1.0c" icon.glyph="iconSprites::cmpGridSpriteSheet.icons[16]" OnPressed="ClayworksApp::cmpClayworksApp.OnRewind" />
  1011.                             <IconToggleButton name="playbutton" icon.Width="1.0c"   icon.height="1.0c" icon.glyph="iconSprites::cmpGridSpriteSheet.icons['play']" OnPressed="ClayworksApp::cmpClayworksApp.OnPlay" />
  1012.                             <IconToggleButton name="ffwdbutton" icon.Width="1.0c"   icon.height="1.0c" icon.glyph="iconSprites::cmpGridSpriteSheet.icons[18]" OnPressed="ClayworksApp::cmpClayworksApp.OnFastForward" />
  1013.                             <IconToggleButton name="stopbutton" icon.Width="1.0c"   icon.height="1.0c" icon.glyph="iconSprites::cmpGridSpriteSheet.icons[19]" OnPressed="ClayworksApp::cmpClayworksApp.OnPause" />
  1014.                             <IconToggleButton name="recordbutton" icon.Width="1.0c"   icon.height="1.0c" icon.glyph="iconSprites::cmpGridSpriteSheet.icons[20]" OnPressed="ClayworksApp::cmpClayworksApp.OnRecord" />
  1015.                         </HorizontalGroup>
  1016.                     </VerticalGroup>
  1017.                 </object>
  1018.                 <object  name="EditorPropertyPanel" object_src="EditorPropertyPanel.xml" />
  1019.             </HorizontalGroup>
  1020.        
  1021.             <object  name="popuptarget">
  1022.                 <component name="cmpPopupController" />
  1023.                 <component  name="cmpInputMessageDispatcher"/>             
  1024.                 <!--Repo on weird, ongoing drawbuffer errors: remove this and it becomes very odd (flickering & texture slot issues)
  1025.                 make it persistent and it doesn't always update at the right time -->
  1026.                 <component  name="CmpRenderBuffer" vertexBufferCapacity="1024" indexBufferCapacity="1024" Persistent="false"/> <!-- -->
  1027.                 <component  name="cmpUIBase" width="100%" height="100%" IsPopupTarget="true" transparent="true "/>
  1028.  
  1029.                 <VerticalGroup name="icons" width="100%" height="100%" transparent="true" visible="false">
  1030.                    
  1031.                     <component  name="CmpRenderBuffer" vertexBufferCapacity="164" indexBufferCapacity="164 " Persistent="true"  />
  1032.                     <UIViewSpriteDrag name="miniShadowmapOverlay" posX="5px" posY="80px" width="0.2C" height="0.2C" material="shadowMapmat" FlipY="true" NoClickResponse="false" margin="0,0,0,10"/>
  1033.                     <UIViewSpriteDrag name="texturePreview" posX="0px" posY="50px" width="1C" height="1C" material="PropertyManagerTexturePreviewMaterial" FlipY="true" NoClickResponse="false" margin="0,0,0,10" visible="false"/>
  1034.                     <UIViewMaterialSpriteDrag name="softwareMapPreview" margin="3,3,3,3" posX="0px" width="256px" height="1AR"  DiffuseTextureSampler="softwareBuffer" FlipY="true" DiffuseTextureSampler_MaxFilter="ETGL_MAG_NEAREST" DiffuseTextureSampler_MinFilter="ETGL_NEAREST" Width="256px" />
  1035.                        
  1036.                 </VerticalGroup>
  1037.  
  1038.                 <object name="DebugLines2D">
  1039.                     <component name="cmpDebugLines" material="wireframe_nonudge" renderLayer="10" clearAfterFrame="false"/>
  1040.                 </object>
  1041.  
  1042.                 <object name="DebugLinesGUIInspector">
  1043.                     <component name="cmpDebugLines" material="wireframe_nonudge" renderLayer="11" clearAfterFrame="false"/>
  1044.                 </object>
  1045.  
  1046.  
  1047.                 <object name="SubMenu" visible="false">
  1048.                     <component  name="CmpRenderBuffer" vertexBufferCapacity="512" indexBufferCapacity="512"  />                    
  1049.                     <component Colour="1,1,1,1" Glyph="drop_shadow_box_data" name="cmpGlyphRenderer" Bounds="2,2,7,7" UseBoundsToExpandUIBounds="true" RenderLayer="0"/>
  1050.                     <component Colour="1,1,1,1" Glyph="button_up_data" name="cmpGlyphRenderer"/>
  1051.                     <component name="cmpStyle" font="arial8" fontSize="8pt"/>
  1052.                     <component name="cmpListView" Height="1C" HideSelectionWhenUnfocused="True" ShowAsTree="False" DragMode="false" ItemMargin="3,2,10,2" PadChildItems="False" Padding="3,3,3,3" PosX="0" PosY="0" SelectionGlyph="select_rect_data" Width="1C" font="Arial6" OnListSelectionFinalised="ClayworksApp::cmpClayworksApp.OnMainMenuSelection"
  1053.                     RightHandSubmenuGlyph="smallRightArrow" clipMode="ECM_NONE"/>
  1054.                     <component name="cmpMenuController" SubListView="Submenu2"/>               
  1055.                 </object>
  1056.                 <object name="SubMenu2" visible="false">
  1057.                     <component  name="CmpRenderBuffer" vertexBufferCapacity="512" indexBufferCapacity="512"  />
  1058.                     <component Colour="1,1,1,1" Glyph="drop_shadow_box_data" name="cmpGlyphRenderer" Bounds="2,2,7,7" UseBoundsToExpandUIBounds="true" RenderLayer="0"/>
  1059.                     <component Colour="1,1,1,1" Glyph="button_up_data" name="cmpGlyphRenderer"/>
  1060.                     <component name="cmpStyle" font="arial8" fontSize="8pt"/>
  1061.                     <component name="cmpListView" Height="1C" HideSelectionWhenUnfocused="True" ShowAsTree="False" ItemMargin="3,2,10,2" PadChildItems="False" Padding="3,3,3,3" PosX="0" PosY="0" SelectionGlyph="select_rect_data" DragMode="false" Width="1C" font="Arial6" OnListSelectionFinalised="ClayworksApp::cmpClayworksApp.OnMainMenuSelection"
  1062.                     RightHandSubmenuGlyph="smallRightArrow" clipMode="ECM_NONE"/>
  1063.                     <component name="cmpMenuController" SubListView="SubMenu3" />
  1064.                 </object>      
  1065.                 <object name="SubMenu3" visible="false">
  1066.                     <component  name="CmpRenderBuffer" vertexBufferCapacity="512" indexBufferCapacity="512"  />
  1067.                     <component Colour="1,1,1,1" Glyph="drop_shadow_box_data" name="cmpGlyphRenderer" Bounds="2,2,7,7" UseBoundsToExpandUIBounds="true" RenderLayer="0"/>
  1068.                     <component Colour="1,1,1,1" Glyph="button_up_data" name="cmpGlyphRenderer"/>
  1069.                     <component name="cmpStyle" font="arial8" fontSize="8pt"/>
  1070.                     <component name="cmpListView" Height="1C" HideSelectionWhenUnfocused="True" ShowAsTree="False" ItemMargin="3,2,10,2" PadChildItems="False" Padding="3,3,3,3" PosX="0" PosY="0" SelectionGlyph="select_rect_data" DragMode="false" Width="1C" font="Arial6" OnListSelectionFinalised="ClayworksApp::cmpClayworksApp.OnMainMenuSelection"
  1071.                     RightHandSubmenuGlyph="smallRightArrow" clipMode="ECM_NONE"/>
  1072.                     <component name="cmpMenuController" />
  1073.                 </object>
  1074.  
  1075.                 <object name="PopupListView" visible="false">
  1076.                     <component  name="CmpRenderBuffer" vertexBufferCapacity="512" indexBufferCapacity="512" />
  1077.                     <component Colour="1,1,1,1" Glyph="drop_shadow_box_data" name="cmpGlyphRenderer" Bounds="2,2,7,7" UseBoundsToExpandUIBounds="true" RenderLayer="0"/>
  1078.                     <component Colour="1,1,1,1" Glyph="button_up_data" name="cmpGlyphRenderer"/>
  1079.                     <component name="cmpStyle" font="arial8" fontSize="8pt"/>
  1080.                     <component name="cmpListView" Height="1C" HideSelectionWhenUnfocused="True" ShowAsTree="False" ItemMargin="3,3,10,8" PadChildItems="False" Padding="23,5,5,5" PosX="0" PosY="0" SelectionGlyph="select_rect_data" DragMode="false" Width="1C" font="Arial6" OnListSelectionFinalised="ClayworksApp::cmpClayworksApp.OnMainMenuSelection"
  1081.                     list="PopupList" RightHandSubmenuGlyph="smallRightArrow"  clipMode="ECM_NONE"/>
  1082.                     <component name="cmpMenuController" TopListIsPopable="true"/>
  1083.                 </object>
  1084.            
  1085.                 <object name="HelpDialog" visible="false">
  1086.                     <component  name="CmpRenderBuffer" vertexBufferCapacity="512" indexBufferCapacity="512" />
  1087.                     <component name="cmpUIBase" width="40%" height="80%"  HAlign="EPF_CENTRE_X" VAlign="EPF_CENTRE_Y" padding="4,4,4,4"/>
  1088.                     <component name="cmpGlyphRenderer" Colour="1,1,1,1" Glyph="button_up_data"/>
  1089.                     <component  name="cmpInputMessageDispatcher "/>            
  1090.  
  1091.                     <VerticalGroup width="100%" height="100%" margin="4,4,4,4">
  1092.                         <LabelBackground name="bodyText" margin="0,0,0,0" padding="4,4,4,4" width="100%" height="100%" valign="EPF_TOP" TextVAlign="EPF_TOP" ClipMode="ECM_OUTER_BOUNDS"
  1093. text="Controls:
  1094.     Ctrl - Zoom
  1095.     Shift - Pan
  1096.     Ctrl + shift - Rotate
  1097. Create Mode:
  1098.     Alt - Rotate instance
  1099. Command line switches:
  1100.     -triangle_test
  1101.     -console
  1102.     -non_material_triangle_test
  1103.     -cube_test
  1104.     -verbosityLevel N
  1105.     -devmode
  1106.     -releaseMode
  1107.     -windowSize
  1108.     -USING_RGB_SHADOWMAP
  1109.     -GL_CHECK_ERRORS
  1110.     -PROCESS_EACH_FRAME
  1111.     -VERBOSE_DRAWCALL_TAGGING
  1112.     -console
  1113.     -useLogFile"/>
  1114.                 <TextPushButton width="1.5C" height="1.5C" name="OK" text="OK" Margin="0,4,0,0" ClipMode="ECM_OUTER_BOUNDS" OnPressed="HelpDialog::cmpUIBase.deactivateAndHide"/>
  1115.                     </VerticalGroup>
  1116.                 </object>
  1117.  
  1118.                
  1119.                 <object name="DebugLines2D">
  1120.                     <component name="cmpDebugLines" material="wireframe_nonudge" renderLayer="10" clearAfterFrame="false"/>
  1121.                 </object>
  1122.  
  1123.                 <object name="DebugLinesGUIInspector">
  1124.                     <component name="cmpDebugLines" material="wireframe_nonudge" renderLayer="11" clearAfterFrame="false"/>
  1125.                 </object>
  1126.  
  1127.                 <!--<UITextureSprite DiffuseTextureSampler="checker_1k" >
  1128.                     <component name="cmpDragBehaviour" RestrictToParent="false"/>
  1129.                 </UITextureSprite>-->d:
  1130.  
  1131.                 <object name="MouseCursor" visible="false">
  1132.                     <component Glyph="arrow" bounds="0,0,32,32" name="cmpGlyphRenderer"/>
  1133.                 </object>
  1134.  
  1135.             </object>
  1136.             <object name="mouseCaptureOverlay">            
  1137.                 <component name="cmpMouseEventTrigger" LeftButtonPointClicked="ClayworksApp::cmpClayworksApp.CloseContextMenu" RightButtonPointClicked="ClayworksApp::cmpClayworksApp.OpenContextMenu" ExcludeFromTopLevel="False" ForceTopLevel="False" ConsumeEvents="False"/>
  1138.                 <component  name="cmpUIBase" width="100%" height="100%" IsPopupTarget="false" transparent="true "/>
  1139.             </object>
  1140.         </scene>
  1141.         <!-- root of all drawing -->
  1142.  
  1143.         <camera  name="UIcamera" position="0,0,0" rotationorder="YZX" ProjectionMode="CAM_PIXEL_SCALE_YORIGIN_TOP_ORTHOGRAPHIC" width="100%" height="100%" clearColour="#FF1D2044" clear="true" drawOrder="2" UseViewBoundsForViewPort="false" forceTopLevel="true" mNear="-10000" mFar="10000" scene="Editor" SearchForSceneIfNotSpecified="false" Is3D="false"
  1144.             ColourBuffer0ClearMode="Clear"
  1145.             DepthBuffer0ClearMode="Clear"
  1146.  
  1147.             />
  1148.  
  1149.     </object>
  1150. </cws>
  1151.  
RAW Paste Data