| 178 | } |
| 179 | |
| 180 | bool GameEditorModeBase::onMinimapClick(const CEGUI::EventArgs& arg) |
| 181 | { |
| 182 | const CEGUI::MouseEventArgs& mouseEvt = static_cast<const CEGUI::MouseEventArgs&>(arg); |
| 183 | |
| 184 | ODFrameListener& frameListener = ODFrameListener::getSingleton(); |
| 185 | |
| 186 | Ogre::Vector2 cc = mMiniMap->camera_2dPositionFromClick(static_cast<int>(mouseEvt.position.d_x), |
| 187 | static_cast<int>(mouseEvt.position.d_y)); |
| 188 | frameListener.getCameraManager()->onMiniMapClick(cc); |
| 189 | |
| 190 | return true; |
| 191 | } |
| 192 | |
| 193 | void GameEditorModeBase::onFrameStarted(const Ogre::FrameEvent& evt) |
| 194 | { |
nothing calls this directly
no test coverage detected