Mercurial > pyntnclick
comparison gamelib/state.py @ 397:b1dc0caec668
Improved mouse handling edge cases.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sat, 28 Aug 2010 20:46:06 +0200 |
parents | 56a05ae56574 |
children | df3216b369b1 |
comparison
equal
deleted
inserted
replaced
396:ba939334d1db | 397:b1dc0caec668 |
---|---|
173 return self.current_scene.interact(self.tool, pos) | 173 return self.current_scene.interact(self.tool, pos) |
174 | 174 |
175 def interact_detail(self, pos): | 175 def interact_detail(self, pos): |
176 return self.current_detail.interact(self.tool, pos) | 176 return self.current_detail.interact(self.tool, pos) |
177 | 177 |
178 def cancel_doodah(self, screen): | |
179 if self.tool: | |
180 self.set_tool(None) | |
181 elif self.current_detail: | |
182 screen.state_widget.clear_detail() | |
183 | |
178 def do_enter_detail(self): | 184 def do_enter_detail(self): |
179 if self.current_detail: | 185 if self.current_detail: |
180 self.current_detail.enter() | 186 self.current_detail.enter() |
181 | 187 |
182 def do_leave_detail(self): | 188 def do_leave_detail(self): |