Change cursor on textedit, remove possibility to close EnterGame window

This commit is contained in:
Henrique Santiago
2012-08-10 16:26:39 -03:00
parent 24b60bec2e
commit 8753f82fd0
10 changed files with 137 additions and 43 deletions

View File

@@ -1,37 +1,4 @@
-- @docclass
g_mouse = {}
local cursorChanged = false
function g_mouse.setTargetCursor()
g_window.setMouseCursor('/cursors/targetcursor.png', {x=9,y=9})
cursorChanged = true
end
function g_mouse.setHorizontalCursor()
g_window.setMouseCursor('/cursors/horizontal.png', {x=9,y=4})
cursorChanged = true
end
function g_mouse.setVerticalCursor()
g_window.setMouseCursor('/cursors/vertical.png', {x=4,y=9})
cursorChanged = true
end
function g_mouse.restoreCursor()
g_window.restoreMouseCursor()
cursorChanged = false
end
function g_mouse.isCursorChanged()
return cursorChanged
end
function g_mouse.isPressed(button)
if not button then button = MouseLeftButton end
return g_window.isMouseButtonPressed(button)
end
function g_mouse.bindAutoPress(widget, callback, delay, button)
local button = button or MouseLeftButton
connect(widget, { onMousePress = function(widget, mousePos, mouseButton)