| 56 | } |
| 57 | |
| 58 | bool QuestTrackerPane::sendEvent(InputEvent const& event) { |
| 59 | if (Pane::sendEvent(event)) |
| 60 | return true; |
| 61 | |
| 62 | if (event.is<MouseButtonDownEvent>() && event.get<MouseButtonDownEvent>().mouseButton == MouseButton::Left) { |
| 63 | auto mousePos = *context()->mousePosition(event); |
| 64 | if ((m_expanded && m_expandedFrame->inMember(mousePos)) || |
| 65 | (!m_expanded && m_frame->inMember(mousePos))) { |
| 66 | setExpanded(!m_expanded); |
| 67 | return true; |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | return false; |
| 72 | } |
| 73 | |
| 74 | void QuestTrackerPane::update(float dt) { |
| 75 | if (m_currentQuest) { |
nothing calls this directly
no test coverage detected