Changeset 326


Ignore:
Timestamp:
10/15/09 18:40:50 (10 years ago)
Author:
eliedebrauwer
Message:

Ticket #117: Patch by eliedebrauwer, fixed load/save game callback, due to refactoring (see ticket #2) variable and function names got mixed up. fixes[s:trac, t:117]

Location:
trunk/game/scripts
Files:
2 edited

Legend:

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

    r313 r326  
    6060        self.save_game_callback = callbacks['saveGame'] 
    6161        self.load_game_callback = callbacks['loadGame'] 
    62         self.quit_callback     = callbacks['quitGame'] 
     62        self.quit_callback      = callbacks['quitGame'] 
    6363 
    6464        self.box_container = None 
     
    384384        # when we click the toggle button don't change the image 
    385385        events_to_map["inventoryButton"] = cbwa(self.toggleInventory, False) 
    386         events_to_map["saveButton"] = self.save_game_callback 
    387         events_to_map["loadButton"] = self.load_game_callback 
     386        events_to_map["saveButton"] = self.saveGame 
     387        events_to_map["loadButton"] = self.loadGame 
    388388 
    389389        hud_ready_buttons = ["hudReady1", "hudReady2", \ 
     
    398398        menu_events["newButton"] = self.newGame 
    399399        menu_events["quitButton"] = self.quitGame 
    400         menu_events["saveButton"] = self.save_game_callback 
    401         menu_events["loadButton"] = self.load_game_callback 
     400        menu_events["saveButton"] = self.saveGame 
     401        menu_events["loadButton"] = self.loadGame 
    402402        self.main_menu.mapEvents(menu_events) 
    403403 
  • trunk/game/scripts/world.py

    r323 r326  
    9090        """Saves the game state 
    9191           @return: None""" 
     92        print args 
     93        print kwargs  
    9294        self.data.save(*args, **kwargs) 
    9395 
Note: See TracChangeset for help on using the changeset viewer.