Horizontal Progress Bar. [SOLVED]
Posted: Fri Jul 25, 2008 03:46
So, we got a Vertical Progress Bar working as an Ammo Bar in our project, and then I was asked for a horizontal (is it z outside of American English too?) Bar So I proceded to copy my already working Progress Bar, remove the <Property name="VerticalProgress" value="True"/> and change the image used. put it in the layout and gave it to the programmers.
It proceeded not to work. It was always shown as full.
So we put the Property line back in. and it worked. changed the value to "False". didnt work.
We then set it to ReversedProgress and left it (so we have a working indicator) and it worked but we want it to go left to right if possible.
the widget looknfeel looks as such.
unfortunately I am unable to say which version the project is using and i dont have a working build to produce a log. (and the layouteditor one wouldnt give you quite the right info.)
i can say that the copyright line in the comment headers of CEGUI.h says 2006.....
oh wait.
CEGUIVersion.h
so what? 0.5.1?
anyway. thanks in advance.
It proceeded not to work. It was always shown as full.
So we put the Property line back in. and it worked. changed the value to "False". didnt work.
We then set it to ReversedProgress and left it (so we have a working indicator) and it worked but we want it to go left to right if possible.
the widget looknfeel looks as such.
Code: Select all
<WidgetLook name="bbUI/HUD/HeatBar">
<Property name="ReversedProgress" value="True"/>
<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="bg">
<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="bbHUD"
image="HeatBarBG"
/>
<VertFormat type="TopAligned"/>
<HorzFormat type="CenterAligned"/>
</ImageryComponent>
</ImagerySection>
<ImagerySection name="fg">
<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="bbHUD"
image="HeatBarFG"
/>
<VertFormat type="TopAligned"/>
<HorzFormat type="CenterAligned"/>
</ImageryComponent>
</ImagerySection>
<StateImagery name="Enabled">
<Layer>
<Section section="bg"/>
</Layer>
</StateImagery>
<StateImagery name="Disabled"/>
<StateImagery name="EnabledProgress">
<Layer>
<Section section="fg"/>
</Layer>
</StateImagery>
<StateImagery name="DisabledProgress"/>
</WidgetLook>
unfortunately I am unable to say which version the project is using and i dont have a working build to produce a log. (and the layouteditor one wouldnt give you quite the right info.)
i can say that the copyright line in the comment headers of CEGUI.h says 2006.....
oh wait.
CEGUIVersion.h
Code: Select all
//////////////////////////////////////////////////////////////////////////
// Define CEGUI version
//////////////////////////////////////////////////////////////////////////
#define CEGUI_VERSION_MAJOR 0
#define CEGUI_VERSION_MINOR 5
#define CEGUI_VERSION_PATCH 1
so what? 0.5.1?
anyway. thanks in advance.