Window Vote Flash (#11245)

This commit is contained in:
Geeves
2021-02-27 15:01:46 +02:00
committed by GitHub
parent 397605fe26
commit f10f8a9ce2
3 changed files with 19 additions and 0 deletions
+10
View File
@@ -543,3 +543,13 @@ datum/projectile_data
if(M.client)
viewing += M.client
flick_overlay(I, viewing, duration)
// makes peoples byond icon flash on the taskbar
/proc/window_flash(client/C)
if(ismob(C))
var/mob/M = C
if(M.client)
C = M.client
if(!C)
return
winset(C, "mainwindow", "flash=5")
+3
View File
@@ -49,6 +49,9 @@ var/datum/controller/subsystem/vote/SSvote
log_debug("The server has called a crew transfer vote")
/datum/controller/subsystem/vote/proc/autogamemode()
for(var/thing in clients)
var/client/C = thing
window_flash(C)
initiate_vote("gamemode","the server", 1)
log_debug("The server has called a gamemode vote")
+6
View File
@@ -0,0 +1,6 @@
author: Geeves
delete-after: True
changes:
- rscadd: "The byond icon on your taskbar now flashes when the gamemode vote starts, if you're tabbed out."