summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--GUI/Vanilla.imageset21
-rw-r--r--GUI/Vanilla.looknfeel1340
-rw-r--r--GUI/VanillaSkin.scheme27
-rw-r--r--GUI/vanilla.tgabin0 -> 17710 bytes
-rw-r--r--SConstruct2
-rw-r--r--fonts/VeraMono.font2
-rw-r--r--gui.cpp144
-rw-r--r--gui.h31
-rw-r--r--main.cpp2
-rw-r--r--scene.cpp60
-rw-r--r--scene.h3
12 files changed, 1625 insertions, 8 deletions
diff --git a/.gitignore b/.gitignore
index f678fbe..99897c0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@
*.o
.*.swp
/textures/unused/
+/CEGUI.log
diff --git a/GUI/Vanilla.imageset b/GUI/Vanilla.imageset
new file mode 100644
index 0000000..0136e55
--- /dev/null
+++ b/GUI/Vanilla.imageset
@@ -0,0 +1,21 @@
+<?xml version="1.0" ?>
+<Imageset Name="Vanilla-Images" Imagefile="vanilla.tga" NativeHorzRes="800" NativeVertRes="600" AutoScaled="true">
+ <Image Name="GenericBrush" XPos="46" YPos="46" Width="3" Height="3" />
+ <Image Name="FrameTopLeft" XPos="1" YPos="1" Width="6" Height="6" />
+ <Image Name="FrameTopRight" XPos="10" YPos="1" Width="6" Height="6" />
+ <Image Name="FrameBottomLeft" XPos="1" YPos="10" Width="6" Height="6" />
+ <Image Name="FrameBottomRight" XPos="10" YPos="10" Width="6" Height="6" />
+ <Image Name="FrameLeft" XPos="1" YPos="18" Width="6" Height="1" />
+ <Image Name="FrameRight" XPos="10" YPos="18" Width="6" Height="1" />
+ <Image Name="FrameTop" XPos="18" YPos="1" Width="1" Height="6" />
+ <Image Name="FrameBottom" XPos="18" YPos="10" Width="1" Height="6" />
+ <Image Name="ScrollUpArrow" XPos="1" YPos="22" Width="20" Height="20" />
+ <Image Name="ScrollDownArrow" XPos="22" YPos="22" Width="20" Height="20" />
+ <Image Name="VertScrollContainer" XPos="69" YPos="3" Width="20" Height="1" />
+ <Image Name="ScrollLeftArrow" XPos="21" YPos="1" Width="20" Height="20" />
+ <Image Name="ScrollRightArrow" XPos="42" YPos="1" Width="20" Height="20" />
+ <Image Name="HorzScrollContainer" XPos="65" YPos="1" Width="1" Height="20" />
+ <Image Name="ScrollbarThumb" XPos="43" YPos="22" Width="20" Height="20" />
+ <Image Name="ShadowBrush" XPos="4" YPos="45" Width="24" Height="24" />
+ <Image Name="MouseArrow" XPos="69" YPos="7" Width="17" Height="25" />
+</Imageset>
diff --git a/GUI/Vanilla.looknfeel b/GUI/Vanilla.looknfeel
new file mode 100644
index 0000000..9f5fab6
--- /dev/null
+++ b/GUI/Vanilla.looknfeel
@@ -0,0 +1,1340 @@
+<?xml version="1.0" ?>
+<Falagard>
+ <WidgetLook name="Vanilla/Shared">
+ <ImagerySection name="Frame">
+ <FrameComponent>
+ <Area>
+ <Dim type="LeftEdge"><AbsoluteDim value="0" /></Dim>
+ <Dim type="TopEdge"><AbsoluteDim value="0" /></Dim>
+ <Dim type="RightEdge"><UnifiedDim scale="1" type="RightEdge" /></Dim>
+ <Dim type="BottomEdge"><UnifiedDim scale="1" type="BottomEdge" /></Dim>
+ </Area>
+ <Image type="TopLeftCorner" imageset="Vanilla-Images" image="FrameTopLeft" />
+ <Image type="TopRightCorner" imageset="Vanilla-Images" image="FrameTopRight" />
+ <Image type="BottomLeftCorner" imageset="Vanilla-Images" image="FrameBottomLeft" />
+ <Image type="BottomRightCorner" imageset="Vanilla-Images" image="FrameBottomRight" />
+ <Image type="LeftEdge" imageset="Vanilla-Images" image="FrameLeft" />
+ <Image type="TopEdge" imageset="Vanilla-Images" image="FrameTop" />
+ <Image type="RightEdge" imageset="Vanilla-Images" image="FrameRight" />
+ <Image type="BottomEdge" imageset="Vanilla-Images" image="FrameBottom" />
+ <Image type="Background" imageset="Vanilla-Images" image="GenericBrush" />
+ </FrameComponent>
+ </ImagerySection>
+
+ <ImagerySection name="FrameOnly">
+ <FrameComponent>
+ <Area>
+ <Dim type="LeftEdge"><AbsoluteDim value="0" /></Dim>
+ <Dim type="TopEdge"><AbsoluteDim value="0" /></Dim>
+ <Dim type="RightEdge"><UnifiedDim scale="1" type="RightEdge" /></Dim>
+ <Dim type="BottomEdge"><UnifiedDim scale="1" type="BottomEdge" /></Dim>
+ </Area>
+ <Image type="TopLeftCorner" imageset="Vanilla-Images" image="FrameTopLeft" />
+ <Image type="TopRightCorner" imageset="Vanilla-Images" image="FrameTopRight" />
+ <Image type="BottomLeftCorner" imageset="Vanilla-Images" image="FrameBottomLeft" />
+ <Image type="BottomRightCorner" imageset="Vanilla-Images" image="FrameBottomRight" />
+ <Image type="LeftEdge" imageset="Vanilla-Images" image="FrameLeft" />
+ <Image type="TopEdge" imageset="Vanilla-Images" image="FrameTop" />
+ <Image type="RightEdge" imageset="Vanilla-Images" image="FrameRight" />
+ <Image type="BottomEdge" imageset="Vanilla-Images" image="FrameBottom" />
+ </FrameComponent>
+ </ImagerySection>
+
+ <ImagerySection name="BackgroundOnly">
+ <FrameComponent>
+ <Area>
+ <Dim type="LeftEdge"><ImageDim imageset="Vanilla-Images" image="FrameLeft" dimension="Width" /></Dim>
+ <Dim type="TopEdge"><ImageDim imageset="Vanilla-Images" image="FrameTop" dimension="Height" /></Dim>
+ <Dim type="RightEdge">
+ <UnifiedDim scale="1" type="RightEdge">
+ <DimOperator op="Subtract">
+ <ImageDim imageset="Vanilla-Images" image="FrameRight" dimension="Width" />
+ </DimOperator>
+ </UnifiedDim>
+ </Dim>
+ <Dim type="BottomEdge">
+ <UnifiedDim scale="1" type="BottomEdge">
+ <DimOperator op="Subtract">
+ <ImageDim imageset="Vanilla-Images" image="FrameBottom" dimension="Height" />
+ </DimOperator>
+ </UnifiedDim>
+ </Dim>
+ </Area>
+ <Image type="Background" imageset="Vanilla-Images" image="GenericBrush" />
+ </FrameComponent>
+ </ImagerySection>
+
+ <ImagerySection name="BackgroundOnlyFull">
+ <FrameComponent>
+ <Area>
+ <Dim type="LeftEdge"><AbsoluteDim value="0" /></Dim>
+ <Dim type="TopEdge"><AbsoluteDim value="0" /></Dim>
+ <Dim type="RightEdge"><UnifiedDim scale="1" type="RightEdge" /></Dim>
+ <Dim type="BottomEdge"><UnifiedDim scale="1" type="BottomEdge" /></Dim>
+ </Area>
+ <Image type="Background" imageset="Vanilla-Images" image="GenericBrush" />
+ </FrameComponent>
+ </ImagerySection>
+
+ </WidgetLook>
+
+ <WidgetLook name="Vanilla/Titlebar">
+ <PropertyDefinition name="CaptionColour" initialValue="FFFFFFFF" redrawOnWrite="true" />
+ <Property name="NonClient" value="True" />
+ <ImagerySection name="caption">
+ <TextComponent>
+ <Area>
+ <Dim type="LeftEdge"><AbsoluteDim value="0" /></Dim>
+ <Dim type="TopEdge"><AbsoluteDim value="0" /></Dim>
+ <Dim type="RightEdge"><UnifiedDim scale="1" type="RightEdge" /></Dim>
+ <Dim type="BottomEdge"><UnifiedDim scale="1" type="BottomEdge" /></Dim>
+ </Area>
+ <ColourProperty name="CaptionColour" />
+ <VertFormat type="CentreAligned" />
+ <HorzFormat type="CentreAligned" />
+ </TextComponent>
+ </ImagerySection>
+ <StateImagery name="Active">
+ <Layer>
+ <Section section="caption" />
+ </Layer>
+ </StateImagery>
+ <StateImagery name="Inactive">
+ <Layer>
+ <Section section="caption" />
+ </Layer>
+ </StateImagery>
+ <StateImagery name="Disabled">
+ <Layer>
+ <Section section="caption" />
+ </Layer>
+ </StateImagery>
+ </WidgetLook>
+
+
+ <WidgetLook name="Vanilla/Button">
+ <PropertyDefinition name="NormalTextColour" initialValue="FFFFFFFF" redrawOnWrite="true" />
+ <PropertyDefinition name="HoverTextColour" initialValue="FFFFFFFF" redrawOnWrite="true" />
+ <PropertyDefinition name="PushedTextColour" initialValue="FFFFFFFF" redrawOnWrite="true" />
+ <PropertyDefinition name="DisabledTextColour" initialValue="FF888888" redrawOnWrite="true" />
+ <PropertyDefinition name="UseStandardImagery" initialValue="True" redrawOnWrite="true" />
+ <PropertyDefinition name="NormalImage" initialValue="" redrawOnWrite="true" />
+ <PropertyDefinition name="HoverImage" initialValue="" redrawOnWrite="true" />
+ <PropertyDefinition name="PushedImage" initialValue="" redrawOnWrite="true" />
+ <PropertyDefinition name="VertImageFormatting" initialValue="Stretched" redrawOnWrite="true" />
+ <PropertyDefinition name="HorzImageFormatting" initialValue="Stretched" redrawOnWrite="true" />
+
+ <Property name="WantsMultiClickEvents" value="False" />
+ <ImagerySection name="label">
+ <TextComponent>
+ <Area>
+ <Dim type="LeftEdge"><AbsoluteDim value="0" /></Dim>
+ <Dim type="TopEdge"><AbsoluteDim value="0" /></Dim>
+ <Dim type="RightEdge"><UnifiedDim scale="1" type="RightEdge" /></Dim>
+ <Dim type="BottomEdge"><UnifiedDim scale="1" offset="-4" type="BottomEdge" /></Dim>
+ </Area>
+ <VertFormat type="CentreAligned" />
+ <HorzFormat type="WordWrapCentreAligned" />
+ </TextComponent>
+ </ImagerySection>
+ <ImagerySection name="normal_image">
+ <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>
+ <ImageProperty name="NormalImage" />
+ <VertFormatProperty name="VertImageFormatting" />
+ <HorzFormatProperty name="HorzImageFormatting" />
+ </ImageryComponent>
+ </ImagerySection>
+ <ImagerySection name="hover_image">
+ <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>
+ <ImageProperty name="HoverImage" />
+ <VertFormatProperty name="VertImageFormatting" />
+ <HorzFormatProperty name="HorzImageFormatting" />
+ </ImageryComponent>
+ </ImagerySection>
+ <ImagerySection name="pushed_image">
+ <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>
+ <ImageProperty name="PushedImage" />
+ <VertFormatProperty name="VertImageFormatting" />
+ <HorzFormatProperty name="HorzImageFormatting" />
+ </ImageryComponent>
+ </ImagerySection>
+
+ <StateImagery name="Normal">
+ <Layer>
+ <Section look="Vanilla/Shared" section="Frame" controlProperty="UseStandardImagery" >
+ <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+ </Section>
+ <Section section="normal_image" />
+ <Section section="label">
+ <ColourProperty name="NormalTextColour" />
+ </Section>
+ </Layer>
+ </StateImagery>
+ <StateImagery name="Hover">
+ <Layer>
+ <Section look="Vanilla/Shared" section="Frame" controlProperty="UseStandardImagery" >
+ <Colours topLeft="FF9F9F9F" topRight="FF9F9F9F" bottomLeft="FF9F9F9F" bottomRight="FF9F9F9F" />
+ </Section>
+ <Section section="hover_image" />
+ <Section section="label">
+ <ColourProperty name="HoverTextColour" />
+ </Section>
+ </Layer>
+ </StateImagery>
+ <StateImagery name="Pushed">
+ <Layer>
+ <Section look="Vanilla/Shared" section="Frame" controlProperty="UseStandardImagery" >
+ <Colours topLeft="FF6F6F6F" topRight="FF6F6F6F" bottomLeft="FF6F6F6F" bottomRight="FF6F6F6F" />
+ </Section>
+ <Section section="pushed_image" />
+ <Section section="label">
+ <ColourProperty name="PushedTextColour" />
+ </Section>
+ </Layer>
+ </StateImagery>
+ <StateImagery name="Disabled">
+ <Layer>
+ <Section look="Vanilla/Shared" section="Frame" controlProperty="UseStandardImagery" >
+ <Colours topLeft="FF3F3F3F" topRight="FF3F3F3F" bottomLeft="FF3F3F3F" bottomRight="FF3F3F3F" />
+ </Section>
+ <Section section="normal_image">
+ <Colours topLeft="FF3F3F3F" topRight="FF3F3F3F" bottomLeft="FF3F3F3F" bottomRight="FF3F3F3F" />
+ </Section>
+ <Section section="label">
+ <ColourProperty name="DisabledTextColour" />
+ </Section>
+ </Layer>
+ </StateImagery>
+ </WidgetLook>
+
+ <WidgetLook name="Vanilla/FrameWindow">
+ <PropertyLinkDefinition name="CaptionColour" widget="__auto_titlebar__" targetProperty="CaptionColour" initialValue="FFFFFFFF" />
+ <PropertyLinkDefinition name="TitlebarFont" widget="__auto_titlebar__" targetProperty="Font" />
+ <Property name="NSSizingCursorImage" value="set:Vanilla-Images image:MouseArrow" />
+ <Property name="EWSizingCursorImage" value="set:Vanilla-Images image:MouseArrow" />
+ <Property name="NWSESizingCursorImage" value="set:Vanilla-Images image:MouseArrow" />
+ <Property name="NESWSizingCursorImage" value="set:Vanilla-Images image:MouseArrow" />
+ <Property name="RollUpEnabled" value="False" />
+ <Property name="UnifiedMinSize" value="{{0.1,0},{0.1,0}}" />
+ <Property name="AutoRenderingSurface" value="True" />
+ <NamedArea name="ClientWithTitleWithFrame">
+ <Area>
+ <Dim type="LeftEdge"><AbsoluteDim value="7" /></Dim>
+ <Dim type="TopEdge"><WidgetDim widget="__auto_titlebar__" dimension="BottomEdge" /></Dim>
+ <Dim type="RightEdge"><UnifiedDim scale="1" offset="-7" type="RightEdge" /></Dim>
+ <Dim type="BottomEdge"><UnifiedDim scale="1" offset="-7" type="BottomEdge" /></Dim>
+ </Area>
+ </NamedArea>
+ <NamedArea name="ClientWithTitleNoFrame">
+ <Area>
+ <Dim type="LeftEdge"><AbsoluteDim value="0" /></Dim>
+ <Dim type="TopEdge"><WidgetDim widget="__auto_titlebar__" dimension="BottomEdge" /></Dim>
+ <Dim type="RightEdge"><UnifiedDim scale="1" type="RightEdge" /></Dim>
+ <Dim type="BottomEdge"><UnifiedDim scale="1" type="BottomEdge" /></Dim>
+ </Area>
+ </NamedArea>
+ <NamedArea name="ClientNoTitleWithFrame">
+ <Area>
+ <Dim type="LeftEdge"><AbsoluteDim value="7" /></Dim>
+ <Dim type="TopEdge"><AbsoluteDim value="7" /></Dim>
+ <Dim type="RightEdge"><UnifiedDim scale="1" offset="-7" type="RightEdge" /></Dim>
+ <Dim type="BottomEdge"><UnifiedDim scale="1" offset="-7" type="BottomEdge" /></Dim>
+ </Area>
+ </NamedArea>
+ <NamedArea name="ClientNoTitleNoFrame">
+ <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>
+ <Child type="Vanilla/Titlebar" nameSuffix="__auto_titlebar__">
+ <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" ><FontDim type="LineSpacing" padding="14" /></Dim>
+ </Area>
+ <Property name="AlwaysOnTop" value="False" />
+ </Child>
+ <Child type="Vanilla/Button" nameSuffix="__auto_closebutton__">
+ <Area>
+ <Dim type="LeftEdge" ><AbsoluteDim value="-7" /></Dim>
+ <Dim type="TopEdge" ><AbsoluteDim value="7" /></Dim>
+ <Dim type="Width" ><AbsoluteDim value="7" /></Dim>
+ <Dim type="Height" ><AbsoluteDim value="7" /></Dim>
+ </Area>
+ <HorzAlignment type="RightAligned" />
+ <Property name="NonClient" value="True" />
+ <Property name="AlwaysOnTop" value="True" />
+ </Child>
+ <ImagerySection name="withtitle_frame">
+ <FrameComponent>
+ <Area>
+ <Dim type="LeftEdge"><AbsoluteDim value="0" /></Dim>
+ <Dim type="TopEdge"><AbsoluteDim value="0" /></Dim>
+ <Dim type="RightEdge"><UnifiedDim scale="1" type="RightEdge" /></Dim>
+ <Dim type="BottomEdge"><UnifiedDim scale="1" type="BottomEdge" /></Dim>
+ </Area>
+ <Image type="TopLeftCorner" imageset="Vanilla-Images" image="FrameTopLeft" />
+ <Image type="TopRightCorner" imageset="Vanilla-Images" image="FrameTopRight" />
+ <Image type="BottomLeftCorner" imageset="Vanilla-Images" image="FrameBottomLeft" />
+ <Image type="BottomRightCorner" imageset="Vanilla-Images" image="FrameBottomRight" />
+ <Image type="LeftEdge" imageset="Vanilla-Images" image="FrameLeft" />
+ <Image type="TopEdge" imageset="Vanilla-Images" image="FrameTop" />
+ <Image type="RightEdge" imageset="Vanilla-Images" image="FrameRight" />
+ <Image type="BottomEdge" imageset="Vanilla-Images" image="FrameBottom" />
+ <Image type="Background" imageset="Vanilla-Images" image="GenericBrush" />
+ <Colours topLeft="FF333333" topRight="FF333333" bottomLeft="FF333333" bottomRight="FF333333" />
+ </FrameComponent>
+ </ImagerySection>
+ <ImagerySection name="notitle_frame">
+ <FrameComponent>
+ <Area>
+ <Dim type="LeftEdge"><AbsoluteDim value="0" /></Dim>
+ <Dim type="TopEdge"><AbsoluteDim value="0" /></Dim>
+ <Dim type="RightEdge"><UnifiedDim scale="1" type="RightEdge" /></Dim>
+ <Dim type="BottomEdge"><UnifiedDim scale="1" type="BottomEdge" /></Dim>
+ </Area>
+ <Image type="TopLeftCorner" imageset="Vanilla-Images" image="FrameTopLeft" />
+ <Image type="TopRightCorner" imageset="Vanilla-Images" image="FrameTopRight" />
+ <Image type="BottomLeftCorner" imageset="Vanilla-Images" image="FrameBottomLeft" />
+ <Image type="BottomRightCorner" imageset="Vanilla-Images" image="FrameBottomRight" />
+ <Image type="LeftEdge" imageset="Vanilla-Images" image="FrameLeft" />
+ <Image type="TopEdge" imageset="Vanilla-Images" image="FrameTop" />
+ <Image type="RightEdge" imageset="Vanilla-Images" image="FrameRight" />
+ <Image type="BottomEdge" imageset="Vanilla-Images" image="FrameBottom" />
+ <Image type="Background" imageset="Vanilla-Images" image="GenericBrush" />
+ <Colours topLeft="FF333333" topRight="FF333333" bottomLeft="FF333333" bottomRight="FF333333" />
+ </FrameComponent>
+ </ImagerySection>
+ <ImagerySection name="withtitle_noframe_client_area">
+ <FrameComponent>
+ <Area>
+ <Dim type="LeftEdge"><AbsoluteDim value="0" /></Dim>
+ <Dim type="TopEdge"><WidgetDim widget="__auto_titlebar__" dimension="BottomEdge" /></Dim>
+ <Dim type="RightEdge"><UnifiedDim scale="1" type="RightEdge" /></Dim>
+ <Dim type="BottomEdge"><UnifiedDim scale="1" type="BottomEdge" /></Dim>
+ </Area>
+ <Image type="TopLeftCorner" imageset="Vanilla-Images" image="FrameTopLeft" />
+ <Image type="TopRightCorner" imageset="Vanilla-Images" image="FrameTopRight" />
+ <Image type="BottomLeftCorner" imageset="Vanilla-Images" image="FrameBottomLeft" />
+ <Image type="BottomRightCorner" imageset="Vanilla-Images" image="FrameBottomRight" />
+ <Image type="LeftEdge" imageset="Vanilla-Images" image="FrameLeft" />
+ <Image type="TopEdge" imageset="Vanilla-Images" image="FrameTop" />
+ <Image type="RightEdge" imageset="Vanilla-Images" image="FrameRight" />
+ <Image type="BottomEdge" imageset="Vanilla-Images" image="FrameBottom" />
+ <Image type="Background" imageset="Vanilla-Images" image="GenericBrush" />
+ <Colours topLeft="FF333333" topRight="FF333333" bottomLeft="FF333333" bottomRight="FF333333" />
+ </FrameComponent>
+ </ImagerySection>
+ <ImagerySection name="notitle_noframe_client_area">
+ <FrameComponent>
+ <Area>
+ <Dim type="LeftEdge"><AbsoluteDim value="0" /></Dim>
+ <Dim type="TopEdge"><AbsoluteDim value="0" /></Dim>
+ <Dim type="RightEdge"><UnifiedDim scale="1" type="RightEdge" /></Dim>
+ <Dim type="BottomEdge"><UnifiedDim scale="1" type="BottomEdge" /></Dim>
+ </Area>
+ <Image type="TopLeftCorner" imageset="Vanilla-Images" image="FrameTopLeft" />
+ <Image type="TopRightCorner" imageset="Vanilla-Images" image="FrameTopRight" />
+ <Image type="BottomLeftCorner" imageset="Vanilla-Images" image="FrameBottomLeft" />
+ <Image type="BottomRightCorner" imageset="Vanilla-Images" image="FrameBottomRight" />
+ <Image type="LeftEdge" imageset="Vanilla-Images" image="FrameLeft" />
+ <Image type="TopEdge" imageset="Vanilla-Images" image="FrameTop" />
+ <Image type="RightEdge" imageset="Vanilla-Images" image="FrameRight" />
+ <Image type="BottomEdge" imageset="Vanilla-Images" image="FrameBottom" />
+ <Image type="Background" imageset="Vanilla-Images" image="GenericBrush" />
+ <Colours topLeft="FF333333" topRight="FF333333" bottomLeft="FF333333" bottomRight="FF333333" />
+ </FrameComponent>
+ </ImagerySection>
+ <StateImagery name="ActiveWithTitleWithFrame">
+ <Layer>
+ <Section section="withtitle_frame" />
+ </Layer>
+ </StateImagery>
+ <StateImagery name="InactiveWithTitleWithFrame">
+ <Layer>
+ <Section section="withtitle_frame" />
+ </Layer>
+ </StateImagery>
+ <StateImagery name="DisabledWithTitleWithFrame">
+ <Layer>
+ <Section section="withtitle_frame" />
+ </Layer>
+ </StateImagery>
+ <StateImagery name="ActiveWithTitleNoFrame">
+ <Layer>
+ <Section section="withtitle_noframe_client_area" />
+ </Layer>
+ </StateImagery>
+ <StateImagery name="InactiveWithTitleNoFrame">
+ <Layer>
+ <Section section="withtitle_noframe_client_area" />
+ </Layer>
+ </StateImagery>
+ <StateImagery name="DisabledWithTitleNoFrame">
+ <Layer>
+ <Section section="withtitle_noframe_client_area" />
+ </Layer>
+ </StateImagery>
+ <StateImagery name="ActiveNoTitleWithFrame">
+ <Layer>
+ <Section section="notitle_frame" />
+ </Layer>
+ </StateImagery>
+ <StateImagery name="InactiveNoTitleWithFrame">
+ <Layer>
+ <Section section="notitle_frame" />
+ </Layer>
+ </StateImagery>
+ <StateImagery name="DisabledNoTitleWithFrame">
+ <Layer>
+ <Section section="notitle_frame" />
+ </Layer>
+ </StateImagery>
+ <StateImagery name="ActiveNoTitleNoFrame">
+ <Layer>
+ <Section section="notitle_noframe_client_area" />
+ </Layer>
+ </StateImagery>
+ <StateImagery name="InactiveNoTitleNoFrame">
+ <Layer>
+ <Section section="notitle_noframe_client_area" />
+ </Layer>
+ </StateImagery>
+ <StateImagery name="DisabledNoTitleNoFrame">
+ <Layer>
+ <Section section="notitle_noframe_client_area" />
+ </Layer>
+ </StateImagery>
+ </WidgetLook>
+
+ <WidgetLook name="Vanilla/Editbox">
+ <PropertyDefinition name="ReadOnlyBGColour" initialValue="FFDFDFDF" redrawOnWrite="true" />
+ <PropertyDefinition name="NormalTextColour" initialValue="FF000000" redrawOnWrite="true" />
+ <PropertyDefinition name="SelectedTextColour" initialValue="FFFFFFFF" redrawOnWrite="true" />
+ <PropertyDefinition name="ActiveSelectionColour" initialValue="FF607FFF" redrawOnWrite="true" />
+ <PropertyDefinition name="InactiveSelectionColour" initialValue="FF808080" redrawOnWrite="true" />
+ <NamedArea name="TextArea">
+ <Area>
+ <Dim type="LeftEdge" ><AbsoluteDim value="7" /></Dim>
+ <Dim type="TopEdge" ><AbsoluteDim value="3" /></Dim>
+ <Dim type="RightEdge" ><UnifiedDim scale="1.0" offset="-7" type="RightEdge" /></Dim>
+ <Dim type="BottomEdge" ><UnifiedDim scale="1.0" offset="-7" type="BottomEdge" /></Dim>
+ </Area>
+ </NamedArea>
+ <ImagerySection name="selection">
+ <ImageryComponent>
+ <Area>
+ <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+ <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+ <Dim type="RightEdge" ><UnifiedDim scale="1.0" type="RightEdge" /></Dim>
+ <Dim type="BottomEdge" ><UnifiedDim scale="1.0" type="BottomEdge" /></Dim>
+ </Area>
+ <Image imageset="Vanilla-Images" image="GenericBrush" />
+ <VertFormat type="Stretched" />
+ <HorzFormat type="Stretched" />
+ </ImageryComponent>
+ </ImagerySection>
+ <ImagerySection name="Carat">
+ <ImageryComponent>
+ <Area>
+ <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+ <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+ <Dim type="Width" ><AbsoluteDim value="2" /></Dim>
+ <Dim type="BottomEdge" ><UnifiedDim scale="1.0" type="BottomEdge" /></Dim>
+ </Area>
+ <Image imageset="Vanilla-Images" image="GenericBrush" />
+ <Colours topLeft="FF2222FF" topRight="FF2222FF" bottomLeft="FF2222FF" bottomRight="FF2222FF" />
+ <VertFormat type="Stretched" />
+ <HorzFormat type="Stretched" />
+ </ImageryComponent>
+ </ImagerySection>
+ <StateImagery name="Enabled">
+ <Layer>
+ <Section look="Vanilla/Shared" section="Frame" />
+ </Layer>
+ </StateImagery>
+ <StateImagery name="ReadOnly">
+ <Layer>
+ <Section look="Vanilla/Shared" section="Frame" >
+ <ColourProperty name="ReadOnlyBGColour" />
+ </Section>
+ </Layer>
+ </StateImagery>
+ <StateImagery name="Disabled">
+ <Layer>
+ <Section look="Vanilla/Shared" section="Frame" >
+ <ColourProperty name="ReadOnlyBGColour" />
+ </Section>
+ </Layer>
+ </StateImagery>
+ <StateImagery name="ActiveSelection">
+ <Layer>
+ <Section section="selection">
+ <ColourProperty name="ActiveSelectionColour" />
+ </Section>
+ </Layer>
+ </StateImagery>
+ <StateImagery name="InactiveSelection">
+ <Layer>
+ <Section section="selection">
+ <ColourProperty name="InactiveSelectionColour" />
+ </Section>
+ </Layer>
+ </StateImagery>
+ </WidgetLook>
+
+ <WidgetLook name="Vanilla/VerticalScrollbarThumb">
+ <Property name="VertFree" value="True" />
+ <Property name="MouseInputPropagationEnabled" value="True" />
+ <ImagerySection name="thumb">
+ <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="Vanilla-Images" image="ScrollbarThumb" />
+ <Colours topLeft="FF494949" topRight="FF494949" bottomLeft="FF494949" bottomRight="FF494949" />
+ <VertFormat type="Stretched" />
+ <HorzFormat type="Stretched" />
+ </ImageryComponent>
+ </ImagerySection>
+ <StateImagery name="Normal">
+ <Layer>
+ <Section section="thumb" />
+ </Layer>
+ </StateImagery>
+ <StateImagery name="Hover">
+ <Layer>
+ <Section section="thumb" />
+ </Layer>
+ </StateImagery>
+ <StateImagery name="Pushed">
+ <Layer>
+ <Section section="thumb" />
+ </Layer>
+ </StateImagery>
+ </WidgetLook>
+
+ <WidgetLook name="Vanilla/HorizontalScrollbarThumb">
+ <Property name="HorzFree" value="True" />
+ <Property name="MouseInputPropagationEnabled" value="True" />
+ <ImagerySection name="thumb">
+ <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="Vanilla-Images" image="ScrollbarThumb" />
+ <Colours topLeft="FF494949" topRight="FF494949" bottomLeft="FF494949" bottomRight="FF494949" />
+ <VertFormat type="Stretched" />
+ <HorzFormat type="Stretched" />
+ </ImageryComponent>
+ </ImagerySection>
+ <StateImagery name="Normal">
+ <Layer>
+ <Section section="thumb" />
+ </Layer>
+ </StateImagery>
+ <StateImagery name="Hover">
+ <Layer>
+ <Section section="thumb" />
+ </Layer>
+ </StateImagery>
+ <StateImagery name="Pushed">
+ <Layer>
+ <Section section="thumb" />
+ </Layer>
+ </StateImagery>
+ </WidgetLook>
+
+ <WidgetLook name="Vanilla/HorizontalScrollbar">
+ <NamedArea name="ThumbTrackArea">
+ <Area>
+ <Dim type="LeftEdge"><WidgetDim widget="__auto_decbtn__" dimension="RightEdge" /></Dim>
+ <Dim type="TopEdge"><AbsoluteDim value="0" /></Dim>
+ <Dim type="RightEdge">
+ <UnifiedDim scale="1" type="RightEdge">
+ <DimOperator op="Subtract">
+ <WidgetDim widget="__auto_incbtn__" dimension="Width" />
+ </DimOperator>
+ </UnifiedDim>
+ </Dim>
+ <Dim type="BottomEdge"><UnifiedDim scale="1" type="BottomEdge" /></Dim>
+ </Area>
+ </NamedArea>
+ <Child type="Vanilla/Button" nameSuffix="__auto_incbtn__">
+ <Area>
+ <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+ <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+ <Dim type="Width" ><UnifiedDim scale="1" type="Height" /></Dim>
+ <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+ </Area>
+ <VertAlignment type="CentreAligned" />
+ <HorzAlignment type="RightAligned" />
+ <Property name="UseStandardImagery" value="False" />
+ <Property name="NormalImage" value="set:Vanilla-Images image:ScrollRightArrow" />
+ <Property name="HoverImage" value="set:Vanilla-Images image:ScrollRightArrow" />
+ <Property name="PushedImage" value="set:Vanilla-Images image:ScrollRightArrow" />
+ </Child>
+ <Child type="Vanilla/Button" 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="Height" /></Dim>
+ <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+ </Area>
+ <VertAlignment type="CentreAligned" />
+ <Property name="UseStandardImagery" value="False" />
+ <Property name="NormalImage" value="set:Vanilla-Images image:ScrollLeftArrow" />
+ <Property name="HoverImage" value="set:Vanilla-Images image:ScrollLeftArrow" />
+ <Property name="PushedImage" value="set:Vanilla-Images image:ScrollLeftArrow" />
+ </Child>
+ <Child type="Vanilla/HorizontalScrollbarThumb" 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="Height" /></Dim>
+ <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
+ </Area>
+ </Child>
+ <ImagerySection name="main">
+ <ImageryComponent>
+ <Area>
+ <Dim type="LeftEdge"><WidgetDim widget="__auto_decbtn__" dimension="RightEdge" /></Dim>
+ <Dim type="TopEdge"><AbsoluteDim value="0" /></Dim>
+ <Dim type="RightEdge">
+ <UnifiedDim scale="1" type="RightEdge">
+ <DimOperator op="Subtract">
+ <WidgetDim widget="__auto_incbtn__" dimension="Width" />
+ </DimOperator>
+ </UnifiedDim>
+ </Dim>
+ <Dim type="BottomEdge"><UnifiedDim scale="1" type="BottomEdge" /></Dim>
+ </Area>
+ <Image imageset="Vanilla-Images" image="HorzScrollContainer" />
+ <VertFormat type="Stretched" />
+ <HorzFormat type="Stretched" />
+ </ImageryComponent>
+ </ImagerySection>
+ <StateImagery name="Enabled">
+ <Layer>
+ <Section section="main" />
+ </Layer>
+ </StateImagery>
+ <StateImagery name="Disabled">
+ <Layer>
+ <Section section="main" />
+ </Layer>
+ </StateImagery>
+ </WidgetLook>
+
+ <WidgetLook name="Vanilla/VerticalScrollbar">
+ <Property name="VerticalScrollbar" value="True" />
+ <NamedArea name="ThumbTrackArea">
+ <Area>
+ <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+ <Dim type="TopEdge" ><WidgetDim widget="__auto_decbtn__" dimension="BottomEdge" /></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_incbtn__" dimension="Height" />
+ </DimOperator>
+ </UnifiedDim>
+ </Dim>
+ </Area>
+ </NamedArea>
+ <Child type="Vanilla/Button" nameSuffix="__auto_incbtn__">
+ <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="Width" /></Dim>
+ </Area>
+ <VertAlignment type="BottomAligned" />
+ <HorzAlignment type="CentreAligned" />
+ <Property name="UseStandardImagery" value="False" />
+ <Property name="NormalImage" value="set:Vanilla-Images image:ScrollDownArrow" />
+ <Property name="HoverImage" value="set:Vanilla-Images image:ScrollDownArrow" />
+ <Property name="PushedImage" value="set:Vanilla-Images image:ScrollDownArrow" />
+ </Child>
+ <Child type="Vanilla/Button" 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" ><UnifiedDim scale="1" type="Width" /></Dim>
+ </Area>
+ <HorzAlignment type="CentreAligned" />
+ <Property name="UseStandardImagery" value="False" />
+ <Property name="NormalImage" value="set:Vanilla-Images image:ScrollUpArrow" />
+ <Property name="HoverImage" value="set:Vanilla-Images image:ScrollUpArrow" />
+ <Property name="PushedImage" value="set:Vanilla-Images image:ScrollUpArrow" />
+ </Child>
+ <Child type="Vanilla/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="1" type="Width" /></Dim>
+ </Area>
+ </Child>
+ <ImagerySection name="main">
+ <ImageryComponent>
+ <Area>
+ <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+ <Dim type="TopEdge" ><WidgetDim widget="__auto_decbtn__" dimension="BottomEdge" /></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_incbtn__" dimension="Height" />
+ </DimOperator>
+ </UnifiedDim>
+ </Dim>
+ </Area>
+ <Image imageset="Vanilla-Images" image="VertScrollContainer" />
+ <VertFormat type="Stretched" />
+ <HorzFormat type="Stretched" />
+ </ImageryComponent>
+ </ImagerySection>
+ <StateImagery name="Enabled">
+ <Layer>
+ <Section section="main" />
+ </Layer>
+ </StateImagery>
+ <StateImagery name="Disabled">
+ <Layer>
+ <Section section="main" />
+ </Layer>
+ </StateImagery>
+ </WidgetLook>
+
+ <WidgetLook name="Vanilla/StaticImage">
+ <PropertyDefinition name="ImageColours" initialValue="tl:FFFFFFFF tr:FFFFFFFF bl:FFFFFFFF br:FFFFFFFF" redrawOnWrite="true" />
+ <PropertyDefinition name="VertFormatting" initialValue="Stretched" redrawOnWrite="true" />
+ <PropertyDefinition name="HorzFormatting" initialValue="Stretched" redrawOnWrite="true" />
+ <Property name="BackgroundEnabled" value="True" />
+ <Property name="FrameEnabled" value="True" />
+ <ImagerySection name="image_withframe">
+ <ImageryComponent>
+ <Area>
+ <Dim type="LeftEdge" ><ImageDim imageset="Vanilla-Images" image="FrameLeft" dimension="Width" /></Dim>
+ <Dim type="TopEdge" ><ImageDim imageset="Vanilla-Images" image="FrameTop" dimension="Height" /></Dim>
+ <Dim type="RightEdge" >
+ <UnifiedDim scale="1" type="RightEdge">
+ <DimOperator op="Subtract">
+ <ImageDim imageset="Vanilla-Images" image="FrameRight" dimension="Width" />
+ </DimOperator>
+ </UnifiedDim>
+ </Dim>
+ <Dim type="BottomEdge" >
+ <UnifiedDim scale="1" type="BottomEdge">
+ <DimOperator op="Subtract">
+ <ImageDim imageset="Vanilla-Images" image="FrameBottom" dimension="Height" />
+ </DimOperator>
+ </UnifiedDim>
+ </Dim>
+ </Area>
+ <ImageProperty name="Image" />
+ <ColourRectProperty name="ImageColours" />
+ <VertFormatProperty name="VertFormatting" />
+ <HorzFormatProperty name="HorzFormatting" />
+ </ImageryComponent>
+ </ImagerySection>
+ <ImagerySection name="image_noframe">
+ <ImageryComponent>
+ <Area>
+ <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+ <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+ <Dim type="RightEdge" ><UnifiedDim scale="1.0" type="RightEdge" /></Dim>
+ <Dim type="BottomEdge" ><UnifiedDim scale="1.0" type="BottomEdge" /></Dim>
+ </Area>
+ <ImageProperty name="Image" />
+ <ColourRectProperty name="ImageColours" />
+ <VertFormatProperty name="VertFormatting" />
+ <HorzFormatProperty name="HorzFormatting" />
+ </ImageryComponent>
+ </ImagerySection>
+ <StateImagery name="Enabled" />
+ <StateImagery name="Disabled" />
+ <StateImagery name="EnabledFrame">
+ <Layer>
+ <Section look="Vanilla/Shared" section="FrameOnly">
+ <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+ </Section>
+ </Layer>
+ </StateImagery>
+ <StateImagery name="DisabledFrame">
+ <Layer>
+ <Section look="Vanilla/Shared" section="FrameOnly">
+ <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+ </Section>
+ </Layer>
+ </StateImagery>
+ <StateImagery name="WithFrameEnabledBackground">
+ <Layer>
+ <Section look="Vanilla/Shared" section="BackgroundOnly">
+ <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+ </Section>
+ </Layer>
+ </StateImagery>
+ <StateImagery name="WithFrameDisabledBackground">
+ <Layer>
+ <Section look="Vanilla/Shared" section="BackgroundOnly">
+ <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+ </Section>
+ </Layer>
+ </StateImagery>
+ <StateImagery name="NoFrameEnabledBackground">
+ <Layer>
+ <Section look="Vanilla/Shared" section="BackgroundOnlyFull">
+ <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+ </Section>
+ </Layer>
+ </StateImagery>
+ <StateImagery name="NoFrameDisabledBackground">
+ <Layer>
+ <Section look="Vanilla/Shared" section="BackgroundOnlyFull">
+ <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+ </Section>
+ </Layer>
+ </StateImagery>
+ <StateImagery name="WithFrameImage">
+ <Layer>
+ <Section section="image_withframe" />
+ </Layer>
+ </StateImagery>
+ <StateImagery name="NoFrameImage">
+ <Layer>
+ <Section section="image_noframe" />
+ </Layer>
+ </StateImagery>
+ </WidgetLook>
+
+ <WidgetLook name="Vanilla/StaticText">
+ <Property name="BackgroundEnabled" value="True" />
+ <Property name="FrameEnabled" value="True" />
+ <NamedArea name="WithFrameTextRenderArea">
+ <Area>
+ <Dim type="LeftEdge" ><ImageDim imageset="Vanilla-Images" image="FrameLeft" dimension="Width" /></Dim>
+ <Dim type="TopEdge" ><ImageDim imageset="Vanilla-Images" image="FrameTop" dimension="Height" /></Dim>
+ <Dim type="RightEdge" >
+ <UnifiedDim scale="1" type="RightEdge">
+ <DimOperator op="Subtract">
+ <ImageDim imageset="Vanilla-Images" image="FrameRight" dimension="Width" />
+ </DimOperator>
+ </UnifiedDim>
+ </Dim>
+ <Dim type="BottomEdge" >
+ <UnifiedDim scale="1" type="BottomEdge">
+ <DimOperator op="Subtract">
+ <ImageDim imageset="Vanilla-Images" image="FrameBottom" dimension="Height" />
+ </DimOperator>
+ </UnifiedDim>
+ </Dim>
+ </Area>
+ </NamedArea>
+ <NamedArea name="WithFrameTextRenderAreaHScroll">
+ <Area>
+ <Dim type="LeftEdge" ><ImageDim imageset="Vanilla-Images" image="FrameLeft" dimension="Width" /></Dim>
+ <Dim type="TopEdge" ><ImageDim imageset="Vanilla-Images" image="FrameTop" dimension="Height" /></Dim>
+ <Dim type="RightEdge" >
+ <UnifiedDim scale="1" type="RightEdge">
+ <DimOperator op="Subtract">
+ <ImageDim imageset="Vanilla-Images" image="FrameRight" dimension="Width" />
+ </DimOperator>
+ </UnifiedDim>
+ </Dim>
+ <Dim type="BottomEdge" >
+ <UnifiedDim scale="1" offset="-20" type="BottomEdge" />
+ </Dim>
+ </Area>
+ </NamedArea>
+ <NamedArea name="WithFrameTextRenderAreaVScroll">
+ <Area>
+ <Dim type="LeftEdge" ><ImageDim imageset="Vanilla-Images" image="FrameLeft" dimension="Width" /></Dim>
+ <Dim type="TopEdge" ><ImageDim imageset="Vanilla-Images" image="FrameTop" dimension="Height" /></Dim>
+ <Dim type="RightEdge" >
+ <UnifiedDim scale="1" offset="-20" type="RightEdge" />
+ </Dim>
+ <Dim type="BottomEdge" >
+ <UnifiedDim scale="1" type="BottomEdge">
+ <DimOperator op="Subtract">
+ <ImageDim imageset="Vanilla-Images" image="FrameBottom" dimension="Height" />
+ </DimOperator>
+ </UnifiedDim>
+ </Dim>
+ </Area>
+ </NamedArea>
+ <NamedArea name="WithFrameTextRenderAreaHVScroll">
+ <Area>
+ <Dim type="LeftEdge" ><ImageDim imageset="Vanilla-Images" image="FrameLeft" dimension="Width" /></Dim>
+ <Dim type="TopEdge" ><ImageDim imageset="Vanilla-Images" image="FrameTop" dimension="Height" /></Dim>
+ <Dim type="RightEdge" >
+ <UnifiedDim scale="1" offset="-20" type="RightEdge" />
+ </Dim>
+ <Dim type="BottomEdge" >
+ <UnifiedDim scale="1" offset="-20" type="BottomEdge" />
+ </Dim>
+ </Area>
+ </NamedArea>
+ <NamedArea name="NoFrameTextRenderArea">
+ <Area>
+ <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+ <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+ <Dim type="RightEdge" ><UnifiedDim scale="1" type="RightEdge" /></Dim>
+ <Dim type="BottomEdge" ><UnifiedDim scale="1" type="BottomEdge" /></Dim>
+ </Area>
+ </NamedArea>
+ <NamedArea name="NoFrameTextRenderAreaHScroll">
+ <Area>
+ <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+ <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+ <Dim type="RightEdge" ><UnifiedDim scale="1" type="RightEdge" /></Dim>
+ <Dim type="BottomEdge" ><UnifiedDim scale="1" offset="-20" type="BottomEdge" /></Dim>
+ </Area>
+ </NamedArea>
+ <NamedArea name="NoFrameTextRenderAreaVScroll">
+ <Area>
+ <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+ <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+ <Dim type="RightEdge" ><UnifiedDim scale="1" offset="-20" type="RightEdge" /></Dim>
+ <Dim type="BottomEdge" ><UnifiedDim scale="1" type="BottomEdge" /></Dim>
+ </Area>
+ </NamedArea>
+ <NamedArea name="NoFrameTextRenderAreaHVScroll">
+ <Area>
+ <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+ <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+ <Dim type="RightEdge" ><UnifiedDim scale="1" offset="-20" type="RightEdge" /></Dim>
+ <Dim type="BottomEdge" ><UnifiedDim scale="1" offset="-20" type="BottomEdge" /></Dim>
+ </Area>
+ </NamedArea>
+ <Child type="Vanilla/HorizontalScrollbar" nameSuffix="__auto_hscrollbar__">
+ <Area>
+ <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+ <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+ <Dim type="Width" ><UnifiedDim scale="1" offset="-20" type="Width" /></Dim>
+ <Dim type="Height" ><AbsoluteDim value="20" /></Dim>
+ </Area>
+ <VertAlignment type="BottomAligned" />
+ </Child>
+ <Child type="Vanilla/VerticalScrollbar" nameSuffix="__auto_vscrollbar__">
+ <Area>
+ <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" offset="-20" type="Height" /></Dim>
+ </Area>
+ <HorzAlignment type="RightAligned" />
+ </Child>
+ <StateImagery name="Enabled" />
+ <StateImagery name="Disabled" />
+ <StateImagery name="EnabledFrame">
+ <Layer>
+ <Section look="Vanilla/Shared" section="FrameOnly">
+ <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+ </Section>
+ </Layer>
+ </StateImagery>
+ <StateImagery name="DisabledFrame">
+ <Layer>
+ <Section look="Vanilla/Shared" section="FrameOnly">
+ <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+ </Section>
+ </Layer>
+ </StateImagery>
+ <StateImagery name="WithFrameEnabledBackground">
+ <Layer>
+ <Section look="Vanilla/Shared" section="BackgroundOnly">
+ <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+ </Section>
+ </Layer>
+ </StateImagery>
+ <StateImagery name="WithFrameDisabledBackground">
+ <Layer>
+ <Section look="Vanilla/Shared" section="BackgroundOnly">
+ <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+ </Section>
+ </Layer>
+ </StateImagery>
+ <StateImagery name="NoFrameEnabledBackground">
+ <Layer>
+ <Section look="Vanilla/Shared" section="BackgroundOnlyFull">
+ <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+ </Section>
+ </Layer>
+ </StateImagery>
+ <StateImagery name="NoFrameDisabledBackground">
+ <Layer>
+ <Section look="Vanilla/Shared" section="BackgroundOnlyFull">
+ <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+ </Section>
+ </Layer>
+ </StateImagery>
+ </WidgetLook>
+
+ <WidgetLook name="Vanilla/Listbox">
+ <Property name="ForceVertScrollbar" value="True" />
+ <NamedArea name="ItemRenderingArea">
+ <Area>
+ <Dim type="LeftEdge" ><ImageDim imageset="Vanilla-Images" image="FrameLeft" dimension="Width" /></Dim>
+ <Dim type="TopEdge" ><ImageDim imageset="Vanilla-Images" image="FrameTop" dimension="Height" /></Dim>
+ <Dim type="RightEdge" >
+ <UnifiedDim scale="1" type="RightEdge">
+ <DimOperator op="Subtract">
+ <ImageDim imageset="Vanilla-Images" image="FrameRight" dimension="Width" />
+ </DimOperator>
+ </UnifiedDim>
+ </Dim>
+ <Dim type="BottomEdge" >
+ <UnifiedDim scale="1" type="BottomEdge">
+ <DimOperator op="Subtract">
+ <ImageDim imageset="Vanilla-Images" image="FrameBottom" dimension="Height" />
+ </DimOperator>
+ </UnifiedDim>
+ </Dim>
+ </Area>
+ </NamedArea>
+ <Child type="Vanilla/HorizontalScrollbar" nameSuffix="__auto_hscrollbar__">
+ <Area>
+ <Dim type="LeftEdge" ><AbsoluteDim value="5" /></Dim>
+ <Dim type="TopEdge" ><AbsoluteDim value="-5" /></Dim>
+ <Dim type="Width" ><UnifiedDim scale="1" offset="-25" type="Width" /></Dim>
+ <Dim type="Height" ><AbsoluteDim value="20" /></Dim>
+ </Area>
+ <VertAlignment type="BottomAligned" />
+ </Child>
+ <Child type="Vanilla/VerticalScrollbar" nameSuffix="__auto_vscrollbar__">
+ <Area>
+ <Dim type="LeftEdge" ><AbsoluteDim value="-5" /></Dim>
+ <Dim type="TopEdge" ><AbsoluteDim value="5" /></Dim>
+ <Dim type="Width" ><AbsoluteDim value="20" /></Dim>
+ <Dim type="Height" ><UnifiedDim scale="1" offset="-10" type="Height" /></Dim>
+ </Area>
+ <HorzAlignment type="RightAligned" />
+ </Child>
+ <StateImagery name="Enabled">
+ <Layer>
+ <Section look="Vanilla/Shared" section="Frame">
+ <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+ </Section>
+ </Layer>
+ </StateImagery>
+ <StateImagery name="Disabled">
+ <Layer>
+ <Section look="Vanilla/Shared" section="Frame">
+ <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+ </Section>
+ </Layer>
+ </StateImagery>
+ </WidgetLook>
+
+ <WidgetLook name="Vanilla/MultiLineEditbox">
+ <PropertyDefinition name="NormalTextColour" initialValue="FF000000" redrawOnWrite="true" />
+ <PropertyDefinition name="SelectedTextColour" initialValue="FFFFFFFF" redrawOnWrite="true" />
+ <PropertyDefinition name="ActiveSelectionColour" initialValue="FF607FFF" redrawOnWrite="true" />
+ <PropertyDefinition name="InactiveSelectionColour" initialValue="FF808080" redrawOnWrite="true" />
+ <Property name="SelectionBrushImage" value="set:Vanilla-Images image:GenericBrush" />
+ <NamedArea name="TextArea">
+ <Area>
+ <Dim type="LeftEdge" ><ImageDim imageset="Vanilla-Images" image="FrameLeft" dimension="Width" /></Dim>
+ <Dim type="TopEdge" ><ImageDim imageset="Vanilla-Images" image="FrameTop" dimension="Height" /></Dim>
+ <Dim type="RightEdge" >
+ <UnifiedDim scale="1" type="RightEdge">
+ <DimOperator op="Subtract">
+ <ImageDim imageset="Vanilla-Images" image="FrameRight" dimension="Width" />
+ </DimOperator>
+ </UnifiedDim>
+ </Dim>
+ <Dim type="BottomEdge" >
+ <UnifiedDim scale="1" type="BottomEdge">
+ <DimOperator op="Subtract">
+ <ImageDim imageset="Vanilla-Images" image="FrameBottom" dimension="Height" />
+ </DimOperator>
+ </UnifiedDim>
+ </Dim>
+ </Area>
+ </NamedArea>
+ <Child type="Vanilla/HorizontalScrollbar" nameSuffix="__auto_hscrollbar__">
+ <Area>
+ <Dim type="LeftEdge" ><AbsoluteDim value="5" /></Dim>
+ <Dim type="TopEdge" ><AbsoluteDim value="-5" /></Dim>
+ <Dim type="Width" ><UnifiedDim scale="1" offset="-25" type="Width" /></Dim>
+ <Dim type="Height" ><AbsoluteDim value="20" /></Dim>
+ </Area>
+ <VertAlignment type="BottomAligned" />
+ </Child>
+ <Child type="Vanilla/VerticalScrollbar" nameSuffix="__auto_vscrollbar__">
+ <Area>
+ <Dim type="LeftEdge" ><AbsoluteDim value="-5" /></Dim>
+ <Dim type="TopEdge" ><AbsoluteDim value="5" /></Dim>
+ <Dim type="Width" ><AbsoluteDim value="20" /></Dim>
+ <Dim type="Height" ><UnifiedDim scale="1" offset="-10" type="Height" /></Dim>
+ </Area>
+ <HorzAlignment type="RightAligned" />
+ </Child>
+ <ImagerySection name="Carat">
+ <ImageryComponent>
+ <Area>
+ <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+ <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+ <Dim type="Width" ><AbsoluteDim value="2" /></Dim>
+ <Dim type="BottomEdge" ><UnifiedDim scale="1.0" type="BottomEdge" /></Dim>
+ </Area>
+ <Image imageset="Vanilla-Images" image="GenericBrush" />
+ <Colours topLeft="FF2222FF" topRight="FF2222FF" bottomLeft="FF2222FF" bottomRight="FF2222FF" />
+ <VertFormat type="Stretched" />
+ <HorzFormat type="Stretched" />
+ </ImageryComponent>
+ </ImagerySection>
+ <StateImagery name="Enabled">
+ <Layer>
+ <Section look="Vanilla/Shared" section="Frame" />
+ </Layer>
+ </StateImagery>
+ <StateImagery name="ReadOnly">
+ <Layer>
+ <Section look="Vanilla/Shared" section="Frame" />
+ </Layer>
+ </StateImagery>
+ <StateImagery name="Disabled">
+ <Layer>
+ <Section look="Vanilla/Shared" section="Frame" />
+ </Layer>
+ </StateImagery>
+ </WidgetLook>
+
+ <WidgetLook name="Vanilla/Combobox">
+ <PropertyLinkDefinition name="NormalEditTextColour" widget="__auto_editbox__" targetProperty="NormalTextColour" initialValue="FF000000" />
+ <PropertyLinkDefinition name="SelectedEditTextColour" widget="__auto_editbox__" targetProperty="SelectedTextColour" initialValue="FFFFFFFF" />
+ <PropertyLinkDefinition name="ActiveEditSelectionColour" widget="__auto_editbox__" targetProperty="ActiveSelectionColour" initialValue="FF607FFF" />
+ <PropertyLinkDefinition name="InactiveEditSelectionColour" widget="__auto_editbox__" targetProperty="InactiveSelectionColour" initialValue="FF808080" />
+ <Child type="Vanilla/Editbox" nameSuffix="__auto_editbox__">
+ <Area>
+ <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+ <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+ <Dim type="RightEdge" >
+ <UnifiedDim scale="1" type="RightEdge">
+ <DimOperator op="Subtract">
+ <FontDim type="LineSpacing" padding="10" />
+ </DimOperator>
+ </UnifiedDim>
+ </Dim>
+ <Dim type="Height" >
+ <FontDim type="LineSpacing" padding="10" />
+ </Dim>
+ </Area>
+ </Child>
+ <Child type="Vanilla/ComboDropList" nameSuffix="__auto_droplist__">
+ <Area>
+ <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+ <Dim type="TopEdge" ><WidgetDim widget="__auto_editbox__" dimension="BottomEdge" /></Dim>
+ <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
+ <Dim type="BottomEdge" ><UnifiedDim scale="1" type="BottomEdge" /></Dim>
+ </Area>
+ </Child>
+ <Child type="Vanilla/Button" nameSuffix="__auto_button__">
+ <Area>
+ <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
+ <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
+ <Dim type="Width" ><WidgetDim widget="__auto_editbox__" dimension="Height" /></Dim>
+ <Dim type="Height" ><WidgetDim widget="__auto_editbox__" dimension="Height" /></Dim>
+ </Area>
+ <HorzAlignment type="RightAligned" />
+ </Child>
+ <StateImagery name="Enabled" />
+ <StateImagery name="Disabled" />
+ </WidgetLook>
+
+ <WidgetLook name="Vanilla/ComboDropList">
+ <Property name="ForceVertScrollbar" value="True" />
+ <NamedArea name="ItemRenderingArea">
+ <Area>
+ <Dim type="LeftEdge" ><ImageDim imageset="Vanilla-Images" image="FrameLeft" dimension="Width" /></Dim>
+ <Dim type="TopEdge" ><ImageDim imageset="Vanilla-Images" image="FrameTop" dimension="Height" /></Dim>
+ <Dim type="RightEdge" >
+ <UnifiedDim scale="1" type="RightEdge">
+ <DimOperator op="Subtract">
+ <ImageDim imageset="Vanilla-Images" image="FrameRight" dimension="Width" />
+ </DimOperator>
+ </UnifiedDim>
+ </Dim>
+ <Dim type="BottomEdge" >
+ <UnifiedDim scale="1" type="BottomEdge">
+ <DimOperator op="Subtract">
+ <ImageDim imageset="Vanilla-Images" image="FrameBottom" dimension="Height" />
+ </DimOperator>
+ </UnifiedDim>
+ </Dim>
+ </Area>
+ </NamedArea>
+ <NamedArea name="ItemRenderingAreaVScroll">
+ <Area>
+ <Dim type="LeftEdge" ><ImageDim imageset="Vanilla-Images" image="FrameLeft" dimension="Width" /></Dim>
+ <Dim type="TopEdge" ><ImageDim imageset="Vanilla-Images" image="FrameTop" dimension="Height" /></Dim>
+ <Dim type="RightEdge" >
+ <UnifiedDim scale="1" type="RightEdge">
+ <DimOperator op="Subtract">
+ <AbsoluteDim value="30" />
+ </DimOperator>
+ </UnifiedDim>
+ </Dim>
+ <Dim type="BottomEdge" >
+ <UnifiedDim scale="1" type="BottomEdge">
+ <DimOperator op="Subtract">
+ <ImageDim imageset="Vanilla-Images" image="FrameBottom" dimension="Height" />
+ </DimOperator>
+ </UnifiedDim>
+ </Dim>
+ </Area>
+ </NamedArea>
+ <NamedArea name="ItemRenderingAreaHVScroll">
+ <Area>
+ <Dim type="LeftEdge" ><ImageDim imageset="Vanilla-Images" image="FrameLeft" dimension="Width" /></Dim>
+ <Dim type="TopEdge" ><ImageDim imageset="Vanilla-Images" image="FrameTop" dimension="Height" /></Dim>
+ <Dim type="RightEdge" >
+ <UnifiedDim scale="1" type="RightEdge">
+ <DimOperator op="Subtract">
+ <AbsoluteDim value="30" />
+ </DimOperator>
+ </UnifiedDim>
+ </Dim>
+ <Dim type="BottomEdge" >
+ <UnifiedDim scale="1" type="BottomEdge">
+ <DimOperator op="Subtract">
+ <AbsoluteDim value="30" />
+ </DimOperator>
+ </UnifiedDim>
+ </Dim>
+ </Area>
+ </NamedArea>
+ <Child type="Vanilla/HorizontalScrollbar" nameSuffix="__auto_hscrollbar__">
+ <Area>
+ <Dim type="LeftEdge" ><AbsoluteDim value="5" /></Dim>
+ <Dim type="TopEdge" ><AbsoluteDim value="-5" /></Dim>
+ <Dim type="Width" ><UnifiedDim scale="1" offset="-30" type="Width" /></Dim>
+ <Dim type="Height" ><AbsoluteDim value="20" /></Dim>
+ </Area>
+ <VertAlignment type="BottomAligned" />
+ </Child>
+ <Child type="Vanilla/VerticalScrollbar" nameSuffix="__auto_vscrollbar__">
+ <Area>
+ <Dim type="LeftEdge" ><AbsoluteDim value="-5" /></Dim>
+ <Dim type="TopEdge" ><AbsoluteDim value="5" /></Dim>
+ <Dim type="Width" ><AbsoluteDim value="20" /></Dim>
+ <Dim type="Height" ><UnifiedDim scale="1" offset="-10" type="Height" /></Dim>
+ </Area>
+ <HorzAlignment type="RightAligned" />
+ </Child>
+ <StateImagery name="Enabled">
+ <Layer>
+ <Section look="Vanilla/Shared" section="Frame">
+ <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+ </Section>
+ </Layer>
+ </StateImagery>
+ <StateImagery name="Disabled">
+ <Layer>
+ <Section look="Vanilla/Shared" section="Frame">
+ <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+ </Section>
+ </Layer>
+ </StateImagery>
+ </WidgetLook>
+
+ <WidgetLook name="Vanilla/ProgressBar">
+ <PropertyDefinition name="EnabledColour" initialValue="FF607FFF" redrawOnWrite="true" />
+ <PropertyDefinition name="DisabledColour" initialValue="FF808080" redrawOnWrite="true" />
+
+ <NamedArea name="ProgressArea">
+ <Area>
+ <Dim type="LeftEdge" >
+ <ImageDim imageset="Vanilla-Images" image="FrameLeft" dimension="Width" />
+ </Dim>
+ <Dim type="TopEdge" >
+ <ImageDim imageset="Vanilla-Images" image="FrameTop" dimension="Height" />
+ </Dim>
+ <Dim type="RightEdge" >
+ <UnifiedDim scale="1.0" type="RightEdge">
+ <DimOperator op="Subtract">
+ <ImageDim imageset="Vanilla-Images" image="FrameRight" dimension="Width" />
+ </DimOperator>
+ </UnifiedDim>
+ </Dim>
+ <Dim type="BottomEdge" >
+ <UnifiedDim scale="1.0" type="BottomEdge">
+ <DimOperator op="Subtract">
+ <ImageDim imageset="Vanilla-Images" image="FrameBottom" dimension="Height" />
+ </DimOperator>
+ </UnifiedDim>
+ </Dim>
+ </Area>
+ </NamedArea>
+ <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="Vanilla-Images" image="GenericBrush" />
+ <VertFormat type="Stretched" />
+ <HorzFormat type="Stretched" />
+ </ImageryComponent>
+ </ImagerySection>
+ <StateImagery name="Enabled">
+ <Layer>
+ <Section look="Vanilla/Shared" section="Frame" />
+ </Layer>
+ </StateImagery>
+ <StateImagery name="Disabled">
+ <Layer>
+ <Section look="Vanilla/Shared" section="Frame" />
+ </Layer>
+ </StateImagery>
+ <StateImagery name="EnabledProgress">
+ <Layer>
+ <Section section="progress_lights">
+ <ColourProperty name="EnabledColour" />
+ </Section>
+ </Layer>
+ </StateImagery>
+ <StateImagery name="DisabledProgress">
+ <Layer>
+ <Section section="progress_lights">
+ <ColourProperty name="DisabledColour" />
+ </Section>
+ </Layer>
+ </StateImagery>
+ </WidgetLook>
+
+</Falagard>
diff --git a/GUI/VanillaSkin.scheme b/GUI/VanillaSkin.scheme
new file mode 100644
index 0000000..6940ac9
--- /dev/null
+++ b/GUI/VanillaSkin.scheme
@@ -0,0 +1,27 @@
+<?xml version="1.0" ?>
+<GUIScheme Name="VanillaSkin">
+ <Imageset Filename="Vanilla.imageset" />
+ <LookNFeel Filename="Vanilla.looknfeel" />
+ <WindowRendererSet Filename="CEGUIFalagardWRBase" />
+ <FalagardMapping WindowType="Vanilla/Titlebar" TargetType="CEGUI/Titlebar" Renderer="Falagard/Titlebar" LookNFeel="Vanilla/Titlebar" />
+ <FalagardMapping WindowType="Vanilla/Button" TargetType="CEGUI/PushButton" Renderer="Falagard/Button" LookNFeel="Vanilla/Button" />
+ <FalagardMapping WindowType="Vanilla/FrameWindow" TargetType="CEGUI/FrameWindow" Renderer="Falagard/FrameWindow" LookNFeel="Vanilla/FrameWindow" />
+ <FalagardMapping WindowType="Vanilla/Editbox" TargetType="CEGUI/Editbox" Renderer="Falagard/Editbox" LookNFeel="Vanilla/Editbox" />
+ <FalagardMapping WindowType="Vanilla/VerticalScrollbarThumb" TargetType="CEGUI/Thumb" Renderer="Falagard/Button" LookNFeel="Vanilla/VerticalScrollbarThumb" />
+ <FalagardMapping WindowType="Vanilla/VerticalScrollbar" TargetType="CEGUI/Scrollbar" Renderer="Falagard/Scrollbar" LookNFeel="Vanilla/VerticalScrollbar" />
+ <FalagardMapping WindowType="Vanilla/HorizontalScrollbarThumb" TargetType="CEGUI/Thumb" Renderer="Falagard/Button" LookNFeel="Vanilla/HorizontalScrollbarThumb" />
+ <FalagardMapping WindowType="Vanilla/HorizontalScrollbar" TargetType="CEGUI/Scrollbar" Renderer="Falagard/Scrollbar" LookNFeel="Vanilla/HorizontalScrollbar" />
+ <FalagardMapping WindowType="Vanilla/StaticImage" TargetType="DefaultWindow" Renderer="Falagard/StaticImage" LookNFeel="Vanilla/StaticImage" />
+ <FalagardMapping WindowType="Vanilla/StaticText" TargetType="DefaultWindow" Renderer="Falagard/StaticText" LookNFeel="Vanilla/StaticText" />
+ <FalagardMapping WindowType="Vanilla/Listbox" TargetType="CEGUI/Listbox" Renderer="Falagard/Listbox" LookNFeel="Vanilla/Listbox" />
+ <FalagardMapping WindowType="Vanilla/MultiLineEditbox" TargetType="CEGUI/MultiLineEditbox" Renderer="Falagard/MultiLineEditbox" LookNFeel="Vanilla/MultiLineEditbox" />
+ <FalagardMapping WindowType="Vanilla/ComboDropList" TargetType="CEGUI/ComboDropList" Renderer="Falagard/Listbox" LookNFeel="Vanilla/ComboDropList" />
+ <FalagardMapping WindowType="Vanilla/Combobox" TargetType="CEGUI/Combobox" Renderer="Falagard/Default" LookNFeel="Vanilla/Combobox" />
+ <FalagardMapping WindowType="Vanilla/ProgressBar" TargetType="CEGUI/ProgressBar" Renderer="Falagard/ProgressBar" LookNFeel="Vanilla/ProgressBar" />
+<!--
+ <FalagardMapping WindowType="Vanilla/ScrollablePane" TargetType="Falagard/ScrollablePane" LookNFeel="Vanilla/ScrollablePane" />
+ <FalagardMapping WindowType="Vanilla/Checkbox" TargetType="Falagard/Checkbox" LookNFeel="Vanilla/Checkbox" />
+ <FalagardMapping WindowType="Vanilla/RadioButton" TargetType="Falagard/RadioButton" LookNFeel="Vanilla/RadioButton" />
+ <FalagardMapping WindowType="Vanilla/ScrollablePane" TargetType="Falagard/ScrollablePane" LookNFeel="Vanilla/ScrollablePane" />
+-->
+</GUIScheme>
diff --git a/GUI/vanilla.tga b/GUI/vanilla.tga
new file mode 100644
index 0000000..6c6d431
--- /dev/null
+++ b/GUI/vanilla.tga
Binary files differ
diff --git a/SConstruct b/SConstruct
index 1e7d2e3..c046bb5 100644
--- a/SConstruct
+++ b/SConstruct
@@ -12,6 +12,8 @@ env.Append(LIBS = ['GL', 'GLU'])
env.ParseConfig('sdl-config --cflags --libs')
env.ParseConfig('pkg-config --cflags --libs SDL_image')
env.ParseConfig('pkg-config --cflags --libs ftgl')
+env.ParseConfig('pkg-config --cflags --libs CEGUI')
+env.ParseConfig('pkg-config --cflags --libs CEGUI-OPENGL')
if not GetOption('release'):
env.Append(CPPFLAGS = ['-Wall', '-g'])
diff --git a/fonts/VeraMono.font b/fonts/VeraMono.font
new file mode 100644
index 0000000..417e2a2
--- /dev/null
+++ b/fonts/VeraMono.font
@@ -0,0 +1,2 @@
+<?xml version="1.0" ?>
+<Font Name="VeraMono" Filename="VeraMono.ttf" Type="FreeType" Size="10" NativeHorzRes="800" NativeVertRes="600" AutoScaled="true"/>
diff --git a/gui.cpp b/gui.cpp
new file mode 100644
index 0000000..8824237
--- /dev/null
+++ b/gui.cpp
@@ -0,0 +1,144 @@
+#include "gui.h"
+#include "video.h"
+
+#include <boost/format.hpp>
+
+using namespace CEGUI;
+
+GUI::GUI() {
+ OpenGLRenderer::bootstrapSystem();
+ DefaultResourceProvider* rp = static_cast<DefaultResourceProvider*>
+ (System::getSingleton().getResourceProvider());
+
+ rp->setResourceGroupDirectory("schemes", "GUI/");
+ rp->setResourceGroupDirectory("imagesets", "GUI/");
+ rp->setResourceGroupDirectory("fonts", "fonts/");
+ rp->setResourceGroupDirectory("layouts", "GUI/");
+ rp->setResourceGroupDirectory("looknfeels", "GUI/");
+
+ Imageset::setDefaultResourceGroup("imagesets");
+ Font::setDefaultResourceGroup("fonts");
+ Scheme::setDefaultResourceGroup("schemes");
+ WidgetLookManager::setDefaultResourceGroup("looknfeels");
+ WindowManager::setDefaultResourceGroup("layouts");
+
+ SchemeManager::getSingleton().create( "VanillaSkin.scheme" );
+
+ FontManager::getSingleton().create("VeraMono.font");
+
+ System::getSingleton().setDefaultFont( "VeraMono" );
+ System::getSingleton().setDefaultMouseCursor( "Vanilla-Images", "MouseArrow" );
+
+ WindowManager& wmgr(WindowManager::getSingleton());
+
+ root = wmgr.createWindow("DefaultWindow", "root");
+ System::getSingleton().setGUISheet(root);
+
+ wnd = static_cast<FrameWindow*>(wmgr.createWindow("Vanilla/FrameWindow", "foo"));
+ root->addChildWindow(wnd);
+
+ wnd->setPosition(UVector2(UDim(.25, 0), UDim(.25, 0)));
+ wnd->setSize(UVector2(UDim(.5, 0), UDim(.5, 0)));
+ wnd->setText("foobar");
+
+ btn = static_cast<PushButton*>(wmgr.createWindow("Vanilla/Button", "button"));
+ wnd->addChildWindow(btn);
+
+ btn->setPosition(UVector2(UDim(0, 0), UDim(.9, 0)));
+ btn->setSize(UVector2(UDim(.3, 0), UDim(.1, 0)));
+ btn->setText("buttan");
+
+ /* radius */
+ radius_lbl = wmgr.createWindow("Vanilla/StaticText", "radius_lbl");
+ wnd->addChildWindow(radius_lbl);
+
+ radius_lbl->setPosition(UVector2(UDim(0, 0), UDim(0, 0)));
+ radius_lbl->setSize(UVector2(UDim(.2, 0), UDim(.1, 0)));
+ radius_lbl->setText("Radius");
+
+ radius_sb = static_cast<Scrollbar*>(wmgr.createWindow("Vanilla/HorizontalScrollbar", "radius_sb"));
+ wnd->addChildWindow(radius_sb);
+
+ radius_sb->setPosition(UVector2(UDim(.2, 0), UDim(0, 0)));
+ radius_sb->setSize(UVector2(UDim(.65, 0), UDim(.1, 0)));
+ radius_sb->setDocumentSize(50.0);
+
+ radius_sb_lbl = wmgr.createWindow("Vanilla/StaticText", "radius_sb_lbl");
+ wnd->addChildWindow(radius_sb_lbl);
+
+ radius_sb_lbl->setPosition(UVector2(UDim(.85, 0), UDim(0, 0)));
+ radius_sb_lbl->setSize(UVector2(UDim(.15, 0), UDim(.1, 0)));
+
+ /* focus */
+ focus_lbl = wmgr.createWindow("Vanilla/StaticText", "focus_lbl");
+ wnd->addChildWindow(focus_lbl);
+
+ focus_lbl->setPosition(UVector2(UDim(0, 0), UDim(.1, 0)));
+ focus_lbl->setSize(UVector2(UDim(.2, 0), UDim(.1, 0)));
+ focus_lbl->setText("Focus");
+
+ focus_sb = static_cast<Scrollbar*>(wmgr.createWindow("Vanilla/HorizontalScrollbar", "focus_sb"));
+ wnd->addChildWindow(focus_sb);
+
+ focus_sb->setPosition(UVector2(UDim(.2, 0), UDim(.1, 0)));
+ focus_sb->setSize(UVector2(UDim(.65, 0), UDim(.1, 0)));
+ focus_sb->setDocumentSize(2.0);
+ focus_sb->setStepSize(.1);
+
+ focus_sb_lbl = wmgr.createWindow("Vanilla/StaticText", "focus_sb_lbl");
+ wnd->addChildWindow(focus_sb_lbl);
+
+ focus_sb_lbl->setPosition(UVector2(UDim(.85, 0), UDim(.1, 0)));
+ focus_sb_lbl->setSize(UVector2(UDim(.15, 0), UDim(.1, 0)));
+
+ /* strength */
+ strength_lbl = wmgr.createWindow("Vanilla/StaticText", "strength_lbl");
+ wnd->addChildWindow(strength_lbl);
+
+ strength_lbl->setPosition(UVector2(UDim(0, 0), UDim(.2, 0)));
+ strength_lbl->setSize(UVector2(UDim(.2, 0), UDim(.1, 0)));
+ strength_lbl->setText("Strength");
+
+ strength_sb = static_cast<Scrollbar*>(wmgr.createWindow("Vanilla/HorizontalScrollbar", "strength_sb"));
+ wnd->addChildWindow(strength_sb);
+
+ strength_sb->setPosition(UVector2(UDim(.2, 0), UDim(.2, 0)));
+ strength_sb->setSize(UVector2(UDim(.65, 0), UDim(.1, 0)));
+ strength_sb->setDocumentSize(1.0);
+ strength_sb->setStepSize(.1);
+
+ strength_sb_lbl = wmgr.createWindow("Vanilla/StaticText", "strength_sb_lbl");
+ wnd->addChildWindow(strength_sb_lbl);
+
+ strength_sb_lbl->setPosition(UVector2(UDim(.85, 0), UDim(.2, 0)));
+ strength_sb_lbl->setSize(UVector2(UDim(.15, 0), UDim(.1, 0)));
+}
+
+GUI::~GUI() {
+ delete root;
+ delete wnd;
+ delete btn;
+
+ delete radius_lbl;
+ delete radius_sb;
+ delete radius_sb_lbl;
+
+ delete focus_lbl;
+ delete focus_sb;
+ delete focus_sb_lbl;
+
+ delete strength_lbl;
+ delete strength_sb;
+ delete strength_sb_lbl;
+}
+
+void GUI::render() {
+ radius_sb_lbl->setText((boost::format("%.2f") % radius_sb->getScrollPosition()).str().c_str());
+ focus_sb_lbl->setText((boost::format("%.2f") % focus_sb->getScrollPosition()).str().c_str());
+ strength_sb_lbl->setText((boost::format("%.2f") % strength_sb->getScrollPosition()).str().c_str());
+
+ /* Disable depth testing to avoid cursor bugginess. */
+ glDisable(GL_DEPTH_TEST);
+ System::getSingleton().renderGUI();
+ glEnable(GL_DEPTH_TEST);
+}
diff --git a/gui.h b/gui.h
new file mode 100644
index 0000000..22ad354
--- /dev/null
+++ b/gui.h
@@ -0,0 +1,31 @@
+#ifndef GUI_H
+#define GUI_H
+
+#include <CEGUI.h>
+#include <RendererModules/OpenGL/CEGUIOpenGLRenderer.h>
+
+class GUI {
+ public:
+ CEGUI::Window *root;
+ CEGUI::FrameWindow *wnd;
+ CEGUI::PushButton *btn;
+
+ CEGUI::Window *radius_lbl;
+ CEGUI::Scrollbar *radius_sb;
+ CEGUI::Window *radius_sb_lbl;
+
+ CEGUI::Window *focus_lbl;
+ CEGUI::Scrollbar *focus_sb;
+ CEGUI::Window *focus_sb_lbl;
+
+ CEGUI::Window *strength_lbl;
+ CEGUI::Scrollbar *strength_sb;
+ CEGUI::Window *strength_sb_lbl;
+
+ GUI();
+ ~GUI();
+
+ void render();
+};
+
+#endif
diff --git a/main.cpp b/main.cpp
index 65d94de..d6ad962 100644
--- a/main.cpp
+++ b/main.cpp
@@ -10,7 +10,7 @@ int main(int argc, char **argv) {
Scene scene;
- //SDL_WM_GrabInput(SDL_GRAB_ON);
+ SDL_ShowCursor(SDL_DISABLE);
SDL_WarpMouse(video::width/2, video::height/2);
scene.last_time = SDL_GetTicks();
diff --git a/scene.cpp b/scene.cpp
index 4f872d2..180c90d 100644
--- a/scene.cpp
+++ b/scene.cpp
@@ -21,6 +21,7 @@ Scene::Scene() {
do_select = false;
show_selection = false;
+ dialog = false;
/* setup shader programs */
GLVertexShader terrain_vertex("shaders/terrain_vertex.glsl");
@@ -58,12 +59,15 @@ Scene::Scene() {
/* load font */
font = new FTTextureFont("fonts/VeraMono.ttf");
font->FaceSize(10);
+
+ gui = new GUI();
}
Scene::~Scene() {
if(qt)
delete qt;
delete font;
+ delete gui;
}
void Scene::lookat() {
@@ -161,29 +165,62 @@ void Scene::events() {
case SDLK_u:
update();
break;
+ case SDLK_TAB:
+ dialog = !dialog;
default:
break;
}
break;
+ case SDL_MOUSEBUTTONDOWN:
+ switch(event.button.button) {
+ case SDL_BUTTON_LEFT:
+ if(dialog)
+ CEGUI::System::getSingleton().injectMouseButtonDown(CEGUI::LeftButton);
+ break;
+ case SDL_BUTTON_RIGHT:
+ if(dialog)
+ CEGUI::System::getSingleton().injectMouseButtonDown(CEGUI::RightButton);
+ break;
+ }
+ break;
case SDL_MOUSEBUTTONUP:
switch(event.button.button) {
case SDL_BUTTON_LEFT:
- sx = event.button.x;
- sy = event.button.y;
- do_select = true;
- // TODO: reimplement selection
+ if(dialog)
+ CEGUI::System::getSingleton().injectMouseButtonUp(CEGUI::LeftButton);
+ else {
+ sx = event.button.x;
+ sy = event.button.y;
+ do_select = true;
+ }
break;
case SDL_BUTTON_RIGHT:
- show_selection = false;
+ if(dialog)
+ CEGUI::System::getSingleton().injectMouseButtonUp(CEGUI::RightButton);
+ else
+ show_selection = false;
break;
case SDL_BUTTON_WHEELUP:
- qt->raise(selected.x, selected.z, 10, 1, 1);
+ if(dialog)
+ CEGUI::System::getSingleton().injectMouseWheelChange(1);
+ else
+ qt->raise(selected.x, selected.z, gui->radius_sb->getScrollPosition(), gui->focus_sb->getScrollPosition(),
+ gui->strength_sb->getScrollPosition());
break;
case SDL_BUTTON_WHEELDOWN:
- qt->raise(selected.x, selected.z, 10, 1, -1);
+ if(dialog)
+ CEGUI::System::getSingleton().injectMouseWheelChange(-1);
+ else
+ qt->raise(selected.x, selected.z, gui->radius_sb->getScrollPosition(), gui->focus_sb->getScrollPosition(),
+ -gui->strength_sb->getScrollPosition());
break;
}
+ break;
case SDL_MOUSEMOTION:
+ if(dialog) {
+ CEGUI::System::getSingleton().injectMousePosition(event.motion.x, event.motion.y);
+ break;
+ }
if(event.motion.x == video::width/2 && event.motion.y == video::height/2)
break;
yaw += (float)event.motion.xrel / 500;
@@ -198,6 +235,9 @@ void Scene::events() {
pitch = 0;
SDL_WarpMouse(video::width/2, video::height/2);
break;
+ case SDL_VIDEORESIZE:
+ CEGUI::System::getSingleton().notifyDisplaySizeChanged(CEGUI::Size(event.resize.w, event.resize.h));
+ break;
}
}
}
@@ -207,6 +247,8 @@ void Scene::render() {
unsigned int steps = time - last_time + 1;
last_time = time;
+ CEGUI::System::getSingleton().injectTimePulse(0.001*(float)steps);
+
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glLoadIdentity();
video::persp();
@@ -309,6 +351,7 @@ void Scene::render() {
glDisableClientState(GL_NORMAL_ARRAY);
glDisableClientState(GL_TEXTURE_COORD_ARRAY);
}
+ glBindBuffer(GL_ARRAY_BUFFER, 0);
glDisable(GL_TEXTURE_2D);
// set active to texture0 to avoid breaking the texture font
glActiveTexture(GL_TEXTURE0);
@@ -375,6 +418,9 @@ void Scene::render() {
font->Render(selected->str().c_str());
}*/
+ if(dialog)
+ gui->render();
+
SDL_GL_SwapBuffers();
}
diff --git a/scene.h b/scene.h
index 869ea55..d494994 100644
--- a/scene.h
+++ b/scene.h
@@ -5,6 +5,7 @@
#include "quadtree.h"
#include "gl.h"
#include "shader.h"
+#include "gui.h"
#include <FTGL/ftgl.h>
@@ -15,11 +16,13 @@ class Scene {
float yvel;
Quadtree *qt;
FTFont *font;
+ GUI *gui;
bool running;
bool grid;
bool terrain;
bool gravity;
+ bool dialog;
Quadtree::QuadNode *last_node;