VGUI2 Panels have a proportional parameter (accessed via
SetProportional() and IsProportional() ). If you SetProportional() in
the constructor of your panel that all co-ords and sizes you pass to the
panel via config files will be scaled from 800x600 to the users
resolution (note that sizes you set via code are always based upon the
clients native resolution).

- Alfred

----Original Message----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Cale Dunlap
Sent: Sunday, January 23, 2005 9:51 AM To:
hlcoders@list.valvesoftware.com Subject: [hlcoders] VGUI2 Positioning
with Resource Files

> This is a multi-part message in MIME format.
> --
> [ Picked text/plain from multipart/alternative ] Are the numbers
> defining the xpos and ypos dependant on the client's resolution or
> are they scaled so they look similar/same at runtime?
>
> Remember how in HL1SDK there were macros called XRES and YRES? I
> found them in the SSDK but I'm wondering if the numbers from the
> scheme files get processed through these macros also. I'm using a
> combination of resource files and hardcode for a team menu.
>
> This question was probably already asked, but I haven't found it yet.
>
> -Cale
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 265.7.2 - Release Date: 1/21/2005

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

Reply via email to