-- [ Picked text/plain from multipart/alternative ] Oh okay. I'm still using the version prior to the "Episode 1" SDK release. So I don't have that in my version, but thanks Yahn. I'll try it out if we update to the new release.
-Nick On 10/6/06, Yahn Bernier <[EMAIL PROTECTED]> wrote: > > I added this API to vgui::ISurface here at Valve a while back, it > already be in the latest SDK code. The API is: > > virtual vgui::HCursor CreateCursorFromFile( char const > *curOrAniFile, char const *pPathID = 0 ) = 0; > > Then you can SetCursor the new Hcursor you get back... > > Yahn > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Oliver > Sent: Friday, October 06, 2006 9:45 AM > To: [email protected] > Subject: Re: [hlcoders] Custom Mouse Cursor > > -- > [ Picked text/plain from multipart/alternative ] I've been working on > this for my mod as well but have run into similar problems as Nick. Any > ideas or workarounds would be great. > > On 10/5/06, Nick Darnell <[EMAIL PROTECTED]> wrote: > > > > -- > > [ Picked text/plain from multipart/alternative ] And, > > vgui::surface()->LockCursor(); doesn't seem to prevent it either. > > > > -Nick > > > > On 10/5/06, Nick Darnell <[EMAIL PROTECTED]> wrote: > > > > > > Nope. I tried calling SetCursor(NULL); in the Tick method of a > > vgui. The > > > best I get is a flickering cursor, jumping between visible and > > not. Their > > > underlying cursor code must be being run every frame, and it just > > > keeps resetting the cursor. > > > > > > -Nick > > > > > > On 10/4/06, Nick Darnell <[EMAIL PROTECTED]> wrote: > > > > > > > > That's what I was hoping, but I was thinking Source would override > > > > > any cursor I load using...(but ill try it out right now) > > > > > > > > *HANDLE* *LoadImage(* > > > > *HINSTANCE* *hinst**,* > > > > > > > > *LPCTSTR* *lpszName**, * > > > > *UINT* *uType**, * > > > > *int* *cxDesired**, * > > > > *int* *cyDesired**, * > > > > *UINT* *fuLoad * > > > > *); > > > > > > > > *-- or -- > > > > > > > > > > > > * > > > > *HCURSOR LoadCursorFromFile( > > > > > > > > LPCTSTR *lpFileName* > > > > ); > > > > > > > > -Nick > > > > > > > > On 10/4/06, Garry Newman < [EMAIL PROTECTED]> wrote: > > > > > > > > > > -- > > > > > [ Picked text/plain from multipart/alternative ] You should be > > > > > able to set the cursor the same as any windows > > program. > > > > > > > > > > I wouldn't do the drawing a texture method - it makes input feel > > > > > > really crappy when you're running at under 40 fps. > > > > > > > > > > > > > > > > > > > > On 10/4/06, Nick Darnell < [EMAIL PROTECTED]> wrote: > > > > > > > > > > > > -- > > > > > > [ Picked text/plain from multipart/alternative ] How would you > > > > > > > draw the image to properly extend into another > > panels > > > > > > drawing > > > > > > space? > > > > > > > > > > > > -Nick > > > > > > > > > > > > On 10/4/06, Justin Krenz <[EMAIL PROTECTED] > wrote: > > > > > > > > > > > > > > Set it to no cursor, and then use an image as your cursor > > > > > > > and > > > > > reposition > > > > > > > it at the mouse position every update? > > > > > > > > > > > > > > Nick Darnell wrote: > > > > > > > > -- > > > > > > > > [ Picked text/plain from multipart/alternative ] Is there > > > > > > > > any chance the public SDK could have the mouse cursor > > > > > code > > > > > > > opened > > > > > > > > up? I was hoping to have custom mouse cursors in the > > > > > vgui. But, it's > > > > > > > > presenting me with a bit of a dilemma since the actual > > > > > > > > cursor > > > > > code > > > > > > isn't > > > > > > > in > > > > > > > > the public SDK. All I get is the ability to SetCuror() > > > > > > > > using > > > > > the > > > > > > > provided > > > > > > > > enum options for standard cursors. > > > > > > > > -Nick Darnell > > > > > > > > -- > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > 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 > > > > > -- > > _______________________________________________ > 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

