339 {
340 super.OnMouseButtonDown(w,
x,
y,button);
341
343 {
344 if (button == 0)
345 {
347 int mouseX, mouseY;
349 vector mousePos, worldPos;
350 mousePos[0] = mouseX;
351 mousePos[1] = mouseY;
353 worldPos[1] =
g_Game.SurfaceY(worldPos[0], worldPos[2]);
354
356 }
357 else if (button == 1 &&
g_Game.GetPlayer())
358 {
360 }
361 }
362 return true;
363 }
MapWidget m_DebugMapWidget
void SetMapPos(vector pos)
bool m_PlayerPosRefreshBlocked
proto void GetMousePos(out int x, out int y)