View Full Version : Making mousepointer available
22nd Oct 2001, 03:44 PM
As you know, if you press 'v' you get a menu with orders e.t.c.
This also lets you use the mousepointer ingame, without opening menus or so.
I've tried to duplicate what's happening when you press v, but to no avail.
Have anone got a sample of code that manages to free the mousepointer?
24th Oct 2001, 05:53 AM
how comes noone can answer my questions? :D:D
25th Oct 2001, 10:45 AM
i don't think your question is quite specific enough. do you want to make the mouse move the crosshair around the screen? or do you just want a pointer to click stuff (though i can't think why you would)
25th Oct 2001, 11:11 AM
hey I posted your post for help with the mouse poniter in the
Chimeric coding forum and Raeled replyd back with this
I hope this can help you
acctually the UWindow (that what manages the menu stuff) is started if you press 'v'.
as you told you already tried to cut/past and edited some code, so you probably seen this already:
snip from UTConsolŽ
if( Key==SpeechKey )
if ( !bShowSpeech && !bTyping )
bQuickKeyEnable = True;
first off the showspeech() prepares the window to be viewed
then bQuickKeyEnable is set to true (and this is where it happends) to make the rest of the menu (menubar, ...) not to show up.
the speechwindow does show up, becous it got bLeaveOnscreen set on True.
after that the UWindow is being started up, and becous bQuickKeyEnable is set to True the windows that don't have the bLeaveOnscreen set to true will be ignored (no render, no input, ...)
I hope this helped a bit.
25th Oct 2001, 11:16 AM
The reason he needs a mouse pointer is becouse he is working
on my mod that requires a mouse poniter is you whant to know
more about it go out to
and you will see why ;)
25th Oct 2001, 03:19 PM
Sorry if I wasn't specific enough...
The application it's gonna be used in is a sort of remote controll for ordering bots around in a better, more strategic way.
It's gonna be in the form of a weapon, and when you press the altfire, it needs to release the mousepointer like the v-menu does.
I've been into UWindow classes and have checked, and I have realised that it's a window controll that's not rendered like a window, but it uses masked textures instead, and that every menu item is a buttoncontroll that uses a texture instead of the default button-appearence, and I'm not quite sure if I'm gonna use this technique, maybe it's best, because another thought was using the HUD, but I believe UWindow would be better.
And since it's gonna be a bit complicated to use, I think I use a toggle instead of a hold-function to keep it up...
Maybe I can just copy the speechwindow class and play around with it...?
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.