diff options
author | Aki <nthirtyone@gmail.com> | 2017-04-06 19:22:26 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-04-06 19:22:26 +0200 |
commit | 93d3257ff23331c308fb32940557911a29ca608b (patch) | |
tree | bb87d08d2ee168357513183764a3d869e1a8eedc /config | |
parent | 4cf1755d05a63452feca03d2e380b149fcaa76c2 (diff) | |
download | roflnauts-93d3257ff23331c308fb32940557911a29ca608b.zip roflnauts-93d3257ff23331c308fb32940557911a29ca608b.tar.gz roflnauts-93d3257ff23331c308fb32940557911a29ca608b.tar.bz2 |
Menu cleaned-up and moved to /not/
Menu is now similar to new code
Menu.load => Menu.open
Diffstat (limited to 'config')
-rw-r--r-- | config/menucredits.lua | 2 | ||||
-rw-r--r-- | config/menuhost.lua | 4 | ||||
-rw-r--r-- | config/menumain.lua | 6 | ||||
-rw-r--r-- | config/menuselect.lua | 2 | ||||
-rw-r--r-- | config/menusettings.lua | 2 |
5 files changed, 8 insertions, 8 deletions
diff --git a/config/menucredits.lua b/config/menucredits.lua index 9d38da4..0510333 100644 --- a/config/menucredits.lua +++ b/config/menucredits.lua @@ -11,7 +11,7 @@ return { :setText("Go back") :setPosition(bx,144) :set("active", function (self) - self.parent:load("menumain") + self.parent:open("menumain") end) , element:new(menu) diff --git a/config/menuhost.lua b/config/menuhost.lua index 64ce0e7..ae5e3dd 100644 --- a/config/menuhost.lua +++ b/config/menuhost.lua @@ -29,14 +29,14 @@ return { end) :set("active", function (self) MAP = map_selector:getFullSelection(true)[1][1] -- please, don't kill me for this, kek - self.parent:load("menuselect") + self.parent:open("menuselect") end) , button:new(menu) :setText("Go back") :setPosition(bx,117) :set("active", function (self) - self.parent:load("menumain") + self.parent:open("menumain") end) , }
\ No newline at end of file diff --git a/config/menumain.lua b/config/menumain.lua index 50b3d56..4e5ef1f 100644 --- a/config/menumain.lua +++ b/config/menumain.lua @@ -14,7 +14,7 @@ return { :setText("Start") :setPosition(bx, 80) :set("active", function (self) - self.parent:load("menuhost") + self.parent:open("menuhost") end) , button:new(menu) @@ -28,14 +28,14 @@ return { :setText("Settings") :setPosition(bx, 112) :set("active", function (self) - self.parent:load("menusettings") + self.parent:open("menusettings") end) , button:new(menu) :setText("Credits") :setPosition(bx, 128) :set("active", function (self) - self.parent:load("menucredits") + self.parent:open("menucredits") end) , button:new(menu) diff --git a/config/menuselect.lua b/config/menuselect.lua index 19f46ab..7b9f073 100644 --- a/config/menuselect.lua +++ b/config/menuselect.lua @@ -41,7 +41,7 @@ return { :setText("Go back") :setPosition(bx,150) :set("active", function (self) - self.parent:load("menuhost") + self.parent:open("menuhost") end) , element:new(menu) diff --git a/config/menusettings.lua b/config/menusettings.lua index 1631e4f..19f952e 100644 --- a/config/menusettings.lua +++ b/config/menusettings.lua @@ -105,7 +105,7 @@ local a = { :setText("Go back") :setPosition(bx,144) :set("active", function (self) - self.parent:load("menumain") + self.parent:open("menumain") end) , dimmer |