mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-14 20:23:26 +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/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/totalPlayers = 0 //Player counts for the Lobby tab
|
||||||
var/totalPlayersReady = 0
|
var/totalPlayersReady = 0
|
||||||
|
var/datum/browser/panel
|
||||||
universal_speak = 1
|
universal_speak = 1
|
||||||
|
|
||||||
invisibility = 101
|
invisibility = 101
|
||||||
@@ -62,10 +63,10 @@
|
|||||||
output += "</div>"
|
output += "</div>"
|
||||||
|
|
||||||
//src << browse(output,"window=playersetup;size=210x280;can_close=0")
|
//src << browse(output,"window=playersetup;size=210x280;can_close=0")
|
||||||
var/datum/browser/popup = new(src, "New Player","New Player", 210, 280, src)
|
panel = new(src, "New Player","New Player", 210, 280, src)
|
||||||
popup.set_window_options("can_close=0")
|
panel.set_window_options("can_close=0")
|
||||||
popup.set_content(output)
|
panel.set_content(output)
|
||||||
popup.open()
|
panel.open()
|
||||||
return
|
return
|
||||||
|
|
||||||
/mob/new_player/Stat()
|
/mob/new_player/Stat()
|
||||||
@@ -102,7 +103,8 @@
|
|||||||
ready = 0
|
ready = 0
|
||||||
|
|
||||||
if(href_list["refresh"])
|
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()
|
new_player_panel_proc()
|
||||||
|
|
||||||
if(href_list["observe"])
|
if(href_list["observe"])
|
||||||
@@ -472,8 +474,10 @@
|
|||||||
return 0
|
return 0
|
||||||
|
|
||||||
/mob/new_player/proc/close_spawn_windows()
|
/mob/new_player/proc/close_spawn_windows()
|
||||||
|
|
||||||
src << browse(null, "window=latechoices") //closes late choices window
|
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()
|
/mob/new_player/proc/has_admin_rights()
|
||||||
return check_rights(R_ADMIN, 0, src)
|
return check_rights(R_ADMIN, 0, src)
|
||||||
|
|||||||
Reference in New Issue
Block a user