mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-30 19:29:52 +02:00
Draw air velocity line near cursor when air velocity mode and debug HUD are on.
This commit is contained in:
@@ -2185,6 +2185,13 @@ void GameView::OnDraw()
|
||||
ui::Point finalCurrentMouse = c->PointTranslate(currentMouse);
|
||||
ui::Point initialDrawPoint = drawPoint1;
|
||||
|
||||
//Air velocity line near cursor
|
||||
if (showDebug && (rendererSettings->displayMode & DISPLAY_AIRV))
|
||||
{
|
||||
g->XorLine({finalCurrentMouse.X, finalCurrentMouse.Y},
|
||||
{finalCurrentMouse.X + (int)(10.0f*sample.AirVelocityX), finalCurrentMouse.Y + (int)(10.0f*sample.AirVelocityY)});
|
||||
}
|
||||
|
||||
if (wallBrush)
|
||||
{
|
||||
finalCurrentMouse = c->NormaliseBlockCoord(finalCurrentMouse);
|
||||
|
Reference in New Issue
Block a user