diff options
author | Aki <nthirtyone@gmail.com> | 2017-07-14 21:54:46 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-07-14 21:54:46 +0200 |
commit | 96fef88f56fdcdf95bc5783eb2b3b881ff435ba0 (patch) | |
tree | a07a06c784b1768b323e4bfd551676c1052e617f /config/menus/credits.lua | |
parent | 9af261cd204b999e6b2b5a44d5c5eb768f84c49d (diff) | |
download | roflnauts-96fef88f56fdcdf95bc5783eb2b3b881ff435ba0.zip roflnauts-96fef88f56fdcdf95bc5783eb2b3b881ff435ba0.tar.gz roflnauts-96fef88f56fdcdf95bc5783eb2b3b881ff435ba0.tar.bz2 |
Background in menu moved to separate class
Weird noise added to menu configs to use single MenuBackground instance
Initial pause menu added
Diffstat (limited to 'config/menus/credits.lua')
-rw-r--r-- | config/menus/credits.lua | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/config/menus/credits.lua b/config/menus/credits.lua index 6a2ab50..d59b560 100644 --- a/config/menus/credits.lua +++ b/config/menus/credits.lua @@ -1,4 +1,4 @@ -local menu = ... +local menu, background = ... local Button = require "not.Button" local Element = require "not.Element" @@ -6,7 +6,12 @@ local Element = require "not.Element" local width, height = love.graphics.getWidth()/getRealScale(), love.graphics.getHeight()/getRealScale() local bx = width/2-29 +if background == nil or not background:is(require "not.MenuBackground") then + background = require "not.MenuBackground"(menu) +end + return { + background, Button(menu) :setText("Go back") :setPosition(bx,144) @@ -21,4 +26,4 @@ return { love.graphics.printf("A game by the Awesomenauts community including:\nSeltzy, PlasmaWisp, ParaDoX, MilkingChicken, Burningdillo, Bronkey and Aki.\n\n04font was used.\n\nBased on a game by Jan Willem Nijman, Paul Veer and Bits_Beats XOXO.\n\nAwesomenauts is property of Ronimo Games.", (x-110)*scale, (y+10)*scale, 220, "left", 0, scale, scale) end) , -}
\ No newline at end of file +} |