2020-08-03 11:50:39 +02:00
|
|
|
local commons = require "scenes.debug.commons.menu"
|
2020-08-19 20:44:38 +02:00
|
|
|
local listMenu = require "game.modules.menus.list"
|
2020-08-03 11:50:39 +02:00
|
|
|
local menu = {}
|
|
|
|
menu.commons = commons
|
2020-08-19 20:44:38 +02:00
|
|
|
menu.HeroChoregraphyWidget = listMenu.DualTextWidget:extend()
|
|
|
|
menu.EnnemyChoregraphyWidget = listMenu.DualTextWidget:extend()
|
2020-08-03 11:50:39 +02:00
|
|
|
|
|
|
|
-- ShowBackground
|
|
|
|
function menu.HeroChoregraphyWidget:new(scene, charName, skillData)
|
2020-08-19 20:44:38 +02:00
|
|
|
menu.HeroChoregraphyWidget.super.new(self, scene, charName, skillData.name, "")
|
2020-08-03 11:50:39 +02:00
|
|
|
self.character = charName
|
|
|
|
self.skillData = skillData
|
|
|
|
end
|
|
|
|
|
|
|
|
function menu.HeroChoregraphyWidget:action()
|
2020-08-03 17:59:44 +02:00
|
|
|
self.scene:playHeroChoregraphy(self.character, self.skillData)
|
2020-08-03 11:50:39 +02:00
|
|
|
self.scene.menusystem:deactivate()
|
|
|
|
end
|
|
|
|
|
2020-08-04 23:21:45 +02:00
|
|
|
-- ShowBackground
|
|
|
|
function menu.EnnemyChoregraphyWidget:new(scene, category, charName, skillData)
|
2020-08-19 20:44:38 +02:00
|
|
|
menu.EnnemyChoregraphyWidget.super.new(self, scene, charName, skillData.name, "")
|
2020-08-04 23:21:45 +02:00
|
|
|
self.category = category
|
|
|
|
self.character = charName
|
|
|
|
self.skillData = skillData
|
|
|
|
end
|
|
|
|
|
|
|
|
function menu.EnnemyChoregraphyWidget:action()
|
|
|
|
self.scene:playEnnemyChoregraphy(self.category, self.character, self.skillData)
|
|
|
|
self.scene.menusystem:deactivate()
|
|
|
|
end
|
|
|
|
|
2020-08-03 11:50:39 +02:00
|
|
|
|
|
|
|
return menu
|