Ignore:
Timestamp:
03/01/11 21:30:59 (9 years ago)
Author:
aspidites
Message:

Patch by Aspidites

+ added code to hud.py and mainmenuview.py to allow the options menu to be displayed.

  • controls on settings menu don't work yet
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/active/character_customization/game/parpg/gui/hud.py

    r754 r763  
    197197           @return: None""" 
    198198        self.main_menu = pychan.loadXML("gui/hud_pause_menu.xml") 
     199        self.settings_menu = pychan.loadXML("gui/settings_menu.xml") 
    199200        #TODO: find more suitalbe place for onOptilonsPress implementation 
    200201        self.menu_events = {"resumeButton": self.hideMenu,  
    201                             "optionsButton": None, 
     202                            "optionsButton": self.displaySettings, 
    202203                            "helpButton": self.displayHelp} 
    203204        self.main_menu.mapEvents(self.menu_events) 
     
    225226        self.enabled = True 
    226227 
     228    def displaySettings(self): 
     229        """Displays the optons menu. 
     230           @return: None""" 
     231        self.settings_menu.show() 
     232        self.settings_menu.mapEvents({"okButton": self.settings_menu.close()}) 
    227233 
    228234    def initializeHelpMenu(self): 
Note: See TracChangeset for help on using the changeset viewer.