You need to use the "r" and "c" modifiers on the position of the panels
to make them layout properly in all aspect ratios. If you set a position
to be "r20" it will be 20 pixels in from the right side of the screen
(that 20 will be scaled if the panel is proportional), "c20" means 20
pixels  to the right from the center of the SCREEN (not the panels
parent!), "c-20" mean 20 pixels to the left of the center of the screen.

- Alfred

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of hp
Sent: Wednesday, August 17, 2005 5:50 AM
To: hlcoders@list.valvesoftware.com
Subject: [hlcoders] vgui and 16:9/10 problem


Hello

I have problem with non 4:3 screen size.
I have made team menu (followed tutorial on
http://www.sourcewiki.org/wiki/index.php/Creating_a_Team-Menu   )

Added it as data to be send when opening motd panel on start of the game
so it opens when motd is closed.

But when it is opening in screen size other than 4:3 it is detecting
wrong screen size:
http://img360.imageshack.us/my.php?image=guiproblem6fk.jpg

But if i use 4:3 screen size it is working fine and covering whole
screen. Also if i change screen size in game it is starting to work in
16:10 and 16:9, but when you turn off and turn on game again its broken
again.

Anyone had such problems? is it vgui error or i messed up something?



_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to