battlesystem: fix SubMenuWidget not being initalized

This commit is contained in:
Kazhnuz 2019-03-31 17:08:02 +02:00
parent 5ab143e5f4
commit 6b57d4ccce

View file

@ -3,7 +3,9 @@ local Widget = require "core.modules.menusystem.widgets"
local MenuConstructor = Object:extend() local MenuConstructor = Object:extend()
local CharacterMenu = ListBox:extend() local CharacterMenu = ListBox:extend()
local CharMenuWidget = Widget.Text:extend() local CharMenuWidget = Widget.Text:extend()
local SubMenuWidget = CharMenuWidget:extend()
local BaseMenu = {"attack", "techs", "object", "defend", "flee", "back"} local BaseMenu = {"attack", "techs", "object", "defend", "flee", "back"}