ID:430858
 
Keywords: login, winshow
(See the best response by Albro1.)
Code:
mob
Login()
..()
winshow(src,"main",0)
winshow(src,"raceselectionwin",0)
winshow(src,"hairselectionwin",0)
winshow(src,"loginwin",1)
src.online=1


Problem description:
This is the general login procedure for my game and i am frustrated why its not working.When I login i have all my windows opening up instead of just the Loginwin i commanded it too.Prior on everything i understand on BYOND Coding i dont know what is causing this to happen.I want just one window to open why is everything opening?

Are the window names the same (Same, lower and upper letters) as the ones in winshow()?
Best response
Just set all those windows aside from your default one to be invisible from the start. To do this, go to the Skin Editor, double click the window you want, then double click the window itself, not any element in it. If this is done correctly, you will have the popup that contains the window ID in it. Below the ID are several checkboxes, one of which being "Visible". Uncheck it, hit okay, rinse, and repeat. Then just make the ones you want visible, visible, when you need to.
@Blastcore Yes the windows name are the same i checked. I made everything lowercase.
@Albro This might work but its it necessary for me to solve it this shady way, i want to know why its happening and fix it the correct and normal way.
I think i will remove all Login() and BackTrack...Thank You All For Your Help
Ok now i have proof im not going crazy...i have removed all winshow() in my src and tried loggin and all my windows still open up...so my problem is not in the winshow() is somewhere else idk where
Do you have 2 logins around?
yea i have multiple logins
This is the main Login() i just removed the winshow from it
mob
Login()
..()

src.online=1

This is another Login() for my GMs and special characters

mob/Login()
if(src.key=="GrimmJore"|| src.key=="Paradox Incorporation")
src.icon='Male - Tan.dmi'
src.specialagent=1
src.Checkagent()
src.online=1
src.maxpowerlevel=1000000
mob/Login()
if(src.key == "Tales2008"|| src.key == "Jadow")
src.GMLevel=7
src.Checkgm()
src.maxpowerlevel=100
Try to only have one Login for clients and have ..() in them all.
Also if
winset(src,"window",0) isn't working try
winset(src,"window","is-visible = false")
ok and i havent tried winset() yet but i will.i been using winshow()
Sorry I meant winshow in that first line.
Yeah try winset, but I'm pretty sure the problems still your multiple Login()s
Actually I think it's your lack of ..() in them
It is a result of your Login()s. Every one of them needs to have a ..() in it. Otherwise it will only compile and run the first one it finds.
BRILLANT!..it worked now all i have to do is reset the winshow() again Thank yu all very much