ID:141037
 
Code:
        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?

AZA wrote:
Code:
>       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.
In response to Green Lime
So you can't change is-default at runtime?

Fair enough, I suppose a work around would be to display the main window in the background with full alpha transparency.
In response to AZA
AZA wrote:
So you can't change is-default at runtime?

You can, but doing so only effects certain capabilities of the window which are not task bar modification.

Fair enough, I suppose a work around would be to display the main window in the background with full alpha transparency.

Wouldn't this activate the hardware mode and cause BYOND to run slower? May I suggest trying to shrink the window to a size of insignificant or even moving the window off screen before trying the above.
In response to Green Lime
My game already uses hardware mode due to a fade-in splash screen, so it makes no difference to me.