/traderous

To get this branch, use:
bzr branch http://9ix.org/bzr/traderous

« back to all changes in this revision

Viewing changes to trade_view.lua

  • Committer: Josh C
  • Date: 2013-06-19 01:06:14 UTC
  • Revision ID: josh@9ix.org-20130619010614-j3rbcv1c0my2tw0f
enemy shields and death

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
 
 
150
142
              -- give the buttons a cycle to get out of the T/L corner
151
143
              self:update(0)
152
144
           end,
172
164
                 end
173
165
 
174
166
                 self.playerMoney.text = 'Your money: ' .. the.player.money
175
 
                 self.availSpace.text = 'Available cargo space: ' .. the.player:availableSpace()
176
167
 
177
168
                 for good, have in pairs(self.have) do
178
169
                    have.text = the.player.goods[good] or 0