Package parpg :: Package gui :: Module inventorygui :: Class InventoryGUI
[hide private]
[frames] | no frames]

Class InventoryGUI

source code

                        object --+    
                                 |    
containergui_base.ContainerGUIBase --+
                                     |
                                    InventoryGUI

Instance Methods [hide private]
 
__init__(self, controller, inventory, callbacks)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
toggleInventory(self, toggleImage=True)
Pause the game and enter the inventory screen, or close the inventory screen and resume the game.
source code
 
showInventory(self) source code
 
closeInventory(self) source code

Inherited from containergui_base.ContainerGUIBase: createMenuItems, dragDrop, dragObject, dropObject, executeMenuItem, showContextMenu, updateImages

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, controller, inventory, callbacks)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

toggleInventory(self, toggleImage=True)

source code 

Pause the game and enter the inventory screen, or close the inventory screen and resume the game.

Parameters:
  • toggleImage (bool) - Call toggleInventoryCallback if True. Toggling via a keypress requires that we toggle the Hud inventory image explicitly. Clicking on the Hud inventory button toggles the image implicitly, so we don't change it.
Returns:
None