leave_lobby()
if(src in InLobby)
src.mob.in_game=1
winshow(src,"gamelobby",0)
winset(src,"gamelobby","is-default=false")
src.verbs-=/client/proc/ispressedLobbyReady
src.verbs-=/client/proc/ispressedLobbyCharacterSetup
winshow(src,"mainwindow",1)
winset(src,"mainwindow","is-default=true")
InLobby-=src
for(var/client/A in InLobby)
A<<output("<b>[src] has left the lobby.</b>","gamelobby.out_lobby")
A.UpdateLobbyOnce()
Problem description:
The problem I've been having is being able to change the 'default window' on the interface windows. Is it even possible to change this at runtime?
I wouldn't be bothered, except that a non-default window will not show up in the task-bar, which is a pain in the ass when I've got multiple screens showing before the actual game window shows up.
Hell, most of the people who log in never actually end up playing, either because they lose the window (and have to alt+tab to it) or because they try to close options and messages (which closes the game if there's no default window open)
Any solutions?
I posted this 2 years ago, so I'm not sure how much it will help.
http://www.byond.com/developer/forum?id=595006&view=1
Good luck.