Mercurial > parpg-source
comparison gui/hud.py @ 107:100a39fa64a2
Added ExamineContentsAction.
Added "Examine Contents" to the context menu, when the object is a container and does not have a characterstats component.
author | KarstenBock@gmx.net |
---|---|
date | Fri, 30 Sep 2011 15:31:53 +0200 |
parents | d0b600d7136c |
children | 2399a8c3da0c |
comparison
equal
deleted
inserted
replaced
106:edadf3ff8a9a | 107:100a39fa64a2 |
---|---|
476 def hideContainer(self): | 476 def hideContainer(self): |
477 """Hide the container box | 477 """Hide the container box |
478 @return: None""" | 478 @return: None""" |
479 if self.box_container: | 479 if self.box_container: |
480 self.box_container.hideContainer() | 480 self.box_container.hideContainer() |
481 #TODO: Move the close() call into OpenBoxAction(). This can be done | |
482 # after createBoxGUI becomes a blocking call or it's otherwise | |
483 # possible to wait till the box GUI is closed. | |
484 if self.box_container.container.trueAttr("openable"): | |
485 self.box_container.container.close() | |
486 self.box_container = None | 481 self.box_container = None |
487 | 482 |
488 def createExamineBox(self, title, desc): | 483 def createExamineBox(self, title, desc): |
489 """Create an examine box. It displays some textual description of an | 484 """Create an examine box. It displays some textual description of an |
490 object | 485 object |