mob/Login()
winset(src, "default","size = 500x500")
mob/verb
NewChar()
set hidden = 1
winset(usr, "default.login","is-visible=false")
winset(usr, "default.new","is-visible=false")
winset(usr, "default.load","is-visible=false")
winset(usr, "default.delete","is-visible=false")
winset(usr, "default","is-maximized=true")
world << "[usr] has logged in."
Problem description:
Basically what I have here is a weird little login thing that I came up with. I used the default window, and put a label in front of everything, then put 3 buttons in front, one for new, one for load, and one for delete. The image for the login screen is 500x500, and I want the window to be at full size after you log in. All of this works, but the window does not stay at 500x500, like I stated for it to do in the code. I have the label image set to stretch, so it stretches across the entire screen. All in all, it looks very bad, and I want to know what I am doing wrong so I may fix it.
There is more code to this; but it is irrelevant.
Just create one main window and fill it with an anchored child element. Create two panes, one for the actual game, one for the Log-in scenario.
This setting allows you to simply switch between the two and yet keep all the neat anchoring functionality that BYOND provides you.