OSGHUD: add some debug info
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8934 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: b893d770193541d8b82d70d7d31e21d589bac497 Former-commit-id: ccadda1b0d630291c1effb248b41554594dc6072
This commit is contained in:
parent
fc58bf682a
commit
9aa433216f
1 changed files with 130 additions and 123 deletions
|
@ -1144,6 +1144,8 @@ void SDHUD::CreateHUD(int scrH, int scrW)
|
||||||
|
|
||||||
GfLogDebug("OSGHUD: Hud Scale is: %f\n", hudScale);
|
GfLogDebug("OSGHUD: Hud Scale is: %f\n", hudScale);
|
||||||
|
|
||||||
|
GfLogDebug("OSGHUD: Generating the HUD from the xml file.\n");
|
||||||
|
|
||||||
//generate the hud from the relative xml file
|
//generate the hud from the relative xml file
|
||||||
camera->addChild(generateHudFromXmlFile(scrH, scrW));
|
camera->addChild(generateHudFromXmlFile(scrH, scrW));
|
||||||
|
|
||||||
|
@ -1879,6 +1881,7 @@ void SDHUD::Refresh(tSituation *s, const SDFrameInfo* frameInfo,
|
||||||
changeImageAlpha(hudImgElements["trackdata-weathericon-rainy"], 1.0f);
|
changeImageAlpha(hudImgElements["trackdata-weathericon-rainy"], 1.0f);
|
||||||
}
|
}
|
||||||
//shifting leds
|
//shifting leds
|
||||||
|
if (hudWidgets["shiftlightsWidget"]->getNodeMask()){
|
||||||
//read the car handle //engine section//torque data points
|
//read the car handle //engine section//torque data points
|
||||||
GfParmGetNum(currCar->_carHandle, SECT_ENGINE, ARR_DATAPTS, NULL, 0.0f);
|
GfParmGetNum(currCar->_carHandle, SECT_ENGINE, ARR_DATAPTS, NULL, 0.0f);
|
||||||
|
|
||||||
|
@ -1902,8 +1905,11 @@ void SDHUD::Refresh(tSituation *s, const SDFrameInfo* frameInfo,
|
||||||
if (carHasChanged)
|
if (carHasChanged)
|
||||||
{
|
{
|
||||||
//empty and than resize the vector to match the new maxrpm (we will have a datapoint for each rpm)
|
//empty and than resize the vector to match the new maxrpm (we will have a datapoint for each rpm)
|
||||||
|
GfLogDebug("OSGHUD: Resizing the horsepowerVector...\n");
|
||||||
horsepowerPoints.clear();
|
horsepowerPoints.clear();
|
||||||
horsepowerPoints.resize((int)currCar->_enginerpmMax);
|
horsepowerPoints.resize((int)currCar->_enginerpmMax);
|
||||||
|
GfLogDebug("OSGHUD: Resizing the horsepowerVector...done\n");
|
||||||
|
|
||||||
|
|
||||||
//fill it with data, for each datapoint
|
//fill it with data, for each datapoint
|
||||||
for (int i = 1; i <= dataPointsCount; i++)
|
for (int i = 1; i <= dataPointsCount; i++)
|
||||||
|
@ -2010,6 +2016,7 @@ void SDHUD::Refresh(tSituation *s, const SDFrameInfo* frameInfo,
|
||||||
hudImgElements["light12-on"]->setNodeMask(1);
|
hudImgElements["light12-on"]->setNodeMask(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// debug info
|
// debug info
|
||||||
temp.str("");
|
temp.str("");
|
||||||
|
|
Loading…
Reference in a new issue