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()
|
||||
|
||||
-- Load the differents menu object to get an easy access
|
||||
MenuSystem.Parent = require(cwd .. "parent")
|
||||
MenuSystem.ListBox = require(cwd .. "listbox")
|
||||
MenuSystem.FlowBox = require(cwd .. "flowbox")
|
||||
MenuSystem.Grid = require(cwd .. "grid")
|
||||
MenuSystem.Parent = require(cwd .. "menus.parent")
|
||||
MenuSystem.ListBox = require(cwd .. "menus.listbox")
|
||||
MenuSystem.FlowBox = require(cwd .. "menus.flowbox")
|
||||
MenuSystem.Grid = require(cwd .. "menus.grid")
|
||||
|
||||
-- load widgets object
|
||||
MenuSystem.Widget = require(cwd .. "widgets")
|
||||
MenuSystem.Widget = require(cwd .. "menus.widgets")
|
||||
|
||||
-- INIT FUNCTIONS
|
||||
-- Initialize and configure the menu controller
|
||||
|
|
|
@ -24,10 +24,10 @@
|
|||
local Scene = require "birb.modules.scenes"
|
||||
local TestScene = Scene:extend()
|
||||
|
||||
local MenuType = require "birb.modules.menusystem.listbox"
|
||||
local MenuType2 = require "birb.modules.menusystem.flowbox"
|
||||
local MenuType3 = require "birb.modules.menusystem.grid"
|
||||
local Widget = require "birb.modules.menusystem.widgets"
|
||||
local MenuType = require "birb.modules.menusystem.menus.listbox"
|
||||
local MenuType2 = require "birb.modules.menusystem.menus.flowbox"
|
||||
local MenuType3 = require "birb.modules.menusystem.menus.grid"
|
||||
local Widget = require "birb.modules.menusystem.menus.widgets"
|
||||
|
||||
local MenuWidget = Widget.Text:extend()
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
local ListMenu = require "birb.modules.menusystem.listbox"
|
||||
local Widget = require "birb.modules.menusystem.widgets"
|
||||
local ListMenu = require "birb.modules.menusystem.menus.listbox"
|
||||
local Widget = require "birb.modules.menusystem.menus.widgets"
|
||||
|
||||
local PauseMenu = ListMenu:extend()
|
||||
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
local Scene = require "birb.modules.scenes"
|
||||
local MainMenu = Scene:extend()
|
||||
|
||||
local ListBox = require "birb.modules.menusystem.listbox"
|
||||
local Widget = require "birb.modules.menusystem.widgets"
|
||||
local ListBox = require "birb.modules.menusystem.menus.listbox"
|
||||
local Widget = require "birb.modules.menusystem.menus.widgets"
|
||||
|
||||
local SubMenuWidget = Widget.Text:extend()
|
||||
local SceneWidget = Widget.Text:extend()
|
||||
|
|
|
@ -24,9 +24,9 @@
|
|||
local Scene = require "birb.modules.scenes"
|
||||
local Inventory = Scene:extend()
|
||||
|
||||
local HListBox = require "birb.modules.menusystem.hlistbox"
|
||||
local FloxBox = require "birb.modules.menusystem.flowbox"
|
||||
local Widget = require "birb.modules.menusystem.widgets"
|
||||
local HListBox = require "birb.modules.menusystem.menus.hlistbox"
|
||||
local FloxBox = require "birb.modules.menusystem.menus.flowbox"
|
||||
local Widget = require "birb.modules.menusystem.menus.widgets"
|
||||
|
||||
local InventoryWidget = Widget.Text:extend()
|
||||
local ItemWidget = Widget.Text:extend()
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
local Scene = require "birb.modules.scenes"
|
||||
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"
|
||||
|
||||
function OptionsMenu:new()
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
local widgets = {}
|
||||
|
||||
local Widget = require "birb.modules.menusystem.widgets"
|
||||
local Widget = require "birb.modules.menusystem.menus.widgets"
|
||||
local DoubleTextWidget = Widget.Text:extend()
|
||||
|
||||
widgets.SubMenu = DoubleTextWidget:extend()
|
||||
|
|
Loading…
Reference in a new issue