/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-16 03:33:21 UTC
  • Revision ID: josh@9ix.org-20130616033321-6g7mgyxz3iyvt3un
move mouse to center when entering/exiting trade screen

Show diffs side-by-side

added added

removed removed

146
146
                 the.cursor.visible = false
147
147
                 love.mouse.setVisible(true)
148
148
                 love.mouse.setGrab(false)
 
149
                 love.mouse.setPosition(the.app.width / 2, the.app.height / 2)
149
150
 
150
151
                 Subview.activate(self)
151
152
              end,
153
154
              the.cursor.visible = true
154
155
              love.mouse.setVisible(false)
155
156
              love.mouse.setGrab(true)
 
157
              love.mouse.setPosition(the.app.width / 2, the.app.height / 2)
156
158
 
157
159
              self:deactivate()
158
160
           end,