Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Lua in SpringRTS/Callins/MouseRelease()

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

MouseRelease() Description You need to return true on MousePress() to get MouseMove/MouseRelease directed to your widget. Return values x, y, button where x is the cursor's position in the x axis and y the cursor position in the y axis. Position is relative to the screen, not the 3d world Usage example function widget:MousePress(x, y, button) echo("Mouse pressed") return true -- Pay attention to this. Without returning true the next function won't do anything end function widget:MouseRelease(x, y, button) echo("Mouse released") end Related