mirror of
				https://github.com/DerTyp7/teamspeak-obs-overlay.git
				synced 2025-10-31 05:37:10 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			964 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			964 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| function drawClients() {
 | |
|   let elem = document.getElementById("content");
 | |
| 
 | |
|   result = "";
 | |
|   if (thisClient) {
 | |
|     getClientsInChannel(thisClient.channel).forEach((c) => {
 | |
|       result += `<div class="client-div" style="color:${CONFIG.style.fontColor}; font-size:${CONFIG.style.fontSize}">`;
 | |
|       result += '<div class="client-img-div">';
 | |
|       if (c.outputMuted) {
 | |
|         result += '	<img src="img/muted_output.svg" />';
 | |
|       } else if (c.inputMuted) {
 | |
|         result += '	<img src="img/muted_input.svg" />';
 | |
|       } else if (c.talkStatus == 1) {
 | |
|         result += '	<img src="img/on.svg" />';
 | |
|       } else {
 | |
|         result += '	<img src="img/off.svg" />';
 | |
|       }
 | |
|       result += "</div>";
 | |
|       result += `<div class="client-text-div"
 | |
| 			 style="-webkit-text-stroke:${CONFIG.style.fontStrokeSize} ${CONFIG.style.fontStrokeColor};
 | |
| 			"><p style="background:${CONFIG.style.fontBackground};">${c.name}</p></div></div>`;
 | |
|     });
 | |
|   }
 | |
| 
 | |
|   elem.innerHTML = result;
 | |
| }
 | 
