chore: put all menus in their own subfolder
This commit is contained in:
parent
4b66d15014
commit
74d8e904b2
14 changed files with 18 additions and 18 deletions
|
@ -27,13 +27,13 @@ local cwd = (...):gsub('%.init$', '') .. "."
|
||||||
local MenuSystem = Object:extend()
|
local MenuSystem = Object:extend()
|
||||||
|
|
||||||
-- Load the differents menu object to get an easy access
|
-- Load the differents menu object to get an easy access
|
||||||
MenuSystem.Parent = require(cwd .. "parent")
|
MenuSystem.Parent = require(cwd .. "menus.parent")
|
||||||
MenuSystem.ListBox = require(cwd .. "listbox")
|
MenuSystem.ListBox = require(cwd .. "menus.listbox")
|
||||||
MenuSystem.FlowBox = require(cwd .. "flowbox")
|
MenuSystem.FlowBox = require(cwd .. "menus.flowbox")
|
||||||
MenuSystem.Grid = require(cwd .. "grid")
|
MenuSystem.Grid = require(cwd .. "menus.grid")
|
||||||
|
|
||||||
-- load widgets object
|
-- load widgets object
|
||||||
MenuSystem.Widget = require(cwd .. "widgets")
|
MenuSystem.Widget = require(cwd .. "menus.widgets")
|
||||||
|
|
||||||
-- INIT FUNCTIONS
|
-- INIT FUNCTIONS
|
||||||
-- Initialize and configure the menu controller
|
-- Initialize and configure the menu controller
|
||||||
|
|
|
@ -24,10 +24,10 @@
|
||||||
local Scene = require "birb.modules.scenes"
|
local Scene = require "birb.modules.scenes"
|
||||||
local TestScene = Scene:extend()
|
local TestScene = Scene:extend()
|
||||||
|
|
||||||
local MenuType = require "birb.modules.menusystem.listbox"
|
local MenuType = require "birb.modules.menusystem.menus.listbox"
|
||||||
local MenuType2 = require "birb.modules.menusystem.flowbox"
|
local MenuType2 = require "birb.modules.menusystem.menus.flowbox"
|
||||||
local MenuType3 = require "birb.modules.menusystem.grid"
|
local MenuType3 = require "birb.modules.menusystem.menus.grid"
|
||||||
local Widget = require "birb.modules.menusystem.widgets"
|
local Widget = require "birb.modules.menusystem.menus.widgets"
|
||||||
|
|
||||||
local MenuWidget = Widget.Text:extend()
|
local MenuWidget = Widget.Text:extend()
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
local ListMenu = require "birb.modules.menusystem.listbox"
|
local ListMenu = require "birb.modules.menusystem.menus.listbox"
|
||||||
local Widget = require "birb.modules.menusystem.widgets"
|
local Widget = require "birb.modules.menusystem.menus.widgets"
|
||||||
|
|
||||||
local PauseMenu = ListMenu:extend()
|
local PauseMenu = ListMenu:extend()
|
||||||
|
|
||||||
|
|
|
@ -24,8 +24,8 @@
|
||||||
local Scene = require "birb.modules.scenes"
|
local Scene = require "birb.modules.scenes"
|
||||||
local MainMenu = Scene:extend()
|
local MainMenu = Scene:extend()
|
||||||
|
|
||||||
local ListBox = require "birb.modules.menusystem.listbox"
|
local ListBox = require "birb.modules.menusystem.menus.listbox"
|
||||||
local Widget = require "birb.modules.menusystem.widgets"
|
local Widget = require "birb.modules.menusystem.menus.widgets"
|
||||||
|
|
||||||
local SubMenuWidget = Widget.Text:extend()
|
local SubMenuWidget = Widget.Text:extend()
|
||||||
local SceneWidget = Widget.Text:extend()
|
local SceneWidget = Widget.Text:extend()
|
||||||
|
|
|
@ -24,9 +24,9 @@
|
||||||
local Scene = require "birb.modules.scenes"
|
local Scene = require "birb.modules.scenes"
|
||||||
local Inventory = Scene:extend()
|
local Inventory = Scene:extend()
|
||||||
|
|
||||||
local HListBox = require "birb.modules.menusystem.hlistbox"
|
local HListBox = require "birb.modules.menusystem.menus.hlistbox"
|
||||||
local FloxBox = require "birb.modules.menusystem.flowbox"
|
local FloxBox = require "birb.modules.menusystem.menus.flowbox"
|
||||||
local Widget = require "birb.modules.menusystem.widgets"
|
local Widget = require "birb.modules.menusystem.menus.widgets"
|
||||||
|
|
||||||
local InventoryWidget = Widget.Text:extend()
|
local InventoryWidget = Widget.Text:extend()
|
||||||
local ItemWidget = Widget.Text:extend()
|
local ItemWidget = Widget.Text:extend()
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
local Scene = require "birb.modules.scenes"
|
local Scene = require "birb.modules.scenes"
|
||||||
local OptionsMenu = Scene:extend()
|
local OptionsMenu = Scene:extend()
|
||||||
|
|
||||||
local ListBox = require "birb.modules.menusystem.listbox"
|
local ListBox = require "birb.modules.menusystem.menus.listbox"
|
||||||
local Widgets = require "scenes.menus.options.widgets"
|
local Widgets = require "scenes.menus.options.widgets"
|
||||||
|
|
||||||
function OptionsMenu:new()
|
function OptionsMenu:new()
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
local widgets = {}
|
local widgets = {}
|
||||||
|
|
||||||
local Widget = require "birb.modules.menusystem.widgets"
|
local Widget = require "birb.modules.menusystem.menus.widgets"
|
||||||
local DoubleTextWidget = Widget.Text:extend()
|
local DoubleTextWidget = Widget.Text:extend()
|
||||||
|
|
||||||
widgets.SubMenu = DoubleTextWidget:extend()
|
widgets.SubMenu = DoubleTextWidget:extend()
|
||||||
|
|
Loading…
Reference in a new issue