Esempio n. 1
0
 def enterFrameworkRules(self):
     self.notify.debug('BASE: enterFrameworkRules')
     self.accept(self.rulesDoneEvent, self.handleRulesDone)
     self.rulesPanel = MinigameRulesPanel.MinigameRulesPanel(
         'MinigameRulesPanel', self.getTitle(), self.getInstructions(),
         self.rulesDoneEvent)
     self.rulesPanel.load()
     self.rulesPanel.enter()
Esempio n. 2
0
    def enterFrameworkRules(self):
        """
        At some point during the rules, we might hear the game ready message
        which means all avatars have arrived.
        Tell the play game state data to show the rules
        Inheritors should override this completely
        """
        self.notify.debug("BASE: enterFrameworkRules")

        self.accept(self.rulesDoneEvent, self.handleRulesDone)
        # The rules panel is an onscreen panel
        self.rulesPanel = MinigameRulesPanel.MinigameRulesPanel(
            "MinigameRulesPanel", self.getTitle(), self.getInstructions(),
            self.rulesDoneEvent)
        self.rulesPanel.load()
        self.rulesPanel.enter()

        # DEBUG: instantly press the play button on the rules panel
        if 0:
            messenger.send(self.rulesDoneEvent)