diff --git a/code/_helpers/game.dm b/code/_helpers/game.dm index ad1a2a95ef1..01037c06f2c 100644 --- a/code/_helpers/game.dm +++ b/code/_helpers/game.dm @@ -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") \ No newline at end of file diff --git a/code/controllers/subsystems/vote.dm b/code/controllers/subsystems/vote.dm index da8179e7a0b..2fbefe3b9ed 100644 --- a/code/controllers/subsystems/vote.dm +++ b/code/controllers/subsystems/vote.dm @@ -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") diff --git a/html/changelogs/geeves-window_flash.yml b/html/changelogs/geeves-window_flash.yml new file mode 100644 index 00000000000..b0e57118999 --- /dev/null +++ b/html/changelogs/geeves-window_flash.yml @@ -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." \ No newline at end of file