From 67ef04bcc8d6bbbb3e244134737573cfaffaa229 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sun, 31 Mar 2019 16:53:21 +0200 Subject: [PATCH] battlesystem: font name doesn't need to be modifiable in menu system --- sonic-radiance.love/scenes/battlesystem/controller/menu.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sonic-radiance.love/scenes/battlesystem/controller/menu.lua b/sonic-radiance.love/scenes/battlesystem/controller/menu.lua index 7b9262a..87718a2 100644 --- a/sonic-radiance.love/scenes/battlesystem/controller/menu.lua +++ b/sonic-radiance.love/scenes/battlesystem/controller/menu.lua @@ -42,7 +42,7 @@ end function MenuConstructor:buildBaseMenu(character) CharacterMenu(self.controller, "BaseMenu", MENUPOS_X1 - 16, MENUPOS_Y) for i,v in ipairs(BaseMenu) do - CharMenuWidget(self.controller, "BaseMenu", "small", v, "", character) + CharMenuWidget(self.controller, "BaseMenu", v, "", character) end end @@ -220,10 +220,10 @@ end -- WIDGETS -- All widgets used by the Characters menus -function CharMenuWidget:new(scene, menu_name, font_name, label1, label2, character) +function CharMenuWidget:new(scene, menu_name, label1, label2, character) self.character = character local menu = scene.menusystem.menus[menu_name] or error("menu " ..menu_name .. " doesn't exist") - local font = scene.assets.fonts[font_name] or error("font " ..font_name .. " doesn't exist") + local font = scene.assets.fonts["small"] CharMenuWidget.super.new(self, menu, font, label1) self.label2 = label2 or "" end