mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-26 05:14:21 +00:00
Add ability to enable/disable system cursors
This commit is contained in:
parent
cc52f38f38
commit
11264bb14e
3
init.lua
3
init.lua
@ -22,6 +22,7 @@ loveframes.config["DEFAULTSKIN"] = "Blue"
|
|||||||
loveframes.config["ACTIVESKIN"] = "Blue"
|
loveframes.config["ACTIVESKIN"] = "Blue"
|
||||||
loveframes.config["INDEXSKINIMAGES"] = true
|
loveframes.config["INDEXSKINIMAGES"] = true
|
||||||
loveframes.config["DEBUG"] = false
|
loveframes.config["DEBUG"] = false
|
||||||
|
loveframes.config["ENABLE_SYSTEM_CURSORS"] = false
|
||||||
|
|
||||||
-- misc library vars
|
-- misc library vars
|
||||||
loveframes.state = "none"
|
loveframes.state = "none"
|
||||||
@ -84,6 +85,7 @@ function loveframes.update(dt)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if loveframes.config["ENABLE_SYSTEM_CURSORS"] then
|
||||||
local hoverobject = loveframes.hoverobject
|
local hoverobject = loveframes.hoverobject
|
||||||
local arrow = love.mouse.getSystemCursor("arrow")
|
local arrow = love.mouse.getSystemCursor("arrow")
|
||||||
local curcursor = love.mouse.getCursor()
|
local curcursor = love.mouse.getCursor()
|
||||||
@ -163,6 +165,7 @@ function loveframes.update(dt)
|
|||||||
love.mouse.setCursor(arrow)
|
love.mouse.setCursor(arrow)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
loveframes.collisions = {}
|
loveframes.collisions = {}
|
||||||
base:update(dt)
|
base:update(dt)
|
||||||
|
Loading…
Reference in New Issue
Block a user