Update of /cvsroot/openrpg/openrpg1/orpg/chat
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv30203/orpg/chat
Modified Files:
commands.py
Log Message:
Made it so you can play sounds if you are not connected to a server
Made it so Sounds are saved in a drop down list on the Sound Toolbar so you can sounds
Made it so if a sound was playing and another sound interupted it, if you switch back to the previous sound it would start back up again where it left off
Added a progress bar to the Sound Toolbar
Index: commands.py
===================================================================
RCS file: /cvsroot/openrpg/openrpg1/orpg/chat/commands.py,v
retrieving revision 1.78
retrieving revision 1.79
diff -C2 -d -r1.78 -r1.79
*** commands.py 3 Mar 2007 00:43:46 -0000 1.78
--- commands.py 10 Mar 2007 17:12:46 -0000 1.79
***************
*** 179,189 ****
loop = ''
(name, ip, id, text_status, version, protocol_version, client_string, role) = self.session.get_my_info()
group_id = self.session.group_id
! if role != 'Lurker' and group_id != '0':
try:
! self.chat.sound_player.play(snd, 'remote', loop)
! snd_xml = '<sound url="' + snd + '" group_id="' + group_id + '" from="' + id + '" loop="' + str(loop) + '" />'
! self.session.send_sound(snd_xml)
except Exception, e:
print e
--- 179,192 ----
loop = ''
+ type = 'remote'
+
(name, ip, id, text_status, version, protocol_version, client_string, role) = self.session.get_my_info()
group_id = self.session.group_id
! if (role != 'Lurker' and group_id != '0') or self.session.get_status() != 1:
try:
! self.chat.sound_player.play(snd, type, loop)
! if type == 'remote':
! snd_xml = '<sound url="' + snd + '" group_id="' + group_id + '" from="' + id + '" loop="' + str(loop) + '" />'
! self.session.send_sound(snd_xml)
except Exception, e:
print e
|