Changeset 234

Show
Ignore:
Timestamp:
01/04/07 03:52:49 (5 years ago)
Author:
mg
Message:

Show a label in the controls menu, explaining that you can use Backspace to
clear bindings.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/pyspacewar/ui.py

    r233 r234  
    994994                         ypadding, yspacing) 
    995995 
    996     def position(self, surface, margin=10): 
     996    def position(self, surface, margin=20): 
    997997        """Calculate screen position for the widget.""" 
    998998        width = surface.get_width() - 2 * margin - 2 * self.xpadding 
     
    14931493        self.on_key(K_DELETE, self.clear_item) 
    14941494        self.on_key(K_KP_PERIOD, self.clear_item) 
     1495        self.version = HUDLabel(self.ui.hud_font, 
     1496                                "Press ENTER to change a binding," 
     1497                                " BACKSPACE to clear it", 
     1498                                0.5, 1) 
    14951499 
    14961500    def items(self, label, items):