Home   Help Search Login Register  

Author Topic: Icons for actions in the center of the screen only  (Read 1077 times)

0 Members and 1 Guest are viewing this topic.

Offline Worldeater

  • Former Staff
  • ****
  • Suum cuique
Icons for actions in the center of the screen only
« 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.

try { return true; } finally { return false; }

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Icons for actions in the center of the screen only
« Reply #1 on: 13 Dec 2008, 11:01:22 »
Quite interesting find  :good:

Offline johnnyboy

  • OFPEC Patron
  • ****
  • Matan los Pantalones!!!
Re: Icons for actions in the center of the screen only
« Reply #2 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...
El Cojon: "Do you like to Tango?"
You: "Only in Bagango."
Download Last Tango in Bagango and discover how El Cojon earned his name...