Hello, I want to put my DPanel at the center of the screen, but I dont know how. Can anyone help me?
panel:Center()
I put this instead of panel:SetPos and it will put it in the center of the screen?
Yes.
[QUOTE=bilbasio;19468716]I put this instead of panel:SetPos and it will put it in the center of the screen?[/QUOTE]
seriously, how hard is it to change a line then try the script?
[QUOTE=CombineGuru;19469244]seriously, how hard is it to change a line then try the script?[/QUOTE]
Dude, i dont think the computer at my school have gmod...
[QUOTE=decyg;19482712]Or try panel:SetPos(ScrW()/2,ScrH()/2)[/QUOTE]
This is what exactly what I tried before posting here...
[QUOTE=bilbasio;19483120]This is what exactly what I tried before posting here...[/QUOTE]
[QUOTE=NullPoint;19482744][lua]panel:SetPos(ScrW()/2 - panel:GetWide()/2, ScrH()/2 - panel:GetTall()/2)[/lua][/QUOTE]
.
Sorry, you need to Log In to post a reply to this thread.