I thought of it afterwards, and Omega said it too, you'd need the lib
file or know all the imports/exports anyway.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael
Shimmins
Sent: Monday, March 24, 2003 12:58 PM
To: [EMAIL PROTECTED]
Subject: RE: [hlcoders] stretching an image in vgui


There is a dll in the root HL folder called vgui2.dll

If you can work out how to use it, I _think_ it might help, although I'm
not sure at all, just a quess - I dont even know if it has scaling in it
yet, or if its VGUI v2 dll or a second dll for vgui1 etc.

Shimms

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of omega
Sent: Monday, March 24, 2003 12:55 PM
To: [EMAIL PROTECTED]
Subject: RE: [hlcoders] stretching an image in vgui


Another good idea is to wait for the new sdk, and vgui2, which from what
I hear has dynamic scaling.

Also another thing to note (something else I've heard) is that you can't
use vgui2 at the same time as vgui1, which means if you wan't to use all
of vgui2's features you'd have basically wasted all your time, since
you'll need to port it.

Valve, care to comment to make sure I'm not giving false information on
vgui? =)


-omega
Frontline Force - http://www.frontlineforce.com


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alfred
Sent: March 23, 2003 4:05 PM
To: [EMAIL PROTECTED]
Subject: Re: [hlcoders] stretching an image in vgui

you can't. What you need to do is make a seperate image that looks good
at each resolution and then use vgui_LoadTGA() (I think..., one of the
load functions for images) to get it to load the image that is
appropriate to the users resolution.

jc wrote:
> This is a multi-part message in MIME format.
> --
> [ Picked text/plain from multipart/alternative ]
> how can i stretch a CImageLabel so that the tga fills the whole
area... like... say
>
> m_ClassImage = new CImageLabel("someimage", XRES(10), YRES(0),
XRES(40), YRES(40));
>
> if im right that makes an image label 40x40.. but the image doesnt
stretch... so only looks right at oen resolution...
>
>  i tried m_ClassImage->m_pTGA->setSize but that is protected :S
>
> its giving me a headache - how do i make it so that my vgui image is
the size i pass to the constructor or the size i pass in a setSize ?
>
> jc
> --
>
> _______________________________________________
> 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

_______________________________________________
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