summaryrefslogtreecommitdiffhomepage
path: root/config/menus/credits.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-06-27 09:02:03 +0200
committerAki <nthirtyone@gmail.com>2017-06-27 09:02:03 +0200
commitbaf04a055dbc66b80c29a406907a0a595ac55f00 (patch)
tree49559118c1c6246cf7f954e9f706bae6f29e5057 /config/menus/credits.lua
parent2c458f0c756ebe577083a7cc972a07e870cb0ba9 (diff)
downloadroflnauts-baf04a055dbc66b80c29a406907a0a595ac55f00.zip
roflnauts-baf04a055dbc66b80c29a406907a0a595ac55f00.tar.gz
roflnauts-baf04a055dbc66b80c29a406907a0a595ac55f00.tar.bz2
Moved ui elements to use new oop lib
Diffstat (limited to 'config/menus/credits.lua')
-rw-r--r--config/menus/credits.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/menus/credits.lua b/config/menus/credits.lua
index 77cba62..6a2ab50 100644
--- a/config/menus/credits.lua
+++ b/config/menus/credits.lua
@@ -1,20 +1,20 @@
local menu = ...
-local button = require "not.Button"
-local element = require "not.Element"
+local Button = require "not.Button"
+local Element = require "not.Element"
local width, height = love.graphics.getWidth()/getRealScale(), love.graphics.getHeight()/getRealScale()
local bx = width/2-29
return {
- button:new(menu)
+ Button(menu)
:setText("Go back")
:setPosition(bx,144)
:set("active", function (self)
self.parent:open("main")
end)
,
- element:new(menu)
+ Element(menu)
:setPosition(width/2, 30)
:set("draw", function (self, scale)
local x,y = self:getPosition()