OSGHUD: add tyre compound selection in dashboard menu
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9227 30fe4595-0a0c-4342-8851-515496e4dcbd
This commit is contained in:
parent
e43d1a93b8
commit
f73b236b3e
|
@ -67,6 +67,7 @@ static std::string strTireSet("New tires");
|
|||
static std::string strFrontWing("Front wing");
|
||||
static std::string strRearWing("Rear wing");
|
||||
static std::string strPenalty("Next pit type");
|
||||
static std::string strTireCompounds("Tyre compound");
|
||||
|
||||
static const osg::Vec4 colorRed(1.0, 0.0, 0.0, 1.0);
|
||||
static const osg::Vec4 colorYellow(1.0, 0.878, 0.0, 1.0);
|
||||
|
@ -1634,6 +1635,29 @@ void SDHUD::Refresh(tSituation *s, const SDFrameInfo* frameInfo,
|
|||
value1 << "NO";
|
||||
}
|
||||
break;
|
||||
case DI_COMPOUND_SET:
|
||||
description = strTireCompounds;
|
||||
if(item->setup->desired_value == 1)
|
||||
{
|
||||
value1 << "SOFT";
|
||||
}
|
||||
else if (item->setup->desired_value == 2)
|
||||
{
|
||||
value1 << "MEDIUM";
|
||||
}
|
||||
else if (item->setup->desired_value == 3)
|
||||
{
|
||||
value1 << "HARD";
|
||||
}
|
||||
else if (item->setup->desired_value == 4)
|
||||
{
|
||||
value1 << "WET";
|
||||
}
|
||||
else if (item->setup->desired_value == 5)
|
||||
{
|
||||
value1 << "EXTREME WET";
|
||||
}
|
||||
break;
|
||||
case DI_FRONT_WING_ANGLE:
|
||||
description = strFrontWing;
|
||||
value1 << std::fixed << std::setprecision(1) << RAD2DEG(item->setup->desired_value);
|
||||
|
|
Loading…
Reference in New Issue