GuiSpeedometerHud
Engine/source/T3D/vehicles/guiSpeedometer.cpp
A Speedometer control.
Private Types
Parent
Private Attributes
Needle Color.
Public Functions
DECLARE_CATEGORY("Gui Game" )
DECLARE_DESCRIPTION("Displays the speed of the current <a href="/coding/class/classvehicle/">Vehicle</a>-based <a href="/coding/file/guieditctrl_8cpp/#guieditctrl_8cpp_1abb04e3738c4c5a96b3ade6fa47013a6c">control</a> object." )
Public Static Functions
Detailed Description
A Speedometer control.
This gui displays the speed of the current Vehicle based control object. This control only works if a server connection exists and its control object is a vehicle. If either of these requirements is false, the control is not rendered.
Private Types
typedef GuiBitmapCtrl Parent
Private Attributes
GFXStateBlockRef mBlendSB
Point2F mCenter
Center of needle rotation.
F32 mMaxAngle
Max pos of needle.
F32 mMaxSpeed
Max speed at max need pos.
F32 mMinAngle
Min pos of needle.
LinearColorF mNeedleColor
Needle Color.
F32 mNeedleLength
F32 mNeedleWidth
F32 mSpeed
Current speed.
F32 mTailLength
Public Functions
GuiSpeedometerHud()
DECLARE_CATEGORY("Gui Game" )
DECLARE_CONOBJECT(GuiSpeedometerHud )
DECLARE_DESCRIPTION("Displays the speed of the current <a href="/coding/class/classvehicle/">Vehicle</a>-based <a href="/coding/file/guieditctrl_8cpp/#guieditctrl_8cpp_1abb04e3738c4c5a96b3ade6fa47013a6c">control</a> object." )
onRender(Point2I , const RectI & )
Reimplemented from: GuiBitmapCtrl