Пример #1
0
    def on_chime(self):
        """
		Called chime action. Displaying call for help on artists and game design,
		introduces information for SoC applicants (if valid).
		"""
        AmbientSound.play_special("message")
        self.show_dialog(self.widgets["call_for_support"], {"okButton": True}, onPressEscape=True)
Пример #2
0
	def on_chime(self):
		"""
		Called chime action. Displaying call for help on artists and game design,
		introduces information for SoC applicants (if valid).
		"""
		AmbientSound.play_special("message")
		self.show_dialog(self.widgets['call_for_support'], {'okButton' : True}, onPressEscape = True)
Пример #3
0
	def on_chime(self):
		"""
		Called chime action.
		"""
		AmbientSound.play_special("message")
		message = _("Yeah, you made it...\n\nBut this is a placeholder, sorry.")
		self.show_popup(_("Chime The Bell"), message)
Пример #4
0
	def __call__(self, issuer):
		"""Execute the command
		@param issuer: the issuer of the command
		"""
		if self.position is None:
			AmbientSound.play_special(self.sound)
		else:
			AmbientSound.play_special(self.sound, Point(self.position[0], self.position[1]))
Пример #5
0
    def __call__(self, issuer):
        """Execute the command
		@param issuer: the issuer of the command
		"""
        if self.position is None:
            AmbientSound.play_special(self.sound)
        else:
            AmbientSound.play_special(
                self.sound, Point(self.position[0], self.position[1]))
	def _add_message(self, message, sound = None):
		"""Internal function for adding messages. Do not call directly.
		@param message: Message instance
		@param sound: path tosoundfile"""
		self.active_messages.insert(0, message)

		if len(self.active_messages) > self.MAX_MESSAGES:
			self.active_messages.remove(self.active_messages[self.MAX_MESSAGES])

		if sound:
			horizons.main.fife.play_sound('speech', sound)
		else:
			# play default msg sound
			AmbientSound.play_special('message')

		self.draw_widget()
		self.show_text(0)
		ExtScheduler().add_new_object(self.hide_text, self, self.SHOW_NEW_MESSAGE_TEXT)