mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-01 12:02:40 +02:00
show conv tmp as element name in hud
This commit is contained in:
@@ -2325,7 +2325,20 @@ void GameView::OnDraw()
|
|||||||
sampleInfo << ", Temp: " << (sample.particle.temp - 273.15f) << " C";
|
sampleInfo << ", Temp: " << (sample.particle.temp - 273.15f) << " C";
|
||||||
sampleInfo << ", Life: " << sample.particle.life;
|
sampleInfo << ", Life: " << sample.particle.life;
|
||||||
if (sample.particle.type != PT_RFRG && sample.particle.type != PT_RFGL)
|
if (sample.particle.type != PT_RFRG && sample.particle.type != PT_RFGL)
|
||||||
sampleInfo << ", Tmp: " << sample.particle.tmp;
|
{
|
||||||
|
if (sample.particle.type == PT_CONV)
|
||||||
|
{
|
||||||
|
String elemName = c->ElementResolve(
|
||||||
|
TYP(sample.particle.tmp),
|
||||||
|
ID(sample.particle.tmp)).FromAscii();
|
||||||
|
if (elemName == "")
|
||||||
|
sampleInfo << ", Tmp: " << sample.particle.tmp;
|
||||||
|
else
|
||||||
|
sampleInfo << ", Tmp: " << elemName;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
sampleInfo << ", Tmp: " << sample.particle.tmp;
|
||||||
|
}
|
||||||
|
|
||||||
// only elements that use .tmp2 show it in the debug HUD
|
// only elements that use .tmp2 show it in the debug HUD
|
||||||
if (type == PT_CRAY || type == PT_DRAY || type == PT_EXOT || type == PT_LIGH || type == PT_SOAP || type == PT_TRON || type == PT_VIBR || type == PT_VIRS || type == PT_WARP || type == PT_LCRY || type == PT_CBNW || type == PT_TSNS || type == PT_DTEC || type == PT_LSNS || type == PT_PSTN || type == PT_LDTC)
|
if (type == PT_CRAY || type == PT_DRAY || type == PT_EXOT || type == PT_LIGH || type == PT_SOAP || type == PT_TRON || type == PT_VIBR || type == PT_VIRS || type == PT_WARP || type == PT_LCRY || type == PT_CBNW || type == PT_TSNS || type == PT_DTEC || type == PT_LSNS || type == PT_PSTN || type == PT_LDTC)
|
||||||
|
Reference in New Issue
Block a user