Round End Info button

This commit is contained in:
DeityLink
2015-04-27 22:07:00 +02:00
parent 593907cd82
commit f11f4324a3
4 changed files with 42 additions and 1 deletions

View File

@@ -231,7 +231,9 @@
world << "<b><font size='4'>[score["crewscore"]]</font></b>"
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")

View File

@@ -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()

View File

@@ -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")

View File

@@ -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