scenes/mainmenu: use the new save system in widget generations
This commit is contained in:
parent
2af253ec4c
commit
1017f0ef0e
|
@ -53,7 +53,7 @@ end
|
|||
function menu.Pigs:new(scene)
|
||||
menu.Pigs.super.new(self, scene, "pigs")
|
||||
widgets.AddPig(self)
|
||||
for i,v in ipairs(save.data.pigs) do
|
||||
for i,v in ipairs(game.pigmanager.data) do
|
||||
widgets.Menu(self,i .. "- " .. v.name .. " the " .. v.race, 1, i)
|
||||
end
|
||||
widgets.Menu(self,"Back", "debug")
|
||||
|
|
Loading…
Reference in New Issue