Tockra Posted July 16, 2010 Share Posted July 16, 2010 Hi Guys, i have a little / big problem, which Related to the resolution . When i made my guis, i made they relativ and i thought it was a good Solution . Now i have a problem with the login gui ! It should be like that (1280 x 1024 ): http://www.pic-upload.de/view-6373937/orig.png.html]http://www3.pic-upload.de/16.07.10/3ip9dojnsjj.png But it looks like that with my new display( 24 Zoll 16:9 ) (1920 x 1080 ) : http://www.pic-upload.de/view-6373939/falsch.png.html]http://www3.pic-upload.de/16.07.10/ipgnwqy3q8zh.png I hope you see the differents and you can say me how i can stop differents like these... I hope someone can understand me and help me ^^ Link to comment
Robert333 Posted July 17, 2010 Share Posted July 17, 2010 Everyone has the problem too. If you create a Window with relative sizes the window will visibly on your PC super but on others not. So my solution is: Create the Window (just the window!) in absolute sizes, so on every PC your GUI has the same large. In the Window you can script your gui-elements in relative sizes again. Tip: --If you want your GUI showing in middle of screen use this code to get the pos and lengths local w = 200 --length on x 200px local h = 200 --length on y 200px local screenX, screenY = guiGetScreenSize () local x = screenX/2 - w/2 local y = screenY/2 - h/2 local window = guiCreateWindow ( x, y, w, h, 'My Window', false ) Link to comment
Tockra Posted July 17, 2010 Author Share Posted July 17, 2010 Is that okay, too ? : local x,y = guiGetScreenSize() local x2,y2 = 0.2758 * 1280, 0.1572 *1024 local s,d = 0.3562*x, 0.3643*y wnd_login = guiCreateWindow(s,d,x2,y2,"Login",false) Or what is here wrong? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now