/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-15 23:38:45 UTC
  • Revision ID: josh@9ix.org-20130615233845-7jk8myzua5e842vz
money

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
 
92
92
              self:add(b)
93
93
 
 
94
              self.playerMoney = Text:new{
 
95
                 text = 'Your money: ',
 
96
                 width = 200,
 
97
                 x = boxL + 10,
 
98
                 y = boxT + 400 - th - 10
 
99
              }
 
100
              self:add(self.playerMoney)
 
101
 
94
102
              -- give the buttons a cycle to get out of the T/L corner
95
103
              self:update(0)
96
104
           end,
112
120
                 if the.keys:justPressed('escape') then
113
121
                    self:close()
114
122
                 end
 
123
 
 
124
                 self.playerMoney.text = 'Your money: ' .. the.player.money
115
125
              end
116
126
}
 
 
b'\\ No newline at end of file'