Jump to content
Sign in to follow this  
lexx

AddAction with changed cursor

Recommended Posts

I am a bit stupid again right now and need some help:

Is it possible to change the current cursor, based on my currently selected AddAction command? I am jumping through the wiki right now + google, but can't come up with anything useful.

Basically, I want the players cursor to change when he uses the mousewheel to reach my newly created AddAction entry (without actually activating it). Similar to how the cursor changes depending on the vehicle positions I can chose when close to a car (driver, gunner, commander...).

Anyone got any ideas?

Share this post


Link to post
Share on other sites

I'm assuming you mean like with the addaction how at the centre of the screen it comes up with the text so instead you want like a picture?

Well with what I've gathered from previous work you can't do that unless you want you can add an image with the addaction in the writing.

Share this post


Link to post
Share on other sites

Yeah, that's exactly what I'd like to do.

If this isn't possible... well, sux. No chance to "catch" the on screen text and modify it on the fly or something?

Share this post


Link to post
Share on other sites

addAction is quite versatile. It accepts this sort of syntax:

player addAction ["<img size=1' image='\a3\ui_f_curator\Data\Displays\RscDisplayCurator\modegroups_ca.paa'</>",TAG_fnc, nil, 0, false, false, "", "];

Keep in mind this is slightly different than what happens when you're facing a door, for example. The image will be displayed in the action menu as well.

And if you're using a stringtable:

<img size='1' image='\a3\ui_f_curator\Data\Displays\RscDisplayCurator\modegroups_ca.paa'</>

Share this post


Link to post
Share on other sites

Yes, but that's not what I want. The image should only popup at the centerscreen.

I was thinking that maybe the showWindow parameter from the AddAction should be set to false, and then we could draw an icon "manually" at this position onEachFrame. But for this to work, we would need to be able to read the currently selected action from the action menu. No idea if / how this is possible.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×