mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-26 05:14:21 +00:00
added 0.9.0 checks to custom cursor operations
This commit is contained in:
parent
4734d92376
commit
549a1012a6
@ -70,7 +70,9 @@ function newobject:update(dt)
|
||||
|
||||
local hover = self.hover
|
||||
local linksenabled = self.linksenabled
|
||||
local version = love._version
|
||||
local linkcol = false
|
||||
|
||||
if hover and linksenabled then
|
||||
local formattedtext = self.formattedtext
|
||||
local x = self.x
|
||||
@ -90,7 +92,7 @@ function newobject:update(dt)
|
||||
if col then
|
||||
local linkcursorset = self.linkcursorset
|
||||
v.hover = true
|
||||
if not linkcursorset then
|
||||
if not linkcursorset and version == "0.9.0" then
|
||||
local newcursor = love.mouse.getSystemCursor("hand")
|
||||
love.mouse.setCursor(newcursor)
|
||||
self.linkcursorset = true
|
||||
@ -109,7 +111,8 @@ function newobject:update(dt)
|
||||
end
|
||||
|
||||
local linkcursorset = self.linkcursorset
|
||||
if not linkcol and linkcursorset then
|
||||
|
||||
if not linkcol and linkcursorset and version == "0.9.0" then
|
||||
self.linkcursorset = false
|
||||
love.mouse.setCursor()
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user