Disabling/Enabling mouse cursor

Locked
cpu90
Posts: 7
Joined: Wed Nov 30, 2005 10:16 pm

Disabling/Enabling mouse cursor

Post by cpu90 »

Hi all,

I am currently programming with quake 3 arena's menu script to create some menus for a project. There are cases when the menu would be showing a cinematic video, the .roq format that quake 3 plays natively. However I'd like to be able to disable the mouse cursor while the video is being played (the video isn't full screen, it is showing as part of the menu), and then enabling it back when the video is done playing. How would I be able to do that? Is it part of the engine code? or I can do that in the mod? and what variable am I looking at? thanks all.
Rawing
Posts: 107
Joined: Tue Oct 23, 2007 1:40 pm

Re: Disabling/Enabling mouse cursor

Post by Rawing »

I've used the find-in-files func to find everything with "cursor" inside, and voilá:

Code: Select all

// draw cursor
UI_SetColor( NULL );
UI_DrawHandlePic( uis.cursorx-cursor_size/2, uis.cursory-cursor_size/2, cursor_size, cursor_size, uis.cursor);
It's in ui_atoms btw.
[color=#FF0000]/callvote kick all_enemies[/color]
Locked