Game Development Community

GUISpeedOmeter display problem

by CodingChris · in Torque Game Engine Advanced · 01/12/2008 (10:15 am) · 2 replies

Hi,
I added a SpeedOmeter control to my playgui, but this control is not displayed right. I wanted to display it like in the TGE racing starter kit, copied the code from TGE and pasted it into my gui, but then it's displayed in the center of the screen. My code:
new GuiSpeedometerHud() {
      profile = "GuiDefaultProfile";
      horizSizing = "left";
      vertSizing = "top";
      position = "440 280";
      extent = "200 200";
      minExtent = "8 2";
      visible = "1";
      bitmap = "./speedometer";
      wrap = "0";
      maxSpeed = "100";
      minAngle = "215";
      maxAngle = "0";
      color = "1.000000 0.300000 0.300000 1.000000";
      center = "130.000000 123.000000";
      length = "100";
      width = "2";
      tail = "0";
   };
what do I need to change to get it displayed like in TGE?

#1
01/13/2008 (12:44 am)
I found out myself.
#2
03/02/2009 (2:31 am)
Hi,
I'm facing the same problem.Speedometer is not visible in playgui..hope u got the solution for it.can u plese help me out in solving that problem :)
Thanks