/traderous

To get this branch, use:
bzr branch /bzr/traderous

« back to all changes in this revision

Viewing changes to trade_view.lua

  • Committer: Josh C
  • Date: 2013-06-23 02:52:56 UTC
  • Revision ID: josh@9ix.org-20130623025256-o80jq1o3hy8dw7lh
available cargo space

Show diffs side-by-side

added added

removed removed

139
139
              }
140
140
              self:add(self.playerMoney)
141
141
 
 
142
              self.availSpace = Text:new{
 
143
                 text = 'Available cargo space: ',
 
144
                 width = 200,
 
145
                 x = boxL + 10,
 
146
                 y = boxB - 2 * th - 12
 
147
              }
 
148
              self:add(self.availSpace)
 
149
 
142
150
              -- give the buttons a cycle to get out of the T/L corner
143
151
              self:update(0)
144
152
           end,
164
172
                 end
165
173
 
166
174
                 self.playerMoney.text = 'Your money: ' .. the.player.money
 
175
                 self.availSpace.text = 'Available cargo space: ' .. the.player:availableSpace()
167
176
 
168
177
                 for good, have in pairs(self.have) do
169
178
                    have.text = the.player.goods[good] or 0