MCPcopy Create free account
hub / github.com/crossuo/crossuo / OnRightMouseButtonDown

Method OnRightMouseButtonDown

src/GameWindow.cpp:188–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188void 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
212void CGameWindow::OnRightMouseButtonUp()
213{

Callers

nothing calls this directly

Calls 2

InitRightMethod · 0.80
SelectObjectMethod · 0.45

Tested by

no test coverage detected