337 {
338 super.OnMouseButtonDown(w,
x,
y,button);
339
341 {
342 if (button == 0)
343 {
345 int mouseX, mouseY;
347 vector mousePos, worldPos;
348 mousePos[0] = mouseX;
349 mousePos[1] = mouseY;
351 worldPos[1] =
g_Game.SurfaceY(worldPos[0], worldPos[2]);
352
354 }
355 else if (button == 1 &&
g_Game.GetPlayer())
356 {
358 }
359 }
360 return true;
361 }
MapWidget m_DebugMapWidget
void SetMapPos(vector pos)
bool m_PlayerPosRefreshBlocked
proto void GetMousePos(out int x, out int y)