summaryrefslogtreecommitdiffhomepage
path: root/header.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-08-24 00:10:33 +0200
committerAki <nthirtyone@gmail.com>2016-08-24 00:10:33 +0200
commitcd72b080bd949d9ec0b42c29e0ea31e300464dad (patch)
tree3e1e7a0314ad43dfa96868c04060df82997bed74 /header.lua
parent9b8f5e3d356be281d8ef25227b087bb99b07b58d (diff)
downloadroflnauts-cd72b080bd949d9ec0b42c29e0ea31e300464dad.zip
roflnauts-cd72b080bd949d9ec0b42c29e0ea31e300464dad.tar.gz
roflnauts-cd72b080bd949d9ec0b42c29e0ea31e300464dad.tar.bz2
Focus() return bool
Diffstat (limited to 'header.lua')
-rw-r--r--header.lua8
1 files changed, 2 insertions, 6 deletions
diff --git a/header.lua b/header.lua
index d538ab3..d67e582 100644
--- a/header.lua
+++ b/header.lua
@@ -29,12 +29,8 @@ function Header:getBounce(f)
return math.sin(self.bounce*f*math.pi)
end
function Header:getPosition() return self.x,self.y end -- gives x,y of Element
-function Header:focus(next)
- if next and self.parent then
- self.parent:next()
- else
- self.parent:previous()
- end
+function Header:focus()
+ return false
end
function Header:blur() end -- Called when Element loses focus