Re #752 (CEGUIDemo) Car selection menu done + reworked scrollbars look + reduced image files size

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@5097 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 990afdfbd15b44ae2cbce460f417ee7de368eeeb
Former-commit-id: da4288eac4f235b930cef1ca22077ea942d3b8ee
This commit is contained in:
pouillot 2013-01-13 17:56:17 +00:00
parent c0b40bba48
commit 623fe48cae
27 changed files with 483 additions and 446 deletions

View file

@ -57,48 +57,47 @@
<Image Height="16" Name="SpinnerUpHover" Width="14" XPos="81" YPos="227" />
<Image Height="16" Name="SpinnerUpPushed" Width="14" XPos="97" YPos="227" />
<Image Height="16" Name="TextSelectionBrush" Width="16" XPos="234" YPos="238" />
<Image Height="8" Name="VertScrollTop" Width="20" XPos="182" YPos="2" />
<Image Height="8" Name="VertScrollMiddle" Width="20" XPos="182" YPos="12" />
<Image Height="8" Name="VertScrollBottom" Width="20" XPos="182" YPos="22" />
<Image Height="10" Name="VertScrollBarSegment" Width="4" XPos="206" YPos="2" />
<Image Height="24" Name="VertScrollThumbNormal" Width="8" XPos="214" YPos="2" />
<Image Height="24" Name="VertScrollThumbHover" Width="8" XPos="224" YPos="2" />
<Image Height="12" Name="VertScrollUpNormal" Width="12" XPos="196" YPos="32" />
<Image Height="12" Name="VertScrollDownNormal" Width="12" XPos="182" YPos="32" />
<Image Height="12" Name="VertScrollUpHover" Width="12" XPos="196" YPos="46" />
<Image Height="12" Name="VertScrollDownHover" Width="12" XPos="182" YPos="46" />
<Image Height="10" Name="MiniVertScrollBarSegment" Width="4" XPos="207" YPos="60" />
<Image Height="22" Name="MiniVertScrollThumbNormal" Width="7" XPos="214" YPos="59" />
<Image Height="5" Name="MiniVertScrollThumbTopNormal" Width="7" XPos="214" YPos="59" />
<Image Height="5" Name="MiniVertScrollThumbMiddleNormal" Width="7" XPos="214" YPos="65" />
<Image Height="5" Name="MiniVertScrollThumbBottomNormal" Width="7" XPos="214" YPos="76" />
<Image Height="5" Name="MiniVertScrollThumbTopHover" Width="7" XPos="223" YPos="59" />
<Image Height="5" Name="MiniVertScrollThumbMiddleHover" Width="7" XPos="223" YPos="65" />
<Image Height="5" Name="MiniVertScrollThumbBottomHover" Width="7" XPos="223" YPos="76" />
<Image Height="22" Name="MiniVertScrollThumbHover" Width="7" XPos="223" YPos="59" />
<Image Height="9" Name="MiniVertScrollUpNormal" Width="10" XPos="194" YPos="60" />
<Image Height="9" Name="MiniVertScrollDownNormal" Width="10" XPos="182" YPos="59" />
<Image Height="9" Name="MiniVertScrollUpHover" Width="10" XPos="194" YPos="70" />
<Image Height="9" Name="MiniVertScrollDownHover" Width="10" XPos="182" YPos="69" />
<Image Height="40" Name="VertScrollBarSegment" Width="2" XPos="158" YPos="313" />
<Image Height="10" Name="VertScrollThumbTopNormal" Width="16" XPos="140" YPos="313" />
<Image Height="20" Name="VertScrollThumbMiddleNormal" Width="16" XPos="140" YPos="323" />
<Image Height="10" Name="VertScrollThumbBottomNormal" Width="16" XPos="140" YPos="343" />
<Image Height="10" Name="VertScrollThumbTopHover" Width="16" XPos="104" YPos="313" />
<Image Height="20" Name="VertScrollThumbMiddleHover" Width="16" XPos="104" YPos="323" />
<Image Height="10" Name="VertScrollThumbBottomHover" Width="16" XPos="104" YPos="343" />
<Image Height="10" Name="VertScrollThumbTopPushed" Width="16" XPos="122" YPos="313" />
<Image Height="20" Name="VertScrollThumbMiddlePushed" Width="16" XPos="122" YPos="323" />
<Image Height="10" Name="VertScrollThumbBottomPushed" Width="16" XPos="122" YPos="343" />
<Image Height="16" Name="VertScrollDownNormal" Width="14" XPos="1" YPos="227" />
<Image Height="16" Name="VertScrollDownHover" Width="14" XPos="17" YPos="227" />
<Image Height="16" Name="VertScrollDownPushed" Width="14" XPos="33" YPos="227" />
<Image Height="16" Name="VertScrollUpNormal" Width="14" XPos="65" YPos="227" />
<Image Height="16" Name="VertScrollUpHover" Width="14" XPos="81" YPos="227" />
<Image Height="16" Name="VertScrollUpPushed" Width="14" XPos="97" YPos="227" />
<Image Height="2" Name="HorzScrollBarSegment" Width="40" XPos="162" YPos="367" />
<Image Height="16" Name="HorzScrollThumbLeftNormal" Width="10" XPos="162" YPos="349" />
<Image Height="16" Name="HorzScrollThumbMiddleNormal" Width="20" XPos="172" YPos="349" />
<Image Height="16" Name="HorzScrollThumbRightNormal" Width="10" XPos="192" YPos="349" />
<Image Height="16" Name="HorzScrollThumbLeftHover" Width="10" XPos="162" YPos="313" />
<Image Height="16" Name="HorzScrollThumbMiddleHover" Width="20" XPos="172" YPos="313" />
<Image Height="16" Name="HorzScrollThumbRightHover" Width="10" XPos="192" YPos="313" />
<Image Height="16" Name="HorzScrollThumbLeftPushed" Width="10" XPos="162" YPos="331" />
<Image Height="16" Name="HorzScrollThumbMiddlePushed" Width="20" XPos="172" YPos="331" />
<Image Height="16" Name="HorzScrollThumbRightPushed" Width="10" XPos="192" YPos="331" />
<Image Height="12" Name="HorzScrollLeftNormal" Width="14" XPos="236" YPos="258" />
<Image Height="12" Name="HorzScrollLeftHover" Width="14" XPos="236" YPos="274" />
<Image Height="12" Name="HorzScrollLeftPushed" Width="14" XPos="236" YPos="290" />
<Image Height="12" Name="HorzScrollRightNormal" Width="14" XPos="236" YPos="322" />
<Image Height="12" Name="HorzScrollRightHover" Width="14" XPos="236" YPos="338" />
<Image Height="12" Name="HorzScrollRightPushed" Width="14" XPos="236" YPos="354" />
<Image Height="48" Name="VertSliderBody" Width="9" XPos="223" YPos="219" />
<Image Height="6" Name="VertSliderThumbNormal" Width="15" XPos="217" YPos="268" />
<Image Height="6" Name="VertSliderThumbHover" Width="15" XPos="217" YPos="276" />
<Image Height="9" Name="HorizSliderBody" Width="48" XPos="57" YPos="301" />
<Image Height="15" Name="HorizSliderThumbNormal" Width="6" XPos="50" YPos="295" />
<Image Height="15" Name="HorizSliderThumbHover" Width="6" XPos="42" YPos="295" />
<Image Height="4" Name="MiniHorzScrollBarSegment" Width="10" XPos="244" YPos="80" />
<Image Height="7" Name="MiniHorzScrollThumbNormal" Width="22" XPos="233" YPos="87" />
<Image Height="7" Name="MiniHorzScrollThumbLeftNormal" Width="5" XPos="233" YPos="87" />
<Image Height="7" Name="MiniHorzScrollThumbMiddleNormal" Width="5" XPos="239" YPos="87" />
<Image Height="7" Name="MiniHorzScrollThumbRightNormal" Width="5" XPos="250" YPos="87" />
<Image Height="7" Name="MiniHorzScrollThumbHover" Width="22" XPos="233" YPos="96" />
<Image Height="7" Name="MiniHorzScrollThumbLeftHover" Width="5" XPos="233" YPos="96" />
<Image Height="7" Name="MiniHorzScrollThumbMiddleHover" Width="5" XPos="239" YPos="96" />
<Image Height="7" Name="MiniHorzScrollThumbRightHover" Width="5" XPos="250" YPos="96" />
<Image Height="10" Name="MiniHorzScrollLeftNormal" Width="9" XPos="246" YPos="55" />
<Image Height="10" Name="MiniHorzScrollRightNormal" Width="9" XPos="245" YPos="67" />
<Image Height="10" Name="MiniHorzScrollLeftHover" Width="9" XPos="236" YPos="55" />
<Image Height="10" Name="MiniHorzScrollRightHover" Width="9" XPos="235" YPos="67" />
<Image Height="6" Name="ListboxLeft" Width="7" XPos="41" YPos="89" />
<Image Height="6" Name="ListboxRight" Width="7" XPos="62" YPos="89" />
<Image Height="7" Name="ListboxTop" Width="6" XPos="52" YPos="78" />
@ -243,6 +242,7 @@
<Image Height="5" Name="PopupMenuArrowLeft" Width="5" XPos="179" YPos="210" />
<Image Height="11" Name="TreeListClosed" Width="7" XPos="175" YPos="111" />
<Image Height="7" Name="TreeListOpened" Width="11" XPos="164" YPos="111" />
<Image Height="16" Name="TreeSelectionBrush" Width="16" XPos="234" YPos="238" />
<Image Height="16" Name="MainButtonNormal" Width="128" XPos="1" YPos="244" />
<Image Height="16" Name="MainButtonPushed" Width="128" XPos="1" YPos="261" />
<Image Height="16" Name="MainButtonHighlight" Width="128" XPos="1" YPos="278" />
@ -255,4 +255,8 @@
<Image Height="16" Name="ArrowUpHighlight" Width="14" XPos="81" YPos="227" />
<Image Height="16" Name="ArrowUpPushed" Width="14" XPos="97" YPos="227" />
<Image Height="16" Name="ArrowUpDisabled" Width="14" XPos="113" YPos="227" />
<Image Height="16" Name="HorizontalVUMeterLeft" Width="8" XPos="107" YPos="295" />
<Image Height="16" Name="HorizontalVUMeterMiddle" Width="20" XPos="113" YPos="295" />
<Image Height="16" Name="HorizontalVUMeterRight" Width="8" XPos="135" YPos="295" />
<Image Height="16" Name="HorizontalVUMeterLitSegment" Width="64" XPos="145" YPos="295" />
</Imageset>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 135 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 166 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 187 KiB

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 209 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 170 KiB

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 158 KiB

After

Width:  |  Height:  |  Size: 31 KiB

View file

@ -9,9 +9,9 @@
<Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{0.3,0},{0.25,0}}" />
<Property Name="Image" Value="set:Logo image:everything" />
<Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
<Property Name="Tooltip" Value="What a nice logo !" />
<Property Name="FrameEnabled" Value="False" />
<Property Name="BackgroundEnabled" Value="False" />
<Property Name="Tooltip" Value="What a nice logo !" />
</Window>
<Window Name="MenuCarSelect/TxtTitle" Type="CEGUIDemo/PageTitle">
<Property Name="UnifiedAreaRect" Value="{{0.22,0},{0.1,0},{0.92,0},{0.2,0}}" />
@ -20,30 +20,6 @@
<Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
<Property Name="Tooltip" Value="Yeah, this is the title of the menu !" />
<Property Name="FrameEnabled" Value="False" />
<AutoWindow NameSuffix="__auto_hscrollbar__">
<Property Name="Tooltip" Value="Yeah, this is the title of the menu !" />
<AutoWindow NameSuffix="__auto_incbtn__">
<Property Name="Tooltip" Value="Yeah, this is the title of the menu !" />
</AutoWindow>
<AutoWindow NameSuffix="__auto_decbtn__">
<Property Name="Tooltip" Value="Yeah, this is the title of the menu !" />
</AutoWindow>
<AutoWindow NameSuffix="__auto_thumb__">
<Property Name="Tooltip" Value="Yeah, this is the title of the menu !" />
</AutoWindow>
</AutoWindow>
<AutoWindow NameSuffix="__auto_vscrollbar__">
<Property Name="Tooltip" Value="Yeah, this is the title of the menu !" />
<AutoWindow NameSuffix="__auto_incbtn__">
<Property Name="Tooltip" Value="Yeah, this is the title of the menu !" />
</AutoWindow>
<AutoWindow NameSuffix="__auto_decbtn__">
<Property Name="Tooltip" Value="Yeah, this is the title of the menu !" />
</AutoWindow>
<AutoWindow NameSuffix="__auto_thumb__">
<Property Name="Tooltip" Value="Yeah, this is the title of the menu !" />
</AutoWindow>
</AutoWindow>
</Window>
<Window Name="MenuCarSelect/TxtFrameRate" Type="CEGUIDemo/StaticText">
<Property Name="UnifiedAreaRect" Value="{{0.95,0},{0.01,0},{0.99,0},{0.04,0}}" />
@ -56,31 +32,7 @@
<Property Name="HorzFormatting" Value="RightAligned" />
<Property Name="VertFormatting" Value="TopAligned" />
<Property Name="BackgroundEnabled" Value="False" />
<AutoWindow NameSuffix="__auto_hscrollbar__">
<Property Name="Tooltip" Value="Frame rate (F/s)" />
<AutoWindow NameSuffix="__auto_incbtn__">
<Property Name="Tooltip" Value="Frame rate (F/s)" />
</AutoWindow>
<AutoWindow NameSuffix="__auto_decbtn__">
<Property Name="Tooltip" Value="Frame rate (F/s)" />
</AutoWindow>
<AutoWindow NameSuffix="__auto_thumb__">
<Property Name="Tooltip" Value="Frame rate (F/s)" />
</AutoWindow>
</AutoWindow>
<AutoWindow NameSuffix="__auto_vscrollbar__">
<Property Name="Tooltip" Value="Frame rate (F/s)" />
<AutoWindow NameSuffix="__auto_incbtn__">
<Property Name="Tooltip" Value="Frame rate (F/s)" />
</AutoWindow>
<AutoWindow NameSuffix="__auto_decbtn__">
<Property Name="Tooltip" Value="Frame rate (F/s)" />
</AutoWindow>
<AutoWindow NameSuffix="__auto_thumb__">
<Property Name="Tooltip" Value="Frame rate (F/s)" />
</AutoWindow>
</AutoWindow>
</Window>
</Window>
<Window Name="MenuCarSelect/BtnCredits" Type="CEGUIDemo/Button">
<Property Name="UnifiedAreaRect" Value="{{0.3,0},{0,0},{0.43,0},{0.05,0}}" />
<Property Name="Font" Value="MenuMedium" />
@ -117,5 +69,54 @@
<Property Name="Text" Value="Start" />
<Property Name="Tooltip" Value="Start the race" />
</Window>
<Window Name="MenuCarSelect/LblTopSpeed" Type="CEGUIDemo/StaticText">
<Property Name="UnifiedAreaRect" Value="{{0.47,0},{0.25,0},{0.60,0},{0.30,0}}" />
<Property Name="Font" Value="MenuMedium" />
<Property Name="Text" Value="Top speed:" />
<Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
<Property Name="FrameEnabled" Value="False" />
<Property Name="BackgroundEnabled" Value="False" />
</Window>
<Window Name="MenuCarSelect/LblAcceleration" Type="CEGUIDemo/StaticText">
<Property Name="UnifiedAreaRect" Value="{{0.47,0},{0.30,0},{0.60,0},{0.35,0}}" />
<Property Name="Font" Value="MenuMedium" />
<Property Name="Text" Value="Acceleration:" />
<Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
<Property Name="FrameEnabled" Value="False" />
<Property Name="BackgroundEnabled" Value="False" />
</Window>
<Window Name="MenuCarSelect/LblCornering" Type="CEGUIDemo/StaticText">
<Property Name="UnifiedAreaRect" Value="{{0.47,0},{0.35,0},{0.60,0},{0.40,0}}" />
<Property Name="Font" Value="MenuMedium" />
<Property Name="Text" Value="Cornering:" />
<Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
<Property Name="FrameEnabled" Value="False" />
<Property Name="BackgroundEnabled" Value="False" />
</Window>
<Window Name="MenuCarSelect/ImgCarPreview" Type="CEGUIDemo/StaticImage">
<Property Name="UnifiedAreaRect" Value="{{0.47,0},{0.45,0},{0.95,0},{0.85,0}}" />
<Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
<Property Name="Tooltip" Value="Preview of the cars and skin" />
<Property Name="FrameEnabled" Value="False" />
<Property Name="BackgroundEnabled" Value="False" />
</Window>
<Window Name="MenuCarSelect/TreCars" Type="CEGUIDemo/Tree">
<Property Name="UnifiedAreaRect" Value="{{0.10,0},{0.25,0},{0.40,0},{0.80,0}}" />
</Window>
<Window Name="MenuCarSelect/PrbTopSpeed" Type="CEGUIDemo/HorizontalVUMeter">
<Property Name="UnifiedAreaRect" Value="{{0.60,0},{0.26,0},{0.95,0},{0.29,0}}" />
<Property Name="StepSize" Value="0.01" />
<Property Name="Tooltip" Value="Top speed rating" />
</Window>
<Window Name="MenuCarSelect/PrbAcceleration" Type="CEGUIDemo/HorizontalVUMeter">
<Property Name="UnifiedAreaRect" Value="{{0.60,0},{0.31,0},{0.95,0},{0.34,0}}" />
<Property Name="StepSize" Value="0.01" />
<Property Name="Tooltip" Value="Acceleration rating (power to mass ratio)" />
</Window>
<Window Name="MenuCarSelect/PrbCornering" Type="CEGUIDemo/HorizontalVUMeter">
<Property Name="UnifiedAreaRect" Value="{{0.60,0},{0.36,0},{0.95,0},{0.39,0}}" />
<Property Name="StepSize" Value="0.01" />
<Property Name="Tooltip" Value="Cornering rating (inverse of inertia)" />
</Window>
</Window>
</GUILayout>

View file

@ -1163,7 +1163,7 @@
<!--
***************************************************
CEGUIDemo/AlternateProgressBar
CEGUIDemo/AltProgressBar
***************************************************
-->
<WidgetLook name="CEGUIDemo/AltProgressBar">
@ -1529,9 +1529,9 @@
<Dim type="Width" ><UnifiedDim scale="1.0" type="Width" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1.0" type="Height" /></Dim>
</Area>
<Image type="LeftEdge" imageset="CEGUIDemo" image="MiniHorzScrollThumbLeftNormal" />
<Image type="RightEdge" imageset="CEGUIDemo" image="MiniHorzScrollThumbRightNormal" />
<Image type="Background" imageset="CEGUIDemo" image="MiniHorzScrollThumbMiddleNormal" />
<Image type="LeftEdge" imageset="CEGUIDemo" image="HorzScrollThumbLeftNormal" />
<Image type="RightEdge" imageset="CEGUIDemo" image="HorzScrollThumbRightNormal" />
<Image type="Background" imageset="CEGUIDemo" image="HorzScrollThumbMiddleNormal" />
</FrameComponent>
</ImagerySection>
<ImagerySection name="hover">
@ -1542,9 +1542,22 @@
<Dim type="Width" ><UnifiedDim scale="1.0" type="Width" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1.0" type="Height" /></Dim>
</Area>
<Image type="LeftEdge" imageset="CEGUIDemo" image="MiniHorzScrollThumbLeftHover" />
<Image type="RightEdge" imageset="CEGUIDemo" image="MiniHorzScrollThumbRightHover" />
<Image type="Background" imageset="CEGUIDemo" image="MiniHorzScrollThumbMiddleHover" />
<Image type="LeftEdge" imageset="CEGUIDemo" image="HorzScrollThumbLeftHover" />
<Image type="RightEdge" imageset="CEGUIDemo" image="HorzScrollThumbRightHover" />
<Image type="Background" imageset="CEGUIDemo" image="HorzScrollThumbMiddleHover" />
</FrameComponent>
</ImagerySection>
<ImagerySection name="pushed">
<FrameComponent>
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1.0" type="Width" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1.0" type="Height" /></Dim>
</Area>
<Image type="LeftEdge" imageset="CEGUIDemo" image="HorzScrollThumbLeftPushed" />
<Image type="RightEdge" imageset="CEGUIDemo" image="HorzScrollThumbRightPushed" />
<Image type="Background" imageset="CEGUIDemo" image="HorzScrollThumbMiddlePushed" />
</FrameComponent>
</ImagerySection>
<StateImagery name="Normal">
@ -1559,7 +1572,7 @@
</StateImagery>
<StateImagery name="Pushed">
<Layer>
<Section section="normal" />
<Section section="pushed" />
</Layer>
</StateImagery>
<StateImagery name="Disabled">
@ -1579,12 +1592,22 @@
<WidgetLook name="CEGUIDemo/HorizontalScrollbar">
<NamedArea name="ThumbTrackArea">
<Area>
<Dim type="LeftEdge" ><ImageDim imageset="CEGUIDemo" image="MiniHorzScrollLeftNormal" dimension="Width" /></Dim>
<Dim type="LeftEdge" >
<ImageDim imageset="CEGUIDemo" image="HorzScrollLeftNormal" dimension="Width" >
<DimOperator op="Multiply">
<AbsoluteDim value="2" />
</DimOperator>
</ImageDim>
</Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="RightEdge" >
<UnifiedDim scale="1.0" type="RightEdge">
<DimOperator op="Subtract">
<ImageDim imageset="CEGUIDemo" image="MiniHorzScrollRightNormal" dimension="Width" />
<ImageDim imageset="CEGUIDemo" image="HorzScrollRightNormal" dimension="Width" >
<DimOperator op="Multiply">
<AbsoluteDim value="2" />
</DimOperator>
</ImageDim>
</DimOperator>
</UnifiedDim>
</Dim>
@ -1595,49 +1618,76 @@
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><ImageDim imageset="CEGUIDemo" image="MiniHorzScrollRightNormal" dimension="Width" /></Dim>
<Dim type="Width" >
<ImageDim imageset="CEGUIDemo" image="HorzScrollRightNormal" dimension="Width" >
<DimOperator op="Multiply">
<AbsoluteDim value="2" />
</DimOperator>
</ImageDim>
</Dim>
<Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
</Area>
<HorzAlignment type="RightAligned" />
<Property name="NormalImage" value="set:CEGUIDemo image:MiniHorzScrollRightNormal" />
<Property name="HoverImage" value="set:CEGUIDemo image:MiniHorzScrollRightHover" />
<Property name="PushedImage" value="set:CEGUIDemo image:MiniHorzScrollRightNormal" />
<Property name="HorzImageFormatting" value="Stretched" />
<Property name="VertImageFormatting" value="Stretched" />
<Property name="NormalImage" value="set:CEGUIDemo image:HorzScrollRightNormal" />
<Property name="HoverImage" value="set:CEGUIDemo image:HorzScrollRightHover" />
<Property name="PushedImage" value="set:CEGUIDemo image:HorzScrollRightPushed" />
</Child>
<Child type="CEGUIDemo/ImageButton" nameSuffix="__auto_decbtn__">
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><ImageDim imageset="CEGUIDemo" image="MiniHorzScrollLeftNormal" dimension="Width" /></Dim>
<Dim type="Width" >
<ImageDim imageset="CEGUIDemo" image="HorzScrollLeftNormal" dimension="Width" >
<DimOperator op="Multiply">
<AbsoluteDim value="2" />
</DimOperator>
</ImageDim>
</Dim>
<Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
</Area>
<Property name="NormalImage" value="set:CEGUIDemo image:MiniHorzScrollLeftNormal" />
<Property name="HoverImage" value="set:CEGUIDemo image:MiniHorzScrollLeftHover" />
<Property name="PushedImage" value="set:CEGUIDemo image:MiniHorzScrollLeftNormal" />
<HorzAlignment type="LeftAligned" />
<Property name="HorzImageFormatting" value="Stretched" />
<Property name="VertImageFormatting" value="Stretched" />
<Property name="NormalImage" value="set:CEGUIDemo image:HorzScrollLeftNormal" />
<Property name="HoverImage" value="set:CEGUIDemo image:HorzScrollLeftHover" />
<Property name="PushedImage" value="set:CEGUIDemo image:HorzScrollLeftPushed" />
</Child>
<Child type="CEGUIDemo/HorizontalScrollbarThumb" nameSuffix="__auto_thumb__">
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><UnifiedDim scale="0.1" type="Width" /></Dim>
<Dim type="Width" ><UnifiedDim scale="0.2" type="Width" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
</Area>
<Property name="UnifiedMinSize" value="{{0,25},{0,0}}" />
<Property name="UnifiedMinSize" value="{{0,20},{0,0}}" />
</Child>
<ImagerySection name="main">
<ImageryComponent>
<Area>
<Dim type="LeftEdge" ><ImageDim imageset="CEGUIDemo" image="MiniHorzScrollLeftNormal" dimension="Width" /></Dim>
<Dim type="LeftEdge" >
<ImageDim imageset="CEGUIDemo" image="HorzScrollLeftNormal" dimension="Width" >
<DimOperator op="Multiply">
<AbsoluteDim value="2" />
</DimOperator>
</ImageDim>
</Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="RightEdge" >
<UnifiedDim scale="1.0" type="RightEdge">
<DimOperator op="Subtract">
<ImageDim imageset="CEGUIDemo" image="MiniHorzScrollRightNormal" dimension="Width" />
<ImageDim imageset="CEGUIDemo" image="HorzScrollRightNormal" dimension="Width" >
<DimOperator op="Multiply">
<AbsoluteDim value="2" />
</DimOperator>
</ImageDim>
</DimOperator>
</UnifiedDim>
</Dim>
<Dim type="BottomEdge" ><UnifiedDim scale="1.0" type="BottomEdge" /></Dim>
</Area>
<Image imageset="CEGUIDemo" image="MiniHorzScrollBarSegment" />
<Image imageset="CEGUIDemo" image="HorzScrollBarSegment" />
<VertFormat type="CentreAligned" />
<HorzFormat type="Stretched" />
</ImageryComponent>
@ -1672,9 +1722,9 @@
<Dim type="Width" ><UnifiedDim scale="1.0" type="Width" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1.0" type="Height" /></Dim>
</Area>
<Image type="TopEdge" imageset="CEGUIDemo" image="MiniVertScrollThumbTopNormal" />
<Image type="BottomEdge" imageset="CEGUIDemo" image="MiniVertScrollThumbBottomNormal" />
<Image type="Background" imageset="CEGUIDemo" image="MiniVertScrollThumbMiddleNormal" />
<Image type="TopEdge" imageset="CEGUIDemo" image="VertScrollThumbTopNormal" />
<Image type="BottomEdge" imageset="CEGUIDemo" image="VertScrollThumbBottomNormal" />
<Image type="Background" imageset="CEGUIDemo" image="VertScrollThumbMiddleNormal" />
</FrameComponent>
</ImagerySection>
<ImagerySection name="hover">
@ -1685,9 +1735,22 @@
<Dim type="Width" ><UnifiedDim scale="1.0" type="Width" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1.0" type="Height" /></Dim>
</Area>
<Image type="TopEdge" imageset="CEGUIDemo" image="MiniVertScrollThumbTopHover" />
<Image type="BottomEdge" imageset="CEGUIDemo" image="MiniVertScrollThumbBottomHover" />
<Image type="Background" imageset="CEGUIDemo" image="MiniVertScrollThumbMiddleHover" />
<Image type="TopEdge" imageset="CEGUIDemo" image="VertScrollThumbTopHover" />
<Image type="BottomEdge" imageset="CEGUIDemo" image="VertScrollThumbBottomHover" />
<Image type="Background" imageset="CEGUIDemo" image="VertScrollThumbMiddleHover" />
</FrameComponent>
</ImagerySection>
<ImagerySection name="pushed">
<FrameComponent>
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1.0" type="Width" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1.0" type="Height" /></Dim>
</Area>
<Image type="TopEdge" imageset="CEGUIDemo" image="VertScrollThumbTopPushed" />
<Image type="BottomEdge" imageset="CEGUIDemo" image="VertScrollThumbBottomPushed" />
<Image type="Background" imageset="CEGUIDemo" image="VertScrollThumbMiddlePushed" />
</FrameComponent>
</ImagerySection>
<StateImagery name="Normal">
@ -1702,7 +1765,7 @@
</StateImagery>
<StateImagery name="Pushed">
<Layer>
<Section section="normal" />
<Section section="pushed" />
</Layer>
</StateImagery>
<StateImagery name="Disabled">
@ -1724,12 +1787,22 @@
<NamedArea name="ThumbTrackArea">
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><ImageDim imageset="CEGUIDemo" image="MiniVertScrollUpNormal" dimension="Height" /></Dim>
<Dim type="TopEdge" >
<ImageDim imageset="CEGUIDemo" image="VertScrollUpNormal" dimension="Height" >
<DimOperator op="Multiply">
<AbsoluteDim value="2" />
</DimOperator>
</ImageDim>
</Dim>
<Dim type="RightEdge" ><UnifiedDim scale="1.0" type="RightEdge" /></Dim>
<Dim type="BottomEdge" >
<UnifiedDim scale="1.0" type="BottomEdge">
<DimOperator op="Subtract">
<ImageDim imageset="CEGUIDemo" image="MiniVertScrollDownNormal" dimension="Height" />
<ImageDim imageset="CEGUIDemo" image="VertScrollDownNormal" dimension="Height" >
<DimOperator op="Multiply">
<AbsoluteDim value="2" />
</DimOperator>
</ImageDim>
</DimOperator>
</UnifiedDim>
</Dim>
@ -1740,48 +1813,75 @@
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
<Dim type="Height" ><ImageDim imageset="CEGUIDemo" image="MiniVertScrollDownNormal" dimension="Height" /></Dim>
<Dim type="Height" >
<ImageDim imageset="CEGUIDemo" image="VertScrollDownNormal" dimension="Height" >
<DimOperator op="Multiply">
<AbsoluteDim value="2" />
</DimOperator>
</ImageDim>
</Dim>
</Area>
<VertAlignment type="BottomAligned" />
<Property name="NormalImage" value="set:CEGUIDemo image:MiniVertScrollDownNormal" />
<Property name="HoverImage" value="set:CEGUIDemo image:MiniVertScrollDownHover" />
<Property name="PushedImage" value="set:CEGUIDemo image:MiniVertScrollDownNormal" />
<Property name="HorzImageFormatting" value="Stretched" />
<Property name="VertImageFormatting" value="Stretched" />
<Property name="NormalImage" value="set:CEGUIDemo image:VertScrollDownNormal" />
<Property name="HoverImage" value="set:CEGUIDemo image:VertScrollDownHover" />
<Property name="PushedImage" value="set:CEGUIDemo image:VertScrollDownPushed" />
</Child>
<Child type="CEGUIDemo/ImageButton" nameSuffix="__auto_decbtn__">
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
<Dim type="Height" ><ImageDim imageset="CEGUIDemo" image="MiniVertScrollUpNormal" dimension="Height" /></Dim>
<Dim type="Height" >
<ImageDim imageset="CEGUIDemo" image="VertScrollUpNormal" dimension="Height" >
<DimOperator op="Multiply">
<AbsoluteDim value="2" />
</DimOperator>
</ImageDim>
</Dim>
</Area>
<Property name="NormalImage" value="set:CEGUIDemo image:MiniVertScrollUpNormal" />
<Property name="HoverImage" value="set:CEGUIDemo image:MiniVertScrollUpHover" />
<Property name="PushedImage" value="set:CEGUIDemo image:MiniVertScrollUpNormal" />
<VertAlignment type="TopAligned" />
<Property name="HorzImageFormatting" value="Stretched" />
<Property name="VertImageFormatting" value="Stretched" />
<Property name="NormalImage" value="set:CEGUIDemo image:VertScrollUpNormal" />
<Property name="HoverImage" value="set:CEGUIDemo image:VertScrollUpHover" />
<Property name="PushedImage" value="set:CEGUIDemo image:VertScrollUpPushed" />
</Child>
<Child type="CEGUIDemo/VerticalScrollbarThumb" nameSuffix="__auto_thumb__">
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
<Dim type="Height" ><UnifiedDim scale="0.1" type="Height" /></Dim>
<Dim type="Height" ><UnifiedDim scale="0.2" type="Height" /></Dim>
</Area>
<Property name="UnifiedMinSize" value="{{0,0},{0,25}}" />
<Property name="UnifiedMinSize" value="{{0,0},{0,20}}" />
</Child>
<ImagerySection name="main">
<ImageryComponent>
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><ImageDim imageset="CEGUIDemo" image="MiniVertScrollUpNormal" dimension="Height" /></Dim>
<Dim type="TopEdge" >
<ImageDim imageset="CEGUIDemo" image="VertScrollUpNormal" dimension="Height" >
<DimOperator op="Multiply">
<AbsoluteDim value="2" />
</DimOperator>
</ImageDim>
</Dim>
<Dim type="RightEdge" ><UnifiedDim scale="1.0" type="RightEdge" /></Dim>
<Dim type="BottomEdge" >
<UnifiedDim scale="1.0" type="BottomEdge">
<DimOperator op="Subtract">
<ImageDim imageset="CEGUIDemo" image="MiniVertScrollDownNormal" dimension="Height" />
<ImageDim imageset="CEGUIDemo" image="VertScrollDownNormal" dimension="Height" >
<DimOperator op="Multiply">
<AbsoluteDim value="2" />
</DimOperator>
</ImageDim>
</DimOperator>
</UnifiedDim>
</Dim>
</Area>
<Image imageset="CEGUIDemo" image="MiniVertScrollBarSegment" />
<Image imageset="CEGUIDemo" image="VertScrollBarSegment" />
<VertFormat type="Stretched" />
<HorzFormat type="CentreAligned" />
</ImageryComponent>
@ -1890,8 +1990,8 @@
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1" offset="-12" type="Width" /></Dim>
<Dim type="Height" ><AbsoluteDim value="12" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
<Dim type="Height" ><AbsoluteDim value="20" /></Dim>
</Area>
<VertAlignment type="BottomAligned" />
</Child>
@ -1899,8 +1999,8 @@
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><AbsoluteDim value="12" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1" offset="-12" type="Height" /></Dim>
<Dim type="Width" ><AbsoluteDim value="20" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
</Area>
<HorzAlignment type="RightAligned" />
</Child>
@ -2027,8 +2127,8 @@
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1" offset="-12" type="Width" /></Dim>
<Dim type="Height" ><AbsoluteDim value="12" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
<Dim type="Height" ><AbsoluteDim value="20" /></Dim>
</Area>
<VertAlignment type="BottomAligned" />
</Child>
@ -2036,8 +2136,8 @@
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><AbsoluteDim value="12" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1" offset="-12" type="Height" /></Dim>
<Dim type="Width" ><AbsoluteDim value="20" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
</Area>
<HorzAlignment type="RightAligned" />
</Child>
@ -2584,8 +2684,8 @@
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1" offset="-12" type="Width" /></Dim>
<Dim type="Height" ><AbsoluteDim value="12" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
<Dim type="Height" ><AbsoluteDim value="20" /></Dim>
</Area>
<VertAlignment type="BottomAligned" />
</Child>
@ -2593,8 +2693,8 @@
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><AbsoluteDim value="12" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1" offset="-12" type="Height" /></Dim>
<Dim type="Width" ><AbsoluteDim value="20" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
</Area>
<HorzAlignment type="RightAligned" />
</Child>
@ -2934,8 +3034,8 @@
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1" offset="-12" type="Width" /></Dim>
<Dim type="Height" ><AbsoluteDim value="12" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
<Dim type="Height" ><AbsoluteDim value="20" /></Dim>
</Area>
<VertAlignment type="BottomAligned" />
</Child>
@ -2943,8 +3043,8 @@
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><WidgetDim widget="__auto_listheader__" dimension="BottomEdge" /></Dim>
<Dim type="Width" ><AbsoluteDim value="12" /></Dim>
<Dim type="BottomEdge" ><UnifiedDim scale="1" offset="-12" type="BottomEdge" /></Dim>
<Dim type="Width" ><AbsoluteDim value="20" /></Dim>
<Dim type="BottomEdge" ><UnifiedDim scale="1" type="BottomEdge" /></Dim>
</Area>
<HorzAlignment type="RightAligned" />
</Child>
@ -3077,8 +3177,8 @@
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1" offset="-12" type="Width" /></Dim>
<Dim type="Height" ><AbsoluteDim value="12" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
<Dim type="Height" ><AbsoluteDim value="20" /></Dim>
</Area>
<VertAlignment type="BottomAligned" />
</Child>
@ -3086,8 +3186,8 @@
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><AbsoluteDim value="12" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1" offset="-12" type="Height" /></Dim>
<Dim type="Width" ><AbsoluteDim value="20" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
</Area>
<HorzAlignment type="RightAligned" />
</Child>
@ -3298,8 +3398,8 @@
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1" offset="-12" type="Width" /></Dim>
<Dim type="Height" ><AbsoluteDim value="12" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
<Dim type="Height" ><AbsoluteDim value="20" /></Dim>
</Area>
<VertAlignment type="BottomAligned" />
<Property name="NonClient" value="True" />
@ -3308,8 +3408,8 @@
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><AbsoluteDim value="12" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1" offset="-12" type="Height" /></Dim>
<Dim type="Width" ><AbsoluteDim value="20" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
</Area>
<HorzAlignment type="RightAligned" />
<Property name="NonClient" value="True" />
@ -4224,241 +4324,6 @@
</StateImagery>
</WidgetLook>
<!--
***************************************************
CEGUIDemo/LargeVerticalScrollbarThumb
***************************************************
-->
<WidgetLook name="CEGUIDemo/LargeVerticalScrollbarThumb">
<Property name="VertFree" value="True" />
<Property name="MouseInputPropagationEnabled" value="True" />
<ImagerySection name="normal">
<ImageryComponent>
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1.0" type="Width" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1.0" type="Height" /></Dim>
</Area>
<Image imageset="CEGUIDemo" image="VertScrollThumbNormal" />
<VertFormat type="Stretched" />
<HorzFormat type="Stretched" />
</ImageryComponent>
</ImagerySection>
<ImagerySection name="hover">
<ImageryComponent>
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1.0" type="Width" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1.0" type="Height" /></Dim>
</Area>
<Image imageset="CEGUIDemo" image="VertScrollThumbHover" />
<VertFormat type="Stretched" />
<HorzFormat type="Stretched" />
</ImageryComponent>
</ImagerySection>
<StateImagery name="Normal">
<Layer>
<Section section="normal" />
</Layer>
</StateImagery>
<StateImagery name="Hover">
<Layer>
<Section section="hover" />
</Layer>
</StateImagery>
<StateImagery name="Pushed">
<Layer>
<Section section="normal" />
</Layer>
</StateImagery>
<StateImagery name="Disabled">
<Layer>
<Section section="normal">
<Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
</Section>
</Layer>
</StateImagery>
</WidgetLook>
<!--
***************************************************
CEGUIDemo/LargeVerticalScrollbar
***************************************************
-->
<WidgetLook name="CEGUIDemo/LargeVerticalScrollbar">
<Property name="VerticalScrollbar" value="True" />
<NamedArea name="ThumbTrackArea">
<Area>
<Dim type="LeftEdge" ><UnifiedDim scale="0.325" type="LeftEdge" /></Dim>
<Dim type="TopEdge" >
<WidgetDim widget="__auto_decbtn__" dimension="Height">
<DimOperator op="Add">
<ImageDim imageset="CEGUIDemo" image="VertScrollTop" dimension="Height">
<DimOperator op="Multiply">
<AbsoluteDim value="0.5" />
</DimOperator>
</ImageDim>
</DimOperator>
</WidgetDim>
</Dim>
<Dim type="RightEdge" ><UnifiedDim scale="1.0" type="RightEdge" /></Dim>
<Dim type="BottomEdge" >
<UnifiedDim scale="1.0" type="BottomEdge">
<DimOperator op="Subtract">
<WidgetDim widget="__auto_decbtn__" dimension="Height">
<DimOperator op="Add">
<ImageDim imageset="CEGUIDemo" image="VertScrollTop" dimension="Height">
<DimOperator op="Multiply">
<AbsoluteDim value="0.5" />
</DimOperator>
</ImageDim>
</DimOperator>
</WidgetDim>
</DimOperator>
</UnifiedDim>
</Dim>
</Area>
</NamedArea>
<Child type="CEGUIDemo/ImageButton" nameSuffix="__auto_incbtn__">
<Area>
<Dim type="LeftEdge" ><UnifiedDim scale="0.25" type="LeftEdge" /></Dim>
<Dim type="TopEdge" >
<AbsoluteDim value="-1">
<DimOperator op="Multiply">
<ImageDim imageset="CEGUIDemo" image="VertScrollTop" dimension="Height">
<DimOperator op="Multiply">
<AbsoluteDim value="0.5" />
</DimOperator>
</ImageDim>
</DimOperator>
</AbsoluteDim>
</Dim>
<Dim type="Width" ><UnifiedDim scale="0.6" type="Width" /></Dim>
<Dim type="Height" >
<UnifiedDim scale="0.6" type="Width">
<DimOperator op="Multiply">
<ImageDim imageset="CEGUIDemo" image="VertScrollUpNormal" dimension="Width">
<DimOperator op="Divide">
<ImageDim imageset="CEGUIDemo" image="VertScrollUpNormal" dimension="Height"/>
</DimOperator>
</ImageDim>
</DimOperator>
</UnifiedDim>
</Dim>
</Area>
<VertAlignment type="BottomAligned" />
<Property name="NormalImage" value="set:CEGUIDemo image:VertScrollDownNormal" />
<Property name="HoverImage" value="set:CEGUIDemo image:VertScrollDownHover" />
<Property name="PushedImage" value="set:CEGUIDemo image:VertScrollDownNormal" />
</Child>
<Child type="CEGUIDemo/ImageButton" nameSuffix="__auto_decbtn__">
<Area>
<Dim type="LeftEdge" ><UnifiedDim scale="0.25" type="LeftEdge" /></Dim>
<Dim type="TopEdge">
<ImageDim imageset="CEGUIDemo" image="VertScrollTop" dimension="Height">
<DimOperator op="Multiply">
<AbsoluteDim value="0.5" />
</DimOperator>
</ImageDim>
</Dim>
<Dim type="Width" ><UnifiedDim scale="0.6" type="Width" /></Dim>
<Dim type="Height" >
<UnifiedDim scale="0.6" type="Width">
<DimOperator op="Multiply">
<ImageDim imageset="CEGUIDemo" image="VertScrollUpNormal" dimension="Width">
<DimOperator op="Divide">
<ImageDim imageset="CEGUIDemo" image="VertScrollUpNormal" dimension="Height"/>
</DimOperator>
</ImageDim>
</DimOperator>
</UnifiedDim>
</Dim>
</Area>
<Property name="NormalImage" value="set:CEGUIDemo image:VertScrollUpNormal" />
<Property name="HoverImage" value="set:CEGUIDemo image:VertScrollUpHover" />
<Property name="PushedImage" value="set:CEGUIDemo image:VertScrollUpNormal" />
</Child>
<Child type="CEGUIDemo/LargeVerticalScrollbarThumb" nameSuffix="__auto_thumb__">
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><UnifiedDim scale="0.4" type="Width" /></Dim>
<Dim type="Height" >
<UnifiedDim scale="0.4" type="Width">
<DimOperator op="Multiply">
<ImageDim imageset="CEGUIDemo" image="VertScrollThumbNormal" dimension="Height">
<DimOperator op="Divide">
<ImageDim imageset="CEGUIDemo" image="VertScrollThumbNormal" dimension="Width"/>
</DimOperator>
</ImageDim>
</DimOperator>
</UnifiedDim>
</Dim>
</Area>
</Child>
<ImagerySection name="main">
<FrameComponent>
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
</Area>
<Image type="TopEdge" imageset="CEGUIDemo" image="VertScrollTop" />
<Image type="BottomEdge" imageset="CEGUIDemo" image="VertScrollBottom" />
<Image type="Background" imageset="CEGUIDemo" image="VertScrollMiddle" />
</FrameComponent>
<ImageryComponent>
<Area>
<Dim type="LeftEdge" ><UnifiedDim scale="0.45" type="LeftEdge" /></Dim>
<Dim type="TopEdge" >
<WidgetDim widget="__auto_decbtn__" dimension="Height">
<DimOperator op="Add">
<ImageDim imageset="CEGUIDemo" image="VertScrollTop" dimension="Height">
<DimOperator op="Multiply">
<AbsoluteDim value="0.5" />
</DimOperator>
</ImageDim>
</DimOperator>
</WidgetDim>
</Dim>
<Dim type="RightEdge" ><UnifiedDim scale="1.0" type="RightEdge" /></Dim>
<Dim type="BottomEdge" >
<UnifiedDim scale="1.0" type="BottomEdge">
<DimOperator op="Subtract">
<WidgetDim widget="__auto_decbtn__" dimension="Height">
<DimOperator op="Add">
<ImageDim imageset="CEGUIDemo" image="VertScrollTop" dimension="Height">
<DimOperator op="Multiply">
<AbsoluteDim value="0.5" />
</DimOperator>
</ImageDim>
</DimOperator>
</WidgetDim>
</DimOperator>
</UnifiedDim>
</Dim>
</Area>
<Image imageset="CEGUIDemo" image="VertScrollBarSegment" />
<VertFormat type="Tiled" />
</ImageryComponent>
</ImagerySection>
<StateImagery name="Enabled">
<Layer>
<Section section="main" />
</Layer>
</StateImagery>
<StateImagery name="Disabled">
<Layer>
<Section section="main">
<Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
</Section>
</Layer>
</StateImagery>
</WidgetLook>
<!--
***************************************************
CEGUIDemo/ImageButton
@ -4632,8 +4497,8 @@
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1" offset="-12" type="Width" /></Dim>
<Dim type="Height" ><AbsoluteDim value="12" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
<Dim type="Height" ><AbsoluteDim value="20" /></Dim>
</Area>
<VertAlignment type="BottomAligned" />
<Property name="NonClient" value="True" />
@ -4642,7 +4507,7 @@
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><AbsoluteDim value="12" /></Dim>
<Dim type="Width" ><AbsoluteDim value="20" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
</Area>
<HorzAlignment type="RightAligned" />
@ -4786,11 +4651,12 @@
***********************************************************************************************************/
-->
<WidgetLook name="CEGUIDemo/Tree">
<Property name="SelectionBrushImage" value="set:CEGUIDemo image:GenericBrush" />
<Property name="NormalTextColour" value="FF000000" />
<Property name="SelectedTextColour" value="FFFFFFFF" />
<Property name="ActiveSelectionColour" value="FF607FFF" />
<Property name="InactiveSelectionColour" value="FF808080" />
<PropertyDefinition name="NormalTextColour" initialValue="FFFFFFFF" redrawOnWrite="true" />
<PropertyDefinition name="SelectedTextColour" initialValue="FF000000" redrawOnWrite="true" />
<PropertyDefinition name="ActiveSelectionColour" initialValue="FF607FFF" redrawOnWrite="true" />
<PropertyDefinition name="InactiveSelectionColour" initialValue="FF808080" redrawOnWrite="true" />
<!-- FrameColours does not work (0.7.6) -->
<PropertyDefinition name="FrameColours" initialValue="tl:FFFFFFFF tr:FFFFFFFF bl:FFFFFFFF br:FFFFFFFF" redrawOnWrite="true" />
<NamedArea name="ItemRenderingArea">
<Area>
<Dim type="LeftEdge" ><ImageDim imageset="CEGUIDemo" image="WindowLeftEdge" dimension="Width" /></Dim>
@ -4813,19 +4679,19 @@
</NamedArea>
<Child type="CEGUIDemo/HorizontalScrollbar" nameSuffix="__auto_hscrollbar__">
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="5" /></Dim>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1" offset="-25" type="Width" /></Dim>
<Dim type="Height" ><AbsoluteDim value="10" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
<Dim type="Height" ><AbsoluteDim value="20" /></Dim>
</Area>
<VertAlignment type="BottomAligned" />
</Child>
<Child type="CEGUIDemo/VerticalScrollbar" nameSuffix="__auto_vscrollbar__">
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="-5" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="5" /></Dim>
<Dim type="Width" ><AbsoluteDim value="10" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1" offset="-10" type="Height" /></Dim>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><AbsoluteDim value="20" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
</Area>
<HorzAlignment type="RightAligned" />
</Child>
@ -4838,8 +4704,8 @@
<Dim type="BottomEdge"><UnifiedDim scale="1" type="BottomEdge" /></Dim>
</Area>
<Image imageset="CEGUIDemo" image="TreeListClosed" />
<!-- <VertFormat type="Stretched" />
<HorzFormat type="Stretched" /> -->
<VertFormat type="Stretched" />
<HorzFormat type="Stretched" />
</ImageryComponent>
</ImagerySection>
<ImagerySection name="CloseTreeButton">
@ -4858,14 +4724,14 @@
<StateImagery name="Enabled">
<Layer>
<Section look="CEGUIDemo/StaticShared" section="frame">
<Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
<Colours topLeft="00000000" topRight="00000000" bottomLeft="00000000" bottomRight="00000000" />
</Section>
</Layer>
</StateImagery>
<StateImagery name="Disabled">
<Layer>
<Section look="CEGUIDemo/StaticShared" section="frame">
<Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
<Colours topLeft="00000000" topRight="00000000" bottomLeft="00000000" bottomRight="00000000" />
</Section>
</Layer>
</StateImagery>
@ -5099,8 +4965,8 @@
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1" offset="-12" type="Width" /></Dim>
<Dim type="Height" ><AbsoluteDim value="12" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
<Dim type="Height" ><AbsoluteDim value="20" /></Dim>
</Area>
<VertAlignment type="BottomAligned" />
</Child>
@ -5108,8 +4974,8 @@
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><AbsoluteDim value="12" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1" offset="-12" type="Height" /></Dim>
<Dim type="Width" ><AbsoluteDim value="20" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
</Area>
<HorzAlignment type="RightAligned" />
</Child>
@ -5292,6 +5158,73 @@
</StateImagery>
</WidgetLook>
<!--
***************************************************
CEGUIDemo/HorizontalVUMeter
***************************************************
-->
<WidgetLook name="CEGUIDemo/HorizontalVUMeter">
<NamedArea name="ProgressArea">
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
</Area>
</NamedArea>
<ImagerySection name="frame">
<FrameComponent>
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
</Area>
<Image type="LeftEdge" imageset="CEGUIDemo" image="HorizontalVUMeterLeft" />
<Image type="RightEdge" imageset="CEGUIDemo" image="HorizontalVUMeterRight" />
<Image type="Background" imageset="CEGUIDemo" image="HorizontalVUMeterMiddle" />
<HorzFormat type="Tiled" />
</FrameComponent>
</ImagerySection>
<ImagerySection name="progress_lights" >
<ImageryComponent>
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
</Area>
<Image imageset="CEGUIDemo" image="HorizontalVUMeterLitSegment" />
<VertFormat type="Stretched" />
<HorzFormat type="Stretched" />
</ImageryComponent>
</ImagerySection>
<StateImagery name="Enabled">
<Layer>
<Section section="frame" />
</Layer>
</StateImagery>
<StateImagery name="Disabled">
<Layer>
<Section section="frame">
<Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
</Section>
</Layer>
</StateImagery>
<StateImagery name="EnabledProgress">
<Layer>
<Section section="progress_lights" />
</Layer>
</StateImagery>
<StateImagery name="DisabledProgress">
<Layer>
<Section section="progress_lights">
<Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
</Section>
</Layer>
</StateImagery>
</WidgetLook>
</Falagard>

View file

@ -34,12 +34,11 @@
<FalagardMapping WindowType="CEGUIDemo/AlternateProgressBar" TargetType="CEGUI/ProgressBar" Renderer="Falagard/ProgressBar" LookNFeel="CEGUIDemo/AltProgressBar" />
<FalagardMapping WindowType="CEGUIDemo/ProgressBar" TargetType="CEGUI/ProgressBar" Renderer="Falagard/ProgressBar" LookNFeel="CEGUIDemo/ProgressBar" />
<FalagardMapping WindowType="CEGUIDemo/VUMeter" TargetType="CEGUI/ProgressBar" Renderer="Falagard/ProgressBar" LookNFeel="CEGUIDemo/VUMeter" />
<FalagardMapping WindowType="CEGUIDemo/HorizontalVUMeter" TargetType="CEGUI/ProgressBar" Renderer="Falagard/ProgressBar" LookNFeel="CEGUIDemo/HorizontalVUMeter" />
<FalagardMapping WindowType="CEGUIDemo/VerticalScrollbar" TargetType="CEGUI/Scrollbar" Renderer="Falagard/Scrollbar" LookNFeel="CEGUIDemo/VerticalScrollbar" />
<FalagardMapping WindowType="CEGUIDemo/HorizontalScrollbar" TargetType="CEGUI/Scrollbar" Renderer="Falagard/Scrollbar" LookNFeel="CEGUIDemo/HorizontalScrollbar" />
<FalagardMapping WindowType="CEGUIDemo/VerticalScrollbarThumb" TargetType="CEGUI/Thumb" Renderer="Falagard/Button" LookNFeel="CEGUIDemo/VerticalScrollbarThumb" />
<FalagardMapping WindowType="CEGUIDemo/HorizontalScrollbarThumb" TargetType="CEGUI/Thumb" Renderer="Falagard/Button" LookNFeel="CEGUIDemo/HorizontalScrollbarThumb" />
<FalagardMapping WindowType="CEGUIDemo/LargeVerticalScrollbar" TargetType="CEGUI/Scrollbar" Renderer="Falagard/Scrollbar" LookNFeel="CEGUIDemo/LargeVerticalScrollbar" />
<FalagardMapping WindowType="CEGUIDemo/LargeVerticalScrollbarThumb" TargetType="CEGUI/Thumb" Renderer="Falagard/Button" LookNFeel="CEGUIDemo/LargeVerticalScrollbarThumb" />
<FalagardMapping WindowType="CEGUIDemo/TabButton" TargetType="CEGUI/TabButton" Renderer="Falagard/TabButton" LookNFeel="CEGUIDemo/TabButton" />
<FalagardMapping WindowType="CEGUIDemo/TabControl" TargetType="CEGUI/TabControl" Renderer="Falagard/TabControl" LookNFeel="CEGUIDemo/TabControl" />
<FalagardMapping WindowType="CEGUIDemo/TabContentPane" TargetType="DefaultWindow" Renderer="Falagard/Default" LookNFeel="CEGUIDemo/TabContentPane" />

View file

@ -9,6 +9,7 @@
# Import: std
import sys
import collections
# Import: PyCEGUI
import PyCEGUI
@ -24,6 +25,39 @@ from menuoptions import MenuOptions
# Car selection menu
class MenuCarSelect(MenuStandard):
Car = collections.namedtuple("Car", "name, topSpeed, acceleration, cornering, skins")
Cars = \
{
"Supercars" : \
{
"Lynx 220" : Car(name="Lynx 220",
topSpeed=0.80, acceleration=0.15, cornering=0.10,
skins={ "standard" : "sc-lynx-220-preview.jpg",
"all-tune" : "sc-lynx-220-all-tune-preview.jpg",
"red-lord" : "sc-lynx-220-red-lord-preview.jpg"}),
"Murasama NSX" : Car(name="Murasama NSX",
topSpeed=0.60, acceleration=0.15, cornering=0.20,
skins={ "standard" : "sc-murasama-nsx-preview.jpg",
"amami" : "sc-murasama-nsx-amami-preview.jpg",
"tribal" : "sc-murasama-nsx-tribal-preview.jpg"})
},
"LS-GT1" : \
{
"Vulture V6R" : Car(name="Vulture V6R",
topSpeed=0.85, acceleration=0.25, cornering=0.15,
skins={ "standard" : "ls1-vulture-v6r-preview.jpg",
"beast" : "ls1-vulture-v6r-beast-preview.jpg",
"jd1" : "ls1-vulture-v6r-jd1-preview.jpg"}),
"Zentek Z7R" : Car(name="Zentek Z7R",
topSpeed=0.80, acceleration=0.20, cornering=0.10,
skins={ "standard" : "ls1-zentek-z7r-preview.jpg",
"moemoe" : "ls1-zentek-z7r-moemoe-preview.jpg",
"telemachi" : "ls1-zentek-z7r-telemachi-preview.jpg"})
}
}
def __init__(self):
MenuStandard.__init__(self, MenuCredits, MenuOptions) #, MenuProfiles, )
@ -39,9 +73,51 @@ class MenuCarSelect(MenuStandard):
# Retrieve the window descendants created here.
self.btnBack = window.getChild(name + "/BtnBack")
self.btnStart = window.getChild(name + "/BtnStart")
self.prbTopSpd = window.getChild(name + "/PrbTopSpeed")
self.prbAccel = window.getChild(name + "/PrbAcceleration")
self.prbCorner = window.getChild(name + "/PrbCornering")
self.treCars = window.getChild(name + "/TreCars")
self.imgPreview = window.getChild(name + "/ImgCarPreview")
# Complete widget initialization.
# TODO.
self.treCars.initialise()
self.lstTreeItems = []
self.dictTreeItemID2Car = {}
treeItemId = 0
rootTreeItem = PyCEGUI.TreeItem("Cars", item_id=treeItemId)
treeItemId += 1
rootTreeItem.setSelectionBrushImage("CEGUIDemo", "TreeSelectionBrush")
rootTreeItem.setFont("MenuNormal")
rootTreeItem.toggleIsOpen()
self.treCars.addItem(rootTreeItem)
self.lstTreeItems.append(rootTreeItem) # Avoid its being GC'd at return !
for cat in self.Cars:
catTreeItem = PyCEGUI.TreeItem(cat, item_id=treeItemId)
treeItemId += 1
catTreeItem.setSelectionBrushImage("CEGUIDemo", "TreeSelectionBrush")
catTreeItem.setFont("MenuNormal")
catTreeItem.toggleIsOpen()
rootTreeItem.addItem(catTreeItem)
self.lstTreeItems.append(catTreeItem) # Avoid its being GC'd at return !
for car in self.Cars[cat].values():
carTreeItem = PyCEGUI.TreeItem(car.name, item_id=treeItemId)
treeItemId += 1
carTreeItem.setSelectionBrushImage("CEGUIDemo", "TreeSelectionBrush")
carTreeItem.setFont("MenuNormal")
carTreeItem.toggleIsOpen()
catTreeItem.addItem(carTreeItem)
self.lstTreeItems.append(carTreeItem) # Avoid its being GC'd at return !
self.dictTreeItemID2Car[carTreeItem.getID()] = car
for name, file in car.skins.items():
skinTreeItem = PyCEGUI.TreeItem(name, item_id=treeItemId)
treeItemId += 1
skinTreeItem.setSelectionBrushImage("CEGUIDemo", "TreeSelectionBrush")
skinTreeItem.setFont("MenuMedium")
carTreeItem.addItem(skinTreeItem)
self.lstTreeItems.append(skinTreeItem) # Avoid its being GC'd at return !
self.dictTreeItemID2Car[skinTreeItem.getID()] = car
return window
@ -56,6 +132,7 @@ class MenuCarSelect(MenuStandard):
# Specific connections.
self.btnBack.subscribeEvent(PyCEGUI.PushButton.EventClicked, self, "onBackButtonClicked")
self.btnStart.subscribeEvent(PyCEGUI.PushButton.EventClicked, self, "onStartButtonClicked")
self.treCars.subscribeEvent(PyCEGUI.Tree.EventSelectionChanged, self, "onTreeSelectionChanged")
# Handler: buttonClicked
def onStartButtonClicked(self, args):
@ -66,3 +143,26 @@ class MenuCarSelect(MenuStandard):
print("onBackButtonClicked")
self.back()
def onTreeSelectionChanged(self, args):
print("onTreeSelectionChanged")
treeItem = args.treeItem
if treeItem and treeItem.getID() in self.dictTreeItemID2Car:
car = self.dictTreeItemID2Car[treeItem.getID()]
self.prbTopSpd.setProgress(car.topSpeed)
self.prbCorner.setProgress(car.cornering)
self.prbAccel.setProgress(car.acceleration)
if treeItem.getText() in car.skins:
skinFile = car.skins[treeItem.getText()]
else:
skinFile = car.skins["standard"]
imgSetMgr = PyCEGUI.ImagesetManager.getSingleton()
imgSetMgr.createFromImageFile(skinFile, skinFile)
self.imgPreview.setProperty("Image", "set:%s image:full_image" % skinFile)
self.imgPreview.show()
else:
self.prbTopSpd.setProgress(0)
self.prbCorner.setProgress(0)
self.prbAccel.setProgress(0)
self.imgPreview.hide()

View file

@ -32,44 +32,44 @@ class MenuTrackSelect(MenuStandard):
{
"Grand Prix Circuits" : \
{
"Karwada" : Track(name="Karwada",
description="A well-known, fast and curvy circuit in Japan",
authors="Andrew Sumner, Echkard M. Jaeger",
length=6205, width=12, nPits=28,
outline="outline-karwada.png", preview="preview-karwada.jpg"),
"Espie" : Track(name="Espie",
description="An international racing circuit in France",
authors="Eric Espie, Andrew Sumner, Echkard M. Jaeger",
length=4441, width=13, nPits=20,
outline="outline-espie.png", preview="preview-espie.jpg")
"Karwada" : Track(name="Karwada",
description="A well-known, fast and curvy circuit in Japan",
authors="Andrew Sumner, Echkard M. Jaeger",
length=6205, width=12, nPits=28,
outline="outline-karwada.png", preview="preview-karwada.jpg"),
"Espie" : Track(name="Espie",
description="An international racing circuit in France",
authors="Eric Espie, Andrew Sumner, Echkard M. Jaeger",
length=4441, width=13, nPits=20,
outline="outline-espie.png", preview="preview-espie.jpg")
},
"Dirt" : \
{
"Garguree" : Track(name="Garguree",
description="A blast trough the australian country side with many hoops and a lot of dust",
authors="Andrew Sumner",
length=2206, width=10, nPits=16,
outline="outline-garguree.png", preview="preview-garguree.jpg"),
"Mud Hell" : Track(name="Mud Hell",
description="An all-muddy track you'll probably never forget",
authors="Devel 666",
length=56220, width=8, nPits=16,
outline="outline-mudhell.png", preview="preview-mudhell.jpg")
"Garguree" : Track(name="Garguree",
description="A blast trough the australian country side with many hoops and a lot of dust",
authors="Andrew Sumner",
length=2206, width=10, nPits=16,
outline="outline-garguree.png", preview="preview-garguree.jpg"),
"Mud Hell" : Track(name="Mud Hell",
description="An all-muddy track you'll probably never forget",
authors="Devel 666",
length=56220, width=8, nPits=16,
outline="outline-mudhell.png", preview="preview-mudhell.jpg")
},
"Road Tracks" : \
{
"Autodromo Lombaro" : Track(name="Autodromo Lombaro",
description="An Italian race track with a 'bus stop'-like chicane",
authors="Eric Espie, Bernhard Wymann, Echkard M. Jaeger",
length=3244, width=15, nPits=20,
outline="outline-lombaro.png", preview="preview-lombaro.jpg"),
"Olethros Road" : Track(name="Olethros Road",
description="A Greek narrow country road with dangerously bumpy sections",
authors="Christos Dimitrikakis, Echkard M. Jaeger",
length=6283, width=10, nPits=20,
outline="outline-olethros.png", preview="preview-olethros.jpg")
"Autodromo Lombaro" : Track(name="Autodromo Lombaro",
description="An Italian race track with a 'bus stop'-like chicane",
authors="Eric Espie, Bernhard Wymann, Echkard M. Jaeger",
length=3244, width=15, nPits=20,
outline="outline-lombaro.png", preview="preview-lombaro.jpg"),
"Olethros Road" : Track(name="Olethros Road",
description="A Greek narrow country road with dangerously bumpy sections",
authors="Christos Dimitrikakis, Echkard M. Jaeger",
length=6283, width=10, nPits=20,
outline="outline-olethros.png", preview="preview-olethros.jpg")
}
}