| 27 | } |
| 28 | |
| 29 | PanePtr StatusPane::createTooltip(Vec2I const& screenPosition) { |
| 30 | auto interfaceScale = m_guiContext->interfaceScale(); |
| 31 | for (auto const& indicator : m_statusIndicators) { |
| 32 | if (indicator.screenRect.contains(Vec2F(screenPosition * interfaceScale))) { |
| 33 | if (!indicator.label.empty()) |
| 34 | return SimpleTooltipBuilder::buildTooltip(indicator.label); |
| 35 | } |
| 36 | } |
| 37 | return {}; |
| 38 | } |
| 39 | |
| 40 | void StatusPane::renderImpl() { |
| 41 | Pane::renderImpl(); |
nothing calls this directly
no test coverage detected