Another option would be to use a OpenGL GUI
(in case you run into problems with VGUI1).

However for those u need to do some GL and mouse input tricks and also hook 
it into the right places
(for a hook those would be a wglSwapBuffers and a GetCursorPos hook, in case 
you code a third party mod you could try to place the drawing of your OpenGL 
gui in the HUD_Redraw client dll export 
(hlsdk\multiplayer\cl_dll\cdll_int.cpp) or s.th. like that).


----- Original Message ----- 
From: "Dominik Tugend" <[EMAIL PROTECTED]>
To: "Discussion of Half-Life Programming" <hlcoders@list.valvesoftware.com>
Sent: Sunday, April 06, 2008 11:47 AM
Subject: Re: [hlcoders] VGUI Hud (HL 1 SDK)


> Dear Drak,
>
>
> Yes, you can use VGUI1 in HL1 third party mods.
>
> Several of Valve's native mods use a VGUI2 GoldSrc version (a earlier 
> stage
> / branch of that one used in the Source engine), you could use that
> theoretically too, however the interfaces are not public.
> In some of those mods (i.e. Counter-Strike 1.6) the VGUI1 is not available
> (the GamePanel has not actiavated this function), however for third party
> mods (and HL1) it should be enabled afaik.
>
> I suggest you first update your hlsdk to hlsdk-p3, available on
> http://metamod.org/
>
> You need to include ( hlsdk\multiplayer\utils\vgui ) the required headers
> and link ( hlsdk\multiplayer\utils\vgui\lib\win32_vc6\vgui.lib ) the 
> library
> to your project.
>
> Look into the
> hlsdk\multiplayer\cl_dll\vgui_*
> source and header files for examples how to use it.
>
>
> With kind regards
> Dominik
>
>
> ----- Original Message ----- 
> From: "Drak" <[EMAIL PROTECTED]>
> To: <hlcoders@list.valvesoftware.com>
> Sent: Sunday, April 06, 2008 6:53 AM
> Subject: [hlcoders] VGUI Hud (HL 1 SDK)
>
>
>> I'm trying to make a VGUI "overlay" on the HUD.
>>
>> Example: http://img246.imageshack.us/img246/9138/c4a10000xh6.jpg
>>
>>
>>
>> I want to have a small VGUI box where the text is located on that 
>> picture,
>> is this even possible?
>>
>> I'm only wanting it to show simple text. (Date, Time, Month).
>>
>> Is there some method other than using VGUI to accomplish this? (TRI-API?)
>>
>> I don't know too much about the HL1 SDK VGUI stuff. As opposed to Source
>> VGUI.
>>
>> _______________________________________________
>> 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