OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Worldeater on 11 Dec 2008, 21:04:14

Title: Icons for actions in the center of the screen only
Post by: Worldeater on 11 Dec 2008, 21:04:14
Hi,

if you add an action via the addAction command, is possible to have two separate titles: one for the center of the screen and another one for the action menu?

I ask because I just found out that the title parameter accepts structuredText. So something like this works:

Code: [Select]
kilgore addAction ["<img image='action_surf.paa' size='3' shadow='false'/>", "doSurf.sqf"];
The problem is I don't want the icon to be displayed in the menu, but in the center of the screen only.


-- W.

Title: Re: Icons for actions in the center of the screen only
Post by: Mandoble on 13 Dec 2008, 11:01:22
Quite interesting find  :good:
Title: Re: Icons for actions in the center of the screen only
Post by: johnnyboy on 13 Dec 2008, 19:38:40
If I remember correctly, don't newly added actions that display in center fade away after a while?

If that's true, you could add some code that waits the length of time it takes the center action to fade out, and then remove that action, and re-add it without the image, and showWindow set to false.  This is what the biki says about the showWindow parameter for the addaction command:

Code: [Select]
showWindow: Boolean - If set True; players see "Titletext". At mid-lower screen, as they approach the object. False turns it off.
It might work (even if center actions don't fade on their own, deleting the action after a wait should still remove it from center screen).

Hmmmm...I guess this wouldn't really solve the problem of the image being in the action list for awhile though...