Browse Source

add the "priority speaker" status icon, and reorder the icons to appear like they do in the mumble client

Natenom/support-murmur-13-1446181288462
Michael Ziegler 15 years ago
parent
commit
6bebc1b828
  1. 8
      COPYRIGHT
  2. 15
      htdocs/js/channelviewer.js
  3. BIN
      htdocs/mumble/priority_speaker.png

8
COPYRIGHT

@ -119,3 +119,11 @@ License:
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
===============================================================================
The image "htdocs/mumble/priority_speaker.jpg" is an svg rendering of
"actions/audio-input-microphone.svg" from the Tango Icon Library, which has
been placed in the public domain by the Tango Desktop Project:
http://tango.freedesktop.org/Tango_Desktop_Project

15
htdocs/js/channelviewer.js

@ -27,13 +27,14 @@ Ext.ux.MumbleUserNodeUI = Ext.extend(Ext.tree.TreeNodeUI, {
'<img style="position: absolute; top: 0px; right: {pos}px;" src="/static/mumble/{icon}.png"/>' '<img style="position: absolute; top: 0px; right: {pos}px;" src="/static/mumble/{icon}.png"/>'
); );
var icons = [] var icons = []
if( a.userdata.userid != 0 ) icons.push( "authenticated" );
if( a.userdata.selfMute ) icons.push( "muted_self" );
if( a.userdata.mute ) icons.push( "muted_server" );
if( a.userdata.suppress ) icons.push( "muted_suppressed" );
if( a.userdata.selfDeaf ) icons.push( "deafened_self" );
if( a.userdata.deaf ) icons.push( "deafened_server" );
if( a.userdata.comment != "" ) icons.push( "comment_seen" );
if( a.userdata.userid != 0 ) icons.push( "authenticated" );
if( a.userdata.selfDeaf ) icons.push( "deafened_self" );
if( a.userdata.deaf ) icons.push( "deafened_server" );
if( a.userdata.selfMute ) icons.push( "muted_self" );
if( a.userdata.suppress ) icons.push( "muted_suppressed" );
if( a.userdata.mute ) icons.push( "muted_server" );
if( a.userdata.comment != "" ) icons.push( "comment_seen" );
if( a.userdata.prioritySpeaker ) icons.push( "priority_speaker" );
var pos = 8; var pos = 8;
for( var i = 0; i < icons.length; i++ ){ for( var i = 0; i < icons.length; i++ ){
tpl.append( this.elNode, {'icon': icons[i], 'pos': pos} ); tpl.append( this.elNode, {'icon': icons[i], 'pos': pos} );

BIN
htdocs/mumble/priority_speaker.png

After

Width: 16  |  Height: 16  |  Size: 701 B

Loading…
Cancel
Save