core/menusystem: fix namespacing errors
This commit is contained in:
parent
997a66e901
commit
2aac02c223
3 changed files with 4 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
local cwd = (...):gsub('%.flowbox$', '') .. "."
|
||||
local Menu = require(cwd .. "parent")
|
||||
|
||||
FlowBox = Menu:extend()
|
||||
local FlowBox = Menu:extend()
|
||||
|
||||
local menuutils = require(cwd .. "widgets.utils")
|
||||
|
||||
|
@ -9,7 +9,7 @@ function FlowBox:new(menusystem, name, x, y, w, h, slots_hor, slots_vert)
|
|||
self.slots = slots_hor * slots_vert
|
||||
self.slots_hor = slots_hor
|
||||
self.slots_vert = slots_vert
|
||||
ListBox.super.new(self, menusystem, name, x, y, w, h)
|
||||
FlowBox.super.new(self, menusystem, name, x, y, w, h)
|
||||
self.begin = 1
|
||||
self.widget.h = math.floor( self.h / slots_vert )
|
||||
self.widget.w = math.floor( self.w / slots_hor )
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
local cwd = (...):gsub('%.grid$', '') .. "."
|
||||
local Menu = require(cwd .. "parent")
|
||||
|
||||
|
||||
GridBox = Menu:extend()
|
||||
local GridBox = Menu:extend()
|
||||
|
||||
function GridBox:new(menusystem, name, x, y, w, h, slots_hor, slots_vert)
|
||||
self.slots = slots_hor * slots_vert
|
||||
|
|
|
@ -3,7 +3,7 @@ local Menu = require(cwd .. "parent")
|
|||
|
||||
local menuutils = require(cwd .. "widgets.utils")
|
||||
|
||||
ListBox = Menu:extend()
|
||||
local ListBox = Menu:extend()
|
||||
|
||||
function ListBox:new(menusystem, name, x, y, w, h, slots)
|
||||
self.slots = slots
|
||||
|
|
Loading…
Reference in a new issue