2020-08-20 15:33:28 +02:00
|
|
|
local fancy = require "game.modules.menus.fancy"
|
|
|
|
|
|
|
|
local BattleMenu = fancy.FancyMenu:extend()
|
|
|
|
|
|
|
|
local MENUPOS_X1, MENUPOS_Y = 88, 72
|
2020-08-23 08:53:44 +02:00
|
|
|
local MENU_WIDTH = 180-32
|
2020-08-20 15:33:28 +02:00
|
|
|
local MENU_ITEM_NUMBER = 6
|
|
|
|
|
|
|
|
function BattleMenu:new(scene, name)
|
|
|
|
local x, y = MENUPOS_X1, MENUPOS_Y
|
|
|
|
local w = MENU_WIDTH
|
|
|
|
BattleMenu.super.new(self, scene, name, x, y, w, MENU_ITEM_NUMBER, true)
|
|
|
|
end
|
|
|
|
|
|
|
|
function BattleMenu:clone(name)
|
|
|
|
return BattleMenu(self.scene, name)
|
|
|
|
end
|
|
|
|
|
|
|
|
return BattleMenu
|