2021-08-15 16:26:05 +02:00
|
|
|
local Parent = require "scenes.menus.mainmenu.infopanel.parent"
|
2020-08-02 23:47:42 +02:00
|
|
|
local TeamPanel = Parent:extend()
|
|
|
|
|
|
|
|
function TeamPanel:new()
|
|
|
|
TeamPanel.super.new(self)
|
|
|
|
end
|
|
|
|
|
|
|
|
function TeamPanel:drawContent(x, y)
|
2021-04-23 10:58:04 +02:00
|
|
|
local debugString = "# DEBUG - Team" .. "\n"
|
2020-08-02 23:47:42 +02:00
|
|
|
for i,name in ipairs(game.characters.team) do
|
|
|
|
local char = game.characters.list[name]
|
|
|
|
debugString = debugString .. "- " .. char.name
|
|
|
|
if (game.characters.active == i) then
|
|
|
|
debugString = debugString .. " (Active) "
|
|
|
|
end
|
|
|
|
debugString = debugString .. "\n"
|
|
|
|
end
|
|
|
|
|
|
|
|
love.graphics.print(debugString, x, y)
|
|
|
|
end
|
|
|
|
|
|
|
|
return TeamPanel
|