/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-30 21:40:01 UTC
  • Revision ID: josh@9ix.org-20130630214001-qb2ykjjrolqm1mzx
recenter mouse on respawn

Show diffs side-by-side

added added

removed removed

Lines of Context:
177
177
              }
178
178
              self:add(self.availSpace)
179
179
 
180
 
              if the.player.kills > 0 then
181
 
                 local award = the.player.kills * 100
182
 
                 self:add(Text:new{
183
 
                             text = 'You have been awarded ' ..
184
 
                                award ..
185
 
                                ' credits for killing bandits.',
186
 
                             width = 450,
187
 
                             align = 'center',
188
 
                             x = boxL,
189
 
                             y = boxB - 4 * th - 12
190
 
                          })
191
 
 
192
 
                 the.player.money = the.player.money + award
193
 
                 the.player.kills = 0
194
 
              end
195
 
 
196
180
              -- give the buttons a cycle to get out of the T/L corner
197
181
              self:update(0)
198
182
           end,
205
189
                 Subview.activate(self)
206
190
              end,
207
191
   close = function (self)
208
 
              the.player:save()
209
 
 
210
192
              the.cursor.visible = true
211
193
              love.mouse.setVisible(false)
212
194
              love.mouse.setGrab(true)