Changeset 292:bf271e857157


Ignore:
Timestamp:
Sep 5, 2009, 4:14:23 PM (11 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Convert:
svn:b4e93282-eac8-4b8b-b765-0f5d36de2b68@293
Message:

Clear tool when calling price dialog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gamelib/gameboard.py

    r290 r292  
    117117
    118118        self.add_tool("Finished Day", self.day_done)
     119
     120        self.anim_clear_tool = False # Flag to clear the tool on an anim loop
    119121
    120122    def day_done(self):
     
    176178        close_button.connect(gui.CLICK, dialog.close)
    177179        dialog.open()
     180        self.anim_clear_tool = True
    178181
    179182    update_cash_counter = mkcountupdate('cash_counter')
     
    210213        for item in self.group.widgets:
    211214            item.pcls = ""
     215        self.anim_clear_tool = False
    212216
    213217    def add_counter(self, icon, label):
     
    785789        for anim in self.animations:
    786790            anim.animate()
     791        if self.toolbar.anim_clear_tool:
     792            self.toolbar.clear_tool()
    787793
    788794    def move_foxes(self):
Note: See TracChangeset for help on using the changeset viewer.