diff --git a/sonic-boost.love/core/modules/menusystem/grid.lua b/sonic-boost.love/core/modules/menusystem/grid.lua index e82ca0a..44e08d1 100644 --- a/sonic-boost.love/core/modules/menusystem/grid.lua +++ b/sonic-boost.love/core/modules/menusystem/grid.lua @@ -5,7 +5,7 @@ local Menu = require(cwd .. "parent") GridBox = Menu:extend() function GridBox:new(menusystem, name, x, y, w, h, slots_hor, slots_vert) - ListBox.super.new(self, menusystem, name, x, y, w, h) + GridBox.super.new(self, menusystem, name, x, y, w, h) self.slots = slots_hor * slots_vert self.slots_hor = slots_hor self.slots_vert = slots_vert @@ -29,7 +29,7 @@ function GridBox:new(menusystem, name, x, y, w, h, slots_hor, slots_vert) end end -function Menu:updateWidgetSize() +function GridBox:updateWidgetSize() self.widget.h = math.floor( self.h / slots_vert ) self.widget.w = math.floor( self.w / slots_hor ) end