| 186 | } |
| 187 | |
| 188 | void CGameWindow::OnRightMouseButtonDown() |
| 189 | { |
| 190 | if (g_CurrentScreen != nullptr && g_ScreenEffectManager.Mode == SEM_NONE) |
| 191 | { |
| 192 | if (g_Target.MultiGraphic == 0) |
| 193 | { |
| 194 | g_CurrentScreen->SelectObject(); |
| 195 | } |
| 196 | g_PressedObject.InitRight(g_SelectedObject); |
| 197 | g_CurrentScreen->OnRightMouseButtonDown(); |
| 198 | if (g_SelectedObject.Gump == nullptr && |
| 199 | !(g_MouseManager.Position.X < g_ConfigManager.GameWindowX || |
| 200 | g_MouseManager.Position.Y < g_ConfigManager.GameWindowY || |
| 201 | g_MouseManager.Position.X > |
| 202 | (g_ConfigManager.GameWindowX + g_ConfigManager.GameWindowWidth) || |
| 203 | g_MouseManager.Position.Y > |
| 204 | (g_ConfigManager.GameWindowY + g_ConfigManager.GameWindowHeight))) |
| 205 | { |
| 206 | g_MovingFromMouse = true; |
| 207 | g_AutoMoving = false; |
| 208 | } |
| 209 | } |
| 210 | } |
| 211 | |
| 212 | void CGameWindow::OnRightMouseButtonUp() |
| 213 | { |
nothing calls this directly
no test coverage detected