| 563 | } |
| 564 | |
| 565 | void Manager::Draw(olc::Sprite* sprGFX, olc::vi2d vScreenOffset) |
| 566 | { |
| 567 | if (panels.empty()) return; |
| 568 | |
| 569 | // Draw Visible Menu System |
| 570 | for (auto& p : panels) |
| 571 | { |
| 572 | p->DrawSelf(*pge, sprGFX, vScreenOffset); |
| 573 | vScreenOffset += {10, 10}; |
| 574 | } |
| 575 | |
| 576 | // Draw Cursor |
| 577 | olc::Pixel::Mode currentPixelMode = pge->GetPixelMode(); |
| 578 | pge->SetPixelMode(olc::Pixel::ALPHA); |
| 579 | pge->DrawPartialSprite(panels.back()->GetCursorPosition(), sprGFX, olc::vi2d(4, 0) * nPatch, { nPatch * 2, nPatch * 2 }); |
| 580 | pge->SetPixelMode(currentPixelMode); |
| 581 | } |
| 582 | } |
| 583 | }; |
| 584 |
nothing calls this directly
no test coverage detected