Changeset 169:946f09ed37cd


Ignore:
Timestamp:
Sep 3, 2009, 10:44:20 PM (11 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Convert:
svn:b4e93282-eac8-4b8b-b765-0f5d36de2b68@170
Message:

Make equipment dialog close after selecting an item to sell.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gamelib/gameboard.py

    r168 r169  
    329329
    330330        self.disp.open(tbl)
     331        return tbl
    331332
    332333    def open_building_dialog(self, building):
     
    454455            self.add_cash(item.sell_price())
    455456            chicken.unequip(item)
    456             self.disp.close(tbl)
     457            self.disp.close(dialog)
    457458
    458459        kwargs = { 'style': { 'padding_left': 10, 'padding_bottom': 10 }}
     
    467468            tbl.td(button, align=1, **kwargs)
    468469
    469         self.open_dialog(tbl)
     470        dialog = self.open_dialog(tbl)
    470471
    471472    def event(self, e):
Note: See TracChangeset for help on using the changeset viewer.