OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started 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:
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.
-
Quite interesting find :good:
-
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:
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...