/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-16 00:13:58 UTC
  • Revision ID: josh@9ix.org-20130616001358-dw3n864y37fgw1hs
buy/sell

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