1
TradeView = Subview:extend {
2
drawParent = true, --default?
3
onNew = function (self)
4
-- create all the interface bits from the planet
5
-- and add them to the view
7
local boxL = the.app.width / 2 - 200
8
local boxT = the.app.height / 2 - 200
26
for i, good in ipairs(self.planet.goods) do
33
local tw, th = t:getSize()
34
t.y = boxT + 10 + (i-1) * th -- (th + 2) -- for padding?
39
activate = function (self)
40
the.cursor.visible = false
41
love.mouse.setVisible(true)
42
love.mouse.setGrab(false)
44
Subview.activate(self)
b'\\ No newline at end of file'