mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-14 04:02:31 +00:00
Panel closes on latejoin
Sure would be nice if that panel went away when you latejoin.
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
var/spawning = 0//Referenced when you want to delete the new_player later on in the code.
|
||||
var/totalPlayers = 0 //Player counts for the Lobby tab
|
||||
var/totalPlayersReady = 0
|
||||
var/datum/browser/panel
|
||||
universal_speak = 1
|
||||
|
||||
invisibility = 101
|
||||
@@ -62,10 +63,10 @@
|
||||
output += "</div>"
|
||||
|
||||
//src << browse(output,"window=playersetup;size=210x280;can_close=0")
|
||||
var/datum/browser/popup = new(src, "New Player","New Player", 210, 280, src)
|
||||
popup.set_window_options("can_close=0")
|
||||
popup.set_content(output)
|
||||
popup.open()
|
||||
panel = new(src, "New Player","New Player", 210, 280, src)
|
||||
panel.set_window_options("can_close=0")
|
||||
panel.set_content(output)
|
||||
panel.open()
|
||||
return
|
||||
|
||||
/mob/new_player/Stat()
|
||||
@@ -102,7 +103,8 @@
|
||||
ready = 0
|
||||
|
||||
if(href_list["refresh"])
|
||||
src << browse(null, "window=playersetup") //closes the player setup window
|
||||
//src << browse(null, "window=playersetup") //closes the player setup window
|
||||
panel.close()
|
||||
new_player_panel_proc()
|
||||
|
||||
if(href_list["observe"])
|
||||
@@ -472,8 +474,10 @@
|
||||
return 0
|
||||
|
||||
/mob/new_player/proc/close_spawn_windows()
|
||||
|
||||
src << browse(null, "window=latechoices") //closes late choices window
|
||||
src << browse(null, "window=playersetup") //closes the player setup window
|
||||
//src << browse(null, "window=playersetup") //closes the player setup window
|
||||
panel.close()
|
||||
|
||||
/mob/new_player/proc/has_admin_rights()
|
||||
return check_rights(R_ADMIN, 0, src)
|
||||
|
||||
Reference in New Issue
Block a user