Ignore:
Timestamp:
07/27/10 10:20:23 (10 years ago)
Author:
beliar
Message:

Patch by Beliar.

  • Dropping items menu action now only shows when right-clicking on an item in the players inventory
  • Actions that are supposed to happen when a key is pressed now work again.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/scripts/gui/hud.py

    r584 r600  
    121121    def addAction(self, action): 
    122122        """Add an action to the actions box. 
    123            @type action: string 
     123           @type action: (unicode) string 
    124124           @param action: The text that you want to display in the actions box 
    125            @return: None""" 
     125           @return: None"""         
     126        if not type(action) is unicode: 
     127            action = unicode(action) 
    126128        action_label = pychan.widgets.Label(text = action, wrap_text = True) 
    127129        action_label.max_width = self.actions_box.width 
Note: See TracChangeset for help on using the changeset viewer.