From caa0e86e12c4579cf0b1ad3a72db251d66bceb93 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Mon, 11 Feb 2019 19:56:36 +0100 Subject: [PATCH] core/menusystem: fix a glitch in GridBox --- sonic-boost.love/core/modules/menusystem/grid.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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