Mercurial > rinkhals
comparison gamelib/gameboard.py @ 289:37d88a9fc097
Tweak toolbar spacing
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Sat, 05 Sep 2009 16:05:41 +0000 |
parents | 5539744cfd40 |
children | 664bba9be40a |
comparison
equal
deleted
inserted
replaced
288:5539744cfd40 | 289:37d88a9fc097 |
---|---|
74 self.add_counter(mklabel("Day:"), self.day_counter) | 74 self.add_counter(mklabel("Day:"), self.day_counter) |
75 self.add_counter(mklabel("Groats:"), self.cash_counter) | 75 self.add_counter(mklabel("Groats:"), self.cash_counter) |
76 self.add_counter(mklabel("Eggs:"), self.egg_counter) | 76 self.add_counter(mklabel("Eggs:"), self.egg_counter) |
77 self.add_counter(icons.CHKN_ICON, self.chicken_counter) | 77 self.add_counter(icons.CHKN_ICON, self.chicken_counter) |
78 self.add_counter(icons.KILLED_FOX, self.killed_foxes) | 78 self.add_counter(icons.KILLED_FOX, self.killed_foxes) |
79 self.add_spacer(20) | 79 self.add_spacer(15) |
80 | 80 |
81 self.add_tool_button("Move Hen", constants.TOOL_PLACE_ANIMALS, | 81 self.add_tool_button("Move Hen", constants.TOOL_PLACE_ANIMALS, |
82 None, cursors.cursors['select']) | 82 None, cursors.cursors['select']) |
83 self.add_tool_button("Cut Trees", constants.TOOL_LOGGING, | 83 self.add_tool_button("Cut Trees", constants.TOOL_LOGGING, |
84 constants.LOGGING_PRICE, cursors.cursors['ball']) | 84 constants.LOGGING_PRICE, cursors.cursors['ball']) |
85 self.add_spacer(20) | 85 self.add_spacer(15) |
86 | 86 |
87 self.add_heading("Sell ...") | 87 self.add_heading("Sell ...") |
88 self.add_tool_button("Chicken", constants.TOOL_SELL_CHICKEN, | 88 self.add_tool_button("Chicken", constants.TOOL_SELL_CHICKEN, |
89 constants.SELL_PRICE_CHICKEN, cursors.cursors['sell']) | 89 constants.SELL_PRICE_CHICKEN, cursors.cursors['sell']) |
90 self.add_tool_button("Egg", constants.TOOL_SELL_EGG, | 90 self.add_tool_button("Egg", constants.TOOL_SELL_EGG, |
91 constants.SELL_PRICE_EGG, cursors.cursors['sell']) | 91 constants.SELL_PRICE_EGG, cursors.cursors['sell']) |
92 self.add_tool_button("Building", constants.TOOL_SELL_BUILDING, | 92 self.add_tool_button("Building", constants.TOOL_SELL_BUILDING, |
93 None, cursors.cursors['sell']) | 93 None, cursors.cursors['sell']) |
94 self.add_tool_button("Equipment", constants.TOOL_SELL_EQUIPMENT, | 94 self.add_tool_button("Equipment", constants.TOOL_SELL_EQUIPMENT, |
95 None, cursors.cursors['sell']) | 95 None, cursors.cursors['sell']) |
96 self.add_spacer(20) | 96 self.add_spacer(15) |
97 | 97 |
98 self.add_heading("Buy ...") | 98 self.add_heading("Buy ...") |
99 | 99 |
100 self.add_tool_button("Fence", constants.TOOL_BUY_FENCE, | 100 self.add_tool_button("Fence", constants.TOOL_BUY_FENCE, |
101 "%s/%s" % (constants.BUY_PRICE_FENCE, | 101 "%s/%s" % (constants.BUY_PRICE_FENCE, |
109 self.add_tool_button(equipment_cls.NAME.title(), | 109 self.add_tool_button(equipment_cls.NAME.title(), |
110 equipment_cls, | 110 equipment_cls, |
111 equipment_cls.BUY_PRICE, | 111 equipment_cls.BUY_PRICE, |
112 cursors.cursors.get('buy', None)) | 112 cursors.cursors.get('buy', None)) |
113 | 113 |
114 self.add_spacer(10) | |
114 self.add_tool("Price Reference", self.show_prices) | 115 self.add_tool("Price Reference", self.show_prices) |
115 self.add_spacer(30) | 116 self.add_spacer(20) |
116 | 117 |
117 self.add_tool("Finished Day", self.day_done) | 118 self.add_tool("Finished Day", self.day_done) |
118 | 119 |
119 def day_done(self): | 120 def day_done(self): |
120 import engine | 121 import engine |