Skip to content

Commit

Permalink
Merge pull request #3240 from Tennessee116/feature/window_icon
Browse files Browse the repository at this point in the history
Add window icon variable to maps
  • Loading branch information
MistakeNot4892 authored Jul 21, 2023
2 parents 078e753 + 94b0beb commit aded922
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/modules/client/client_procs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,10 @@ var/global/list/localhost_addresses = list(
if(SSinput.initialized)
set_macros()

// If the map has a special logo, modify the server logo.
if(global.using_map.window_icon)
winset(src, "mainwindow", "icon=[global.using_map.window_icon]")

//////////////
//DISCONNECT//
//////////////
Expand Down
3 changes: 3 additions & 0 deletions maps/~mapsystem/maps.dm
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ var/global/const/MAP_HAS_RANK = 2 //Rank system, also togglable
// The list of lobby tracks to pick() from. If left unset will randomly select among all available /music_track subtypes.
var/list/lobby_tracks = list()

// A server logo displayed on the taskbar and top-left part of the window. Leave null for the default DM icon.
var/window_icon

// Sounds played on roundstart
var/list/welcome_sound = 'sound/AI/welcome.ogg'
// Sounds played with end titles (credits)
Expand Down

0 comments on commit aded922

Please sign in to comment.