Hello Alfred,

ok i found it in motd panel - thx

Wednesday, August 17, 2005, 9:01:15 PM, you wrote:


> You need to scale the background in code. The proportional mode scales
> with a fixed aspect ratio of 4:3 by design (having a variable aspect
> ratio makes panel layout impossible).

> - Alfred


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of hp
> Sent: Wednesday, August 17, 2005 11:44 AM
> To: Alfred Reynolds
> Subject: Re[2]: [hlcoders] vgui and 16:9/10 problem

> Hello Alfred,

> thx but that will not fix my problem i think here is my res:

>         "team"
>         {
>                 "ControlName"           "CTeamMenu"
>                 "fieldName"             "team"
>                 "xpos"          "0"
>                 "ypos"          "0"
>                 "wide"          "640"
>                 "tall"          "480"
>                 "autoResize"            "0"
>                 "pinCorner"             "0"
>                 "visible"               "1"
>                 "enabled"               "1"
>                 "tabPosition"           "0"
>                 "settitlebarvisible"            "0"
>                 "title"         "#Frame_Untitled"
>         }

>  when i start my mod in 16:10 (1280x800) it is scalling 640x480 to
> 1066x800(from gui editor) - that means that mod is scaling it to 4:3 not
> my actual  screen format 16:10

>  it looks like it is scalling just by height and then width is scalled
> from our new scalled height - resulting bad width on my
> background(being too small in width).

>  but as i said when i change resolution in game then it looks right
> even if vgui editor shows width and height as 639x479.

>  im not expert but looks like bug to me - it thinks it is in 4:3 when
> in fact it is in 16:10

>  what to do to make it see it is in 16:10 not 4:3 - i dont think
> setting it in .res to 16:10 resolution is good idea.

>  p.s. this problem is also true for 16:9 format.


> Wednesday, August 17, 2005, 7:32:21 PM, you wrote:

>> 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




> --
> Best regards,
>  hp                            mailto:[EMAIL PROTECTED]



> _______________________________________________
> 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




--
Best regards,
 hp                            mailto:[EMAIL PROTECTED]



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

Reply via email to