diff --git a/code/game/gamemodes/scoreboard.dm b/code/game/gamemodes/scoreboard.dm index 3875fcd88ec..1d74110c96e 100644 --- a/code/game/gamemodes/scoreboard.dm +++ b/code/game/gamemodes/scoreboard.dm @@ -231,7 +231,9 @@ world << "[score["crewscore"]]" for(var/mob/E in player_list) - if(E.client) E.scorestats(completions) + if(E.client) + E.scorestats(completions) + winset(E.client, "rpane.round_end", "is-visible=true") return @@ -378,6 +380,7 @@ if(!endgame_info_logged)//so the End Round info only gets logged on the first player. endgame_info_logged = 1 + round_end_info = dat log_game(dat) src << browse(dat, "window=roundstats;size=1000x600") diff --git a/code/global.dm b/code/global.dm index 045698effb4..3b076a9c529 100644 --- a/code/global.dm +++ b/code/global.dm @@ -1,3 +1,6 @@ +//Content of the Round End Information window +var/round_end_info = "" + //List of ckeys that have de-adminned themselves during this round var/global/list/deadmins = list() diff --git a/interface/interface.dm b/interface/interface.dm index d0d62a053f4..358567b14ee 100644 --- a/interface/interface.dm +++ b/interface/interface.dm @@ -124,3 +124,10 @@ Admin: set name = ".swinset" set hidden = 1 winset(src, null, x) + +/client/verb/roundendinfo() + set name = "RoundEndInformation" + set desc = "Open the Round End Information window." + set hidden = 1 + + src << browse(round_end_info, "window=roundstats;size=1000x600") diff --git a/interface/skin.dmf b/interface/skin.dmf index db0cd6e180f..0f95d2bfa81 100644 --- a/interface/skin.dmf +++ b/interface/skin.dmf @@ -1409,6 +1409,34 @@ window "rpane" macro = "" menu = "" on-close = "" + elem "round_end" + type = BUTTON + pos = 640,0 + size = 224x32 + anchor1 = none + anchor2 = none + font-family = "" + font-size = 0 + font-style = "" + text-color = #ffffff + background-color = #808080 + is-visible = false + is-disabled = false + is-transparent = false + is-default = false + border = none + drop-zone = false + right-click = false + saved-params = "is-checked" + on-size = "" + text = "Round End Information" + image = "" + command = "RoundEndInformation" + is-flat = false + stretch = false + is-checked = false + group = "rpanemode" + button-type = pushbutton elem "rpanewindow" type = CHILD pos = 0,0