/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:
49
49
                    x = boxR - 80,
50
50
                    y = boxT + 10 + (i-1) * lh - 1,
51
51
                    label = Text:new{ text = 'BUY', x = 1 },
52
 
                    onMouseDown = function (self)
53
 
                                     the.player:buy(good[1], good[2])
54
 
                                  end
55
52
                 }
56
53
                 local tw, th = b.label:getSize()
57
54
                 b.background = Fill:new{
65
62
                    x = boxR - 40,
66
63
                    y = boxT + 10 + (i-1) * lh - 1,
67
64
                    label = Text:new{ text = 'SELL', x = 1 },
68
 
                    onMouseDown = function (self)
69
 
                                     the.player:sell(good[1], good[2])
70
 
                                  end
71
65
                 }
72
66
                 local tw, th = b.label:getSize()
73
67
                 b.background = Fill:new{