battlesystem: build skill menu
This commit is contained in:
parent
a23e38fe31
commit
a45a109c8d
1 changed files with 4 additions and 3 deletions
|
@ -25,6 +25,7 @@ end
|
|||
|
||||
function MenuConstructor:build(character)
|
||||
self:buildBaseMenu(character)
|
||||
self:buildSkillMenu(character)
|
||||
end
|
||||
|
||||
function MenuConstructor:buildBaseMenu(character)
|
||||
|
@ -43,13 +44,13 @@ function MenuConstructor:set(currentCharacter)
|
|||
self:reconstruct(currentCharacter)
|
||||
end
|
||||
|
||||
function MenuConstructor:buildSkillMenu()
|
||||
function MenuConstructor:buildSkillMenu(character)
|
||||
CharacterMenu(self.controller, "SkillMenu", MENUPOS_X1 - 16, MENUPOS_Y)
|
||||
local list = game.characters:getSkillList(self.character.charid)
|
||||
local list = game.characters:getSkillList(character.charid)
|
||||
for k,v in pairs(list) do
|
||||
CharMenuWidget(self.controller, "SkillMenu", k, "", character)
|
||||
end
|
||||
CharMenuWidget(self.controller, "Back", v, "", character)
|
||||
CharMenuWidget(self.controller, "SkillMenu", "Retour", "", character)
|
||||
|
||||
self.controller.menusystem.menus["SkillMenu"]:setCancelWidget()
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue