Looking at that, is your panel the size of your screen? Because it looks
like the panel is only the size of 3/5's the screen size

Richard Slaughter wrote:
Hi,

Doesn't seem to work for me.

I've followed the tutorial, and call SetBounds with the results from
GetHudSize (which provide the correct values, e.g. 1280 x 7680) but the
right hand side of the image is still being chopped off. The image is
being drawn with the right dimensions, but right 2/5 or so is just
missing.

It's easier to just show you:
http://www.vault13.co.uk/images/missingScope.jpg

Could there be another HUD element in the way, or do I need to change
the size of something else?
Thanks

[EMAIL PROTECTED] wrote:
[ Converted text/html to text/plain ]
The scope tutorial should have the wide screen fix as i added this my
self.
On Sun Mar 2 5:18 , 'Tony \'omega\' Sergi' sent:

--
[ Picked text/plain from multipart/alternative ]
MOTD just centers on the screen.
On Sat, Mar 1, 2008 at 3:59 PM, Richard Slaughter
<[EMAIL PROTECTED]>
wrote:

Hmm, well that sounds ugly.

I must be missing something here. It seems some screens such as the
MOTD
scale properly, but others like my Team selection menu dont? Looking at
the code / resource files I just can't see any difference...
Arg.

Cheers.

Tony "omega" Sergi wrote:

--
[ Picked text/plain from multipart/alternative ]
You may be able to solve it by grabbing the latest source from the
sdk,

and

merging the changes to panel.cpp in ApplySettings; without a full port

to

orange box, and then rebuild your vgui_controls.lib and then of course
re-link your client.

But do so at your own risk, It's just a thought ;)

On Sat, Mar 1, 2008 at 3:23 PM, Tony omega Sergi
<[EMAIL PROTECTED]>
wrote:



oh wait, that's orange box. heh sorry.
;-)

Lemme poke around and I'll get back to you.



On Sat, Mar 1, 2008 at 3:17 PM, Richard Slaughter <

[EMAIL PROTECTED]>

wrote:



Sorry I must be missing something. If I set wide to "f0" in the
HudLayout.res the element doesn't show up at all?
Thanks.

Tony "omega" Sergi wrote:


--
[ Picked text/plain from multipart/alternative ]
use f0 for with instead of 640.
-Tony

On Sat, Mar 1, 2008 at 2:01 PM, Richard Slaughter <


[EMAIL PROTECTED]>


wrote:




Hi List.

I'm having some issues with VGUI in when in a widescreen aspect


ratio.


The issue is basically that the width of the VGUI elements doesn't
appear to be being reflected properly based on the aspect ratio,


leading


to elements that are on the left of the screen rather than centred
properly.

I have this problem in a couple of areas, as for example with HUD
elements defined in HudLayout.res as follows:

MyHudElement
{
...
"wide" "640"
"tall" "80"
...
}

I've also used the Add a Scope tutorial on the Valve Developers


Centre


Wiki, which cuts the scope off on the right hand side (nothing is


drawn


on the right hand side of the screen after what looks to be the


scaled


640 pixels mark). This is also specified with a width of 640 in
the
resource file.

What am I missing here? Shouldn't a width of 640 in the resource


files


be automatically stretched for a widescreen resolution? It
looks to


me


like it's only being scaled for a 4:3 aspect ratio as all my

elements

seem to still be positioned for a 4:3 aspect ratio rather than
widescreen (so everything is further left than it should be).
Thanks!

_______________________________________________
To unsubscribe, edit your list preferences, or view the list


archives,


please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders[5]





--
-omega
--

_______________________________________________
To unsubscribe, edit your list preferences, or view the list

archives,

please visit:


http://list.valvesoftware.com/mailman/listinfo/hlcoders[6]




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




--
-omega




--
-omega
--

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,

please visit:

http://list.valvesoftware.com/mailman/listinfo/hlcoders[8]



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



--
-omega
--
_______________________________________________
To unsubscribe, edit your list preferences, or view the list
archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders[10]
)

===References:===
  1. javascript:top.opencompose('[EMAIL PROTECTED]','','','')
  2. javascript:top.opencompose('[EMAIL PROTECTED]','','','')
  3. javascript:top.opencompose('[EMAIL PROTECTED]','','','')
  4. javascript:top.opencompose('[EMAIL PROTECTED]','','','')
  5.
parse.pl?redirect=http%3A%2F%2Flist.valvesoftware.com%2Fmailman%2Flistinfo%2Fhlcoders

  6.
parse.pl?redirect=http%3A%2F%2Flist.valvesoftware.com%2Fmailman%2Flistinfo%2Fhlcoders

  7.
parse.pl?redirect=http%3A%2F%2Flist.valvesoftware.com%2Fmailman%2Flistinfo%2Fhlcoders

  8.
parse.pl?redirect=http%3A%2F%2Flist.valvesoftware.com%2Fmailman%2Flistinfo%2Fhlcoders

  9.
parse.pl?redirect=http%3A%2F%2Flist.valvesoftware.com%2Fmailman%2Flistinfo%2Fhlcoders

 10.
parse.pl?redirect=http%3A%2F%2Flist.valvesoftware.com%2Fmailman%2Flistinfo%2Fhlcoders


_______________________________________________
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




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

Reply via email to