I'm currently in the process of making a very simple 3D racing game and want a simple bar to increase and decrease when the player accelerates and decelerates respectively. So far I have managed to get a CEGUI window to render an image inside of it like so:
Code: Select all
<Window Type="TaharezLook/Menubar" Name="Menu/Hud">
<Property Name="UnifiedPosition" Value="{{0.25,0},{0.25,0}}" />
<Property Name="UnifiedSize" Value="{{0.5,0},{0.5,0}}" />
<Window Type="TaharezLook/StaticImage" Name="Menu/HudImage">
<Property Name="UnifiedPosition" Value="{{0.25,0},{0.25,0}}" />
<Property Name="UnifiedSize" Value="{{0.5,0},{0.5,0}}" />
<Property Name="Image" Value="set:holder image:full_image" />
</Window>
<Property Name="Visible" Value="False" />
</Window>
Now I've tried setting up a variable inside of this code block so that on a button press, the image inside the window gets longer/bigger. How ever, this brought nothing but bugs. I have had a look round the web and the forums but couldn't find anything to help me. Could someone please inform me what I'm doing wrong?